Build and release
alien build
Build the Alien application.
alien build [OPTIONS]| Subcommand | Description |
|---|---|
plan | Compute the native-runner build groups for the stack's supported platforms. |
merge | Merge partial build outputs (one per native runner) into one .alien directory. |
| Flag | Description |
|---|---|
-c, --config <CONFIG> | Path to alien.ts/js/json/toml file or directory containing it. |
-o, --output-dir <OUTPUT_DIR> | Output directory. |
--platforms <PLATFORMS> | Target platforms (comma-separated). When omitted, uses platforms declared by the stack. Examples: aws, gcp, azure, aws,gcp. |
--targets <TARGETS> | Target OS/architecture combinations (comma-separated). |
--aws-managing-account-id <AWS_MANAGING_ACCOUNT_ID> | AWS managing account ID. |
--base-platform <BASE_PLATFORM> | Base cloud platform for Kubernetes builds. This keeps the output platform as Kubernetes while using the managed cluster's default architecture. |
--cache-url <CACHE_URL> | Cache URL for build caching (for example s3://bucket/path). |
--json | Emit result JSON on stdout and plain progress lines on stderr. On failure, stderr ends with one JSON error document on its own line. |
Examples:
alien build --platform aws
alien build --platforms aws,gcp
alien build --platform aws --targets linux-arm64
alien build --config ../my-app/alien.ts --output-dir ./build --platform aws
alien build --platform aws --json
alien build plan --json
alien build merge --input ./build-artifacts --output .alienalien build plan
Compute the native-runner build groups for the stack's supported platforms.
alien build plan [OPTIONS]| Flag | Description |
|---|---|
-c, --config <CONFIG> | Path to alien.ts/js/json/toml file or directory containing it. |
--json | Emit structured JSON output. |
Examples:
alien build plan
alien build plan --jsonalien build merge
Merge partial build outputs (one per native runner) into one .alien directory.
alien build merge [OPTIONS] --input <INPUT> --output <OUTPUT>| Flag | Description |
|---|---|
--input <INPUT> | Directory of downloaded partial outputs (each subdir holds build/<platform>/). |
--output <OUTPUT> | Output directory for the merged .alien build. |
--json | Emit structured JSON output. |
Examples:
alien build merge --input ./build-artifacts --output .alienalien stack
Inspect an alien.toml stack.
alien stack [OPTIONS] <COMMAND>| Subcommand | Description |
|---|---|
expand | Print the fully resolved stack of an alien.toml as JSON, with every default and expansion made visible. Nothing else is written to stdout. |
Examples:
# Print the fully resolved stack of ./alien.toml
alien stack expand
# Pipe it into jq
alien stack expand ./services/api | jq '.resources | keys'alien stack expand
Print the fully resolved stack of an alien.toml as JSON, with every default and expansion made visible. Nothing else is written to stdout.
alien stack expand [OPTIONS] [PATH]| Argument | Description |
|---|---|
[PATH] | Path to an alien.toml, or a directory containing one. Defaults to the current directory. |
alien release
Push images and create a release.
alien release [OPTIONS]| Flag | Description |
|---|---|
--platforms <PLATFORMS> | Target platforms to release (comma-separated). If not specified, auto-discovers from the manager's configured artifact registries, or releases all built platforms. |
--no-git | Skip git metadata collection. |
--no-stack | Declare a stackless release: record a version (and git metadata) without building or pushing a stack. Use this to declare/enrich the release an operate (BYOC) environment is running. Requires --version. |
--channel <CHANNEL> | Channel to advance after creating the release. Default: production. |
--no-promote | Create the release without advancing a channel or scheduling deployment updates. |
--title <TITLE> | Human-readable title for this release. |
--json | Emit result JSON on stdout and plain progress lines on stderr. On failure, stderr ends with one JSON error document on its own line. |
--base-platform <BASE_PLATFORM> | Base cloud platform for Kubernetes auto-builds. This keeps the release stack under Kubernetes while using the managed cluster's default architecture when auto-building missing artifacts. |
--prebuilt | Skip the build and release the existing .alien output. Still pushes any local artifacts it contains, and reuses images that are already remote URIs. |
--targets <TARGETS> | Target OS/architecture combinations to build for (comma-separated). Same format as alien build --targets: e.g. linux-x64, linux-arm64. When omitted, targets follow the compute pools' CPU architecture, or the platform default if no pool specifies one. AWS daemons requiring nested virtualization default to linux-x64; other AWS deployments retain the linux-arm64 default. Explicit targets must match the stack's compute requirements. |
--image-repo <IMAGE_REPO> | Image repository URL (manual override - skips platform manager). |
--registry-auth <REGISTRY_AUTH> | Registry auth: "basic" or "anonymous". |
--registry-protocol <REGISTRY_PROTOCOL> | Registry protocol: "http" or "https". |
--registry-username <REGISTRY_USERNAME> | Registry username (required for basic auth). |
--registry-password <REGISTRY_PASSWORD> | Registry password (required for basic auth). |
Examples:
# Standard release (auto-discovers platforms from manager config)
alien release
# Release for specific project (skip linking)
alien release --project my-project
# Release specific platforms only
alien release --platforms aws
alien release --platforms aws,gcp
# Skip the build and release the existing build output (still pushes local artifacts)
alien release --prebuilt
# Create a release now and promote its saved ID later
alien release --no-promote
alien releases promote <release-id> --channel production
# Output JSON (for scripting/automation)
alien release --json
# Manual registry override (for deploying manager or custom setups)
alien release --image-repo my-registry.com/my-app --registry-auth basic --registry-username user --registry-password pass
# Skip git metadata collection
alien release --no-gitalien releases
Release commands.
alien releases [OPTIONS] <COMMAND>| Subcommand | Description |
|---|---|
ls | List releases, newest first. |
get | Show a release and how far it has rolled out across deployments. |
promote | Move a channel to an existing release. |
channels | List the project's release channels. |
create-channel | Create a release channel. |
revoke | Make protected deployments refuse a release, also as a rollback (signs a device list change). |
delete-channel | Delete a non-production release channel. |
alien releases ls
List releases, newest first.
Alias: list.
alien releases ls [OPTIONS]| Flag | Description |
|---|---|
--channel <CHANNEL> | Only show releases that have been selected by this channel (defaults to production). |
--all-channels | Include releases that are not currently selected by any channel. |
--json | Emit the manager API response as machine-readable JSON. |
alien releases get
Show a release and how far it has rolled out across deployments.
Alias: describe, show.
alien releases get [OPTIONS] <ID>| Argument | Description |
|---|---|
<ID> | Release ID (rel_…). |
| Flag | Description |
|---|---|
--json | Emit machine-readable JSON. |
alien releases promote
Move a channel to an existing release.
alien releases promote [OPTIONS] <ID>| Argument | Description |
|---|---|
<ID> | Release ID (rel_…). |
| Flag | Description |
|---|---|
--channel <CHANNEL> | Channel to advance. Default: production. |
--json | Emit machine-readable JSON. |
alien releases channels
List the project's release channels.
alien releases channels [OPTIONS]| Flag | Description |
|---|---|
--json |
alien releases create-channel
Create a release channel.
alien releases create-channel [OPTIONS] <NAME>| Argument | Description |
|---|---|
<NAME> |
| Flag | Description |
|---|---|
--release <RELEASE> | Optional release to select initially. |
--json |
alien releases revoke
Make protected deployments refuse a release, also as a rollback (signs a device list change).
alien releases revoke [OPTIONS] [ID]| Argument | Description |
|---|---|
[ID] | Release ID (rel_…), as the control plane names it. |
| Flag | Description |
|---|---|
--sequence <SEQUENCE> | The release's signed sequence, as alien releases revoke prints it. Names the release by what its statements sign instead of by the control plane's id. |
--force | Revoke even when the control plane says the release is current on a channel. |
alien releases delete-channel
Delete a non-production release channel.
alien releases delete-channel [OPTIONS] <NAME>| Argument | Description |
|---|---|
<NAME> |
alien render
Render setup artifacts for review.
alien render [OPTIONS] --format <FORMAT> --stack <STACK>| Flag | Description |
|---|---|
--format <FORMAT> | Artifact format to render. Values: cloudformation, terraform, helm. |
--target <TARGET> | Terraform target. Required for --format terraform. Values: aws, gcp, azure, eks, gke, aks. |
--stack <STACK> | Path to alien.ts, alien.js, alien.json, alien.toml, or a directory containing one. |
--output <OUTPUT> | Output directory. Defaults to stdout. |
--check-quotas | Check AWS quotas for a new installation before writing artifacts. Uses target AWS credentials and region from the environment; apply must use the same account and region. |
--registration-mode <REGISTRATION_MODE> | CloudFormation registration behavior. Values: auto, outputs, both. Default: auto. |
--notification-lambda-arn <NOTIFICATION_LAMBDA_ARN> | Lambda ARN for CloudFormation auto-registration. Env: ALIEN_CFN_NOTIFICATION_LAMBDA_ARN. |
--stack-settings <STACK_SETTINGS> | Optional YAML or JSON StackSettings override. |
--json | Emit CloudFormation JSON instead of YAML. |
alien packages
List, inspect, rebuild, and download project packages.
alien packages [OPTIONS] <COMMAND>| Subcommand | Description |
|---|---|
list | List packages for a project. |
get | Show one package and its outputs. |
rebuild | Build the project's packages again from its package settings. |
cancel | Cancel a pending or building package. |
download | Download an artifact from a ready package. |
| Flag | Description |
|---|---|
--json | Emit machine-readable JSON. |
Examples:
alien packages list --status failed
alien packages get pkg_abc123
alien packages rebuild
alien packages cancel pkg_abc123
alien packages download pkg_abc123 --artifact linux-x64alien packages list
List packages for a project.
Alias: ls.
alien packages list [OPTIONS]| Flag | Description |
|---|---|
--type <PACKAGE_TYPE> | Filter by package type. |
--status <STATUS> | Filter by package status. |
--search <SEARCH> | Search package type or version. |
--json | Emit machine-readable JSON. |
alien packages get
Show one package and its outputs.
Alias: describe, show.
alien packages get [OPTIONS] <ID>| Argument | Description |
|---|---|
<ID> | Package ID. |
| Flag | Description |
|---|---|
--json | Emit machine-readable JSON. |
alien packages rebuild
Build the project's packages again from its package settings.
Pending and building packages are cancelled and replaced by new versions. Use it when a build failed for a reason that is now fixed.
alien packages rebuild [OPTIONS]| Flag | Description |
|---|---|
--yes | Skip the confirmation prompt. |
--json | Emit machine-readable JSON. |
alien packages cancel
Cancel a pending or building package.
alien packages cancel [OPTIONS] <ID>| Argument | Description |
|---|---|
<ID> | Package ID. |
| Flag | Description |
|---|---|
--yes | Skip the confirmation prompt. |
--json | Emit machine-readable JSON. |
alien packages download
Download an artifact from a ready package.
alien packages download [OPTIONS] <ID>| Argument | Description |
|---|---|
<ID> | Package ID. |
| Flag | Description |
|---|---|
--artifact <ARTIFACT> | Artifact path or unique suffix, such as binaries.linux-x64 or linux-x64. |
-o, --output <OUTPUT> | Destination file. Defaults to the artifact URL filename. |
--force | Replace an existing destination file. |
--json | Emit machine-readable JSON. |