CLI reference
Global flags
| Flag | Description |
|---|---|
--api, -a | API base URL (default: https://api.hadoken.dev) |
--project, -p | Project name override |
--json | Machine-readable JSON output |
--quiet, -q | Minimal output |
--debug | Diagnostic output |
--no-color | Disable ANSI colors |
hadoken signup
Create an account. Prompts for email, username, and password (min 8 characters). Sends a verification email and waits for confirmation, then logs you in.
hadoken login
Log in to an existing account.
| Flag | Description |
|---|---|
--username, -u | Username |
--password-stdin | Read password from stdin |
--token | API token (instead of username/password) |
hadoken forgot-password
Request a password reset email.
| Flag | Description |
|---|---|
--email, -e | Email address (or prompted) |
hadoken reset-password
Set a new password using the token from your reset email. Prompts for new password and confirmation. All existing sessions are invalidated -- you must log in again afterward.
| Flag | Description |
|---|---|
--token, -t | Reset token from email |
hadoken logout
Remove stored credentials. Use --all to clear all profiles.
hadoken whoami
Show current identity.
hadoken init
Detect your Rails app and create a project. You can also skip this
-- the first hadoken deploy auto-initializes.
| Flag | Description |
|---|---|
--name | Project name (default: directory basename) |
--database | Override database: auto, sqlite, postgresql, mysql |
--force | Overwrite existing config |
--yes, -y | Accept defaults |
What init detects
| Property | Source |
|---|---|
| Rails version | Gemfile.lock |
| Ruby version | .ruby-version or Gemfile |
| Database | sqlite3, pg, or mysql2 gem |
hadoken / hadoken deploy
Deploy the current app. Bare hadoken is an alias for
hadoken deploy.
| Flag | Description |
|---|---|
--message, -m | Deploy annotation |
--wait | Wait for completion (default: true) |
--timeout | Timeout (default: 20m) |
--verbose, -v | Show build logs |
--include-untracked | Include untracked files |
--dry-run | Validate only, don't deploy |
--yes, -y | Accept defaults |
--confirm-dirty | Proceed with uncommitted changes |
hadoken status
Check deploy status.
| Flag | Description |
|---|---|
--deploy | Deploy ID (default: latest) |
--watch | Poll until done |
--interval | Poll interval (default: 3s) |
hadoken logs
View app logs.
| Flag | Description |
|---|---|
--follow, -f | Stream in real-time |
--since | Since duration or timestamp (default: 15m) |
--tail | Number of lines (default: 200) |
hadoken env
Manage environment variables. See Environment variables.
hadoken console
Open a Rails console on the running app. Requires
kubectl in your PATH.
hadoken run
Run a one-off command on the running app.
| Flag | Description |
|---|---|
--interactive, -i | Allocate TTY |
hadoken open
Open the app in your browser.
hadoken destroy
Tear down all resources. You must type the project name to confirm
(or use --yes).
hadoken completion
Generate shell completions for bash, zsh, fish, or powershell.