@aphexcms/cli
v0.3.2
Published
CLI tool for Aphex CMS
Downloads
57
Readme
@aphexcms/cli
The official CLI for Aphex CMS. The package is @aphexcms/cli; the command it
installs is aphx.
aphxis notaphex. They are two different commands from two different packages.aphx(this package) scaffolds a new project.aphexcomes from@aphexcms/cms-coreand operates on an existing one —aphex migrate,aphex generate:types— so it is available inside a project, not globally.
Usage
No install needed — create is the only command, and it wraps create-aphex:
npx @aphexcms/cli create my-siteOr install it globally, if you scaffold often:
npm install -g @aphexcms/cli
aphx create my-siteWith pnpm:
pnpm add -g @aphexcms/cli
aphx create my-site --template websiteGoing straight to the scaffolder is equivalent, and one fewer package:
pnpm create aphex my-siteCommands
create
Scaffold a new Aphex CMS project interactively.
aphx createThis will guide you through:
- Choosing a project name
- Selecting a template
- Setting up your project files
- Creating a basic
.envfile
help
Show available commands and usage information.
aphx helpExamples
# Create a new project
aphx create my-site
# Create a project without the template prompt
aphx create my-site --template website
# Show help
aphx help