dashnex
v0.5.66
Published
Command-line interface for DashNex framework
Readme
@dashnex/cli
Command-line interface for the DashNex framework. This CLI tool provides essential commands for managing DashNex projects, including module building, database operations, and migrations. It searches for all @dashnex/* modules in node_modules folder, and loads commands from them.
Each module can add a command to CLI. Read more here
Installation
npm install -g @dashnex/cliUsage
dashnex <command> [options]Commands
| Command | Description |
|---------|-------------|
| version | Display the version of the CLI |
| login | Log in to your DashNex account |
| logout | Log out and remove local credentials |
| whoami | Show current logged-in business and user |
| dev | Run the development server (run in DashNex application folder) |
| check | Run build-time validations (run in DashNex application folder) |
| install | Install dependencies using pnpm or npm (run in DashNex application folder) |
| app create | Create a new DashNex application |
| app pull | Pull existing application to specified folder |
| app push | Push local application to DashNex |
| app delete | Delete application from DashNex |
| app deploy | Deploy application to DashNex |
| app status | Show current application status |
| secrets list | List all secret names bound to the worker |
| secrets set | Create or update a secret |
| secrets delete | Delete a secret |
Options
login:
--email <email>— Email address--password <password>— Password--code <code>— 2FA code--business <id>— Business ID to select
dev:
--https— Run dev server with HTTPS
app create:
--subdomain <subdomain>— Subdomain-t, --template <template>— Template, optional (name@branch-or-tag)
app pull:
-y, --yes— Skip prompts and child commands
app push:
--deploy/--no-deploy— Auto-deploy or skip deploy after push--no-check— Skip pre-push checks
app delete:
-y, --yes— Skip confirmation prompt
secrets set:
--name <name>— Secret name (prompted if omitted)--value <value>— Secret value (prompted with masked input if omitted)
secrets delete:
--name <name>— Secret name (prompted if omitted)
