Axion CLI Reference
All commands use theaxn prefix.
Core Commands
axn init
Initialize a new Axion project.| Option | Description |
|---|---|
--cloud | Create and link to a cloud project |
axn set
Set an environment variable.| Option | Description |
|---|---|
--scope <env> | Environment scope: development, staging, production |
--force | Suppress overwrite warning |
--json | Validate value as JSON before storing |
-s, --service <name> | Scope to a specific service |
axn get
Get an environment variable value.| Option | Description |
|---|---|
--scope <env> | Environment scope (default: development) |
--reveal | Show actual value (unmask) |
axn rm
Remove an environment variable.axn list / axn ls
List all environment variables.| Option | Description |
|---|---|
--scope <env> | Environment scope |
--reveal | Show actual values |
axn run
Run a command with secrets injected.| Option | Description |
|---|---|
--scope <env> | Environment scope (default: development) |
-s, --service <name> | Service to load secrets for |
axn export
Export secrets to stdout or file.| Option | Description |
|---|---|
--scope <env> | Environment scope |
--format <fmt> | Output format: env, json, yaml |
-o, --output <file> | Write to file |
Cloud Sync
axn sync
Sync .env files with encrypted manifest.| Option | Description |
|---|---|
--push | Force push local to cloud |
--pull | Force pull from cloud |
--discover | Discover .env files |
--init | Initialize sync config |
axn drift
Detect differences between local and cloud.axn push
Push manifest to cloud.Authentication
axn login
Sign in with SSO.| Option | Description |
|---|---|
--google | Sign in with Google (default: GitHub) |
axn logout
Sign out and clear credentials.axn whoami
Show current user and linked project.Project Management
axn link
Link to an existing cloud project.axn unlink
Disconnect from cloud.axn destroy
Delete a project (owner only).Team Management
axn members
Manage project members.axn audit
View access audit logs.Service Tokens (CI/CD)
axn tokens
Manage service tokens.Key Management
axn key
Show key fingerprint or reveal key.| Option | Description |
|---|---|
--show | Reveal the actual key |
axn rotate
Rotate encryption key.axn recovery
Manage key recovery.Global Options
These options work with any command:| Option | Description |
|---|---|
-s, --service <name> | Scope operations to a specific service |
--scope <env> | Environment scope |
--reveal | Show actual secret values |
--force | Skip confirmation prompts |