CLI Reference
alien init
Create a new Alien project from a template:
alien init my-appPrompts for language (TypeScript or Rust) and template. Creates a project directory with alien.ts, source code, and dependencies.
Example:
alien init my-app
cd my-appalien dev
Start the local development environment:
alien devProvisions all resources locally (sled for KV/Queue, filesystem for Storage) and starts your functions as native processes. Hot-reloads on code changes.
Example:
alien dev
# ✓ worker (function) → http://localhost:3001
# ✓ data (storage) → local filesystem
# ✓ Server → http://localhost:9090alien serve
Start the standalone manager for production deployments:
alien serveStarts an HTTP server backed by SQLite. Manages deployments, dispatches commands, collects telemetry, and hosts an embedded artifact registry.
Options:
| Flag | Description |
|---|---|
--init | Generate a starter alien-manager.toml config file |
--config <path>, -c | Path to config file (default: alien-manager.toml) |
--port <port> | Override the HTTP server port |
--host <host> | Override the HTTP server bind address |
Example:
# Generate config
alien serve --init
# Start with defaults
alien serve
# Start with custom config
alien serve --config /etc/alien/manager.tomlOn first run, generates an admin API key. See Self-Hosting for full setup instructions.
alien build
Build your stack into deployable artifacts:
alien build --platform <platform>
alien build --platforms <platform1>,<platform2>Compiles your code using the configured toolchain (Bun for TypeScript, cargo-zigbuild for Rust, Docker for containers), packages it as OCI images, and validates the stack.
Builds are content-hashed — if your code hasn't changed, the build completes instantly by reusing existing artifacts.
Options:
| Flag | Description |
|---|---|
--platform <platform>, --platforms | Target platform(s): aws, gcp, azure (comma-separated for multiple) (required) |
--config <path>, -c | Path to alien.ts/alien.js/alien.json file or directory |
--output-dir <dir>, -o | Output directory for build artifacts |
--targets <targets> | Target OS/architecture combinations (comma-separated) |
--cache-url <url> | Cache URL for build caching (e.g., s3://bucket/path) |
--experimental | Allow experimental platforms (kubernetes, local) |
--json | Emit structured JSON output |
Examples:
alien build --platform aws
alien build --platforms aws,gcp
alien build --platform aws --targets linux-arm64alien release
Create a new release:
alien releaseBuilds your code, pushes artifacts to the registry, and creates a release. Active deployments pick up new releases automatically.
Alien always rebuilds during release to ensure artifacts reflect your latest code. If nothing changed, the build is instant thanks to content-hash dedup. Pushed images are cached — if the same artifacts were already pushed in a prior release, the push step is skipped.
Options:
| Flag | Description |
|---|---|
--platforms <platforms> | Comma-separated list of platforms to release (auto-discovers from manager config if not specified) |
--project <name> | Project name or ID (skips project linking) |
--prebuilt | Skip build and push — uses pre-pushed image URIs from stack.json |
--no-git | Skip git metadata collection |
--experimental | Allow experimental platforms (kubernetes, local) |
--json | Emit structured JSON output |
Examples:
alien release
alien release --platforms aws,gcp
alien release --prebuiltalien onboard
Onboard a new customer and generate a deployment token:
alien onboard <name>Creates a deployment group and returns a token the customer uses to set up their environment.
Example:
alien onboard acme-corp
# Deployment token: ax_dg_abc123...
# Send this to the customer's admin.alien deploy
Deploy a release to a cloud platform:
alien deploy --name <name> --platform <platform>Options:
| Flag | Description |
|---|---|
--name <name> | Deployment name for identification (required) |
--platform <platform> | Target platform: aws, gcp, azure (required) |
--token <token> | Deployment API key for authentication |
--no-heartbeat | Disable heartbeat capability |
--monitoring <mode> | Telemetry mode: auto (default) or off |
Example:
alien deploy --name acme-production --platform awsalien deployments ls
List all active deployments:
alien deployments lsShows deployment status, platform, last heartbeat, and current release version.
alien vault
Manage vault secrets for a deployment:
alien vault <action>See Environment Variables for details on managing secrets across deployments.