Docs

Build and release

alien build

Build the Alien application.

alien build [OPTIONS]
SubcommandDescription
planCompute the native-runner build groups for the stack's supported platforms.
mergeMerge partial build outputs (one per native runner) into one .alien directory.
FlagDescription
-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).
--jsonEmit 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 .alien

alien build plan

Compute the native-runner build groups for the stack's supported platforms.

alien build plan [OPTIONS]
FlagDescription
-c, --config <CONFIG>Path to alien.ts/js/json/toml file or directory containing it.
--jsonEmit structured JSON output.

Examples:

alien build plan
alien build plan --json

alien build merge

Merge partial build outputs (one per native runner) into one .alien directory.

alien build merge [OPTIONS] --input <INPUT> --output <OUTPUT>
FlagDescription
--input <INPUT>Directory of downloaded partial outputs (each subdir holds build/<platform>/).
--output <OUTPUT>Output directory for the merged .alien build.
--jsonEmit structured JSON output.

Examples:

alien build merge --input ./build-artifacts --output .alien

alien stack

Inspect an alien.toml stack.

alien stack [OPTIONS] <COMMAND>
SubcommandDescription
expandPrint 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]
ArgumentDescription
[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]
FlagDescription
--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-gitSkip git metadata collection.
--no-stackDeclare 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-promoteCreate the release without advancing a channel or scheduling deployment updates.
--title <TITLE>Human-readable title for this release.
--jsonEmit 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.
--prebuiltSkip 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-git

alien releases

Release commands.

alien releases [OPTIONS] <COMMAND>
SubcommandDescription
lsList releases, newest first.
getShow a release and how far it has rolled out across deployments.
promoteMove a channel to an existing release.
channelsList the project's release channels.
create-channelCreate a release channel.
revokeMake protected deployments refuse a release, also as a rollback (signs a device list change).
delete-channelDelete a non-production release channel.

alien releases ls

List releases, newest first.

Alias: list.

alien releases ls [OPTIONS]
FlagDescription
--channel <CHANNEL>Only show releases that have been selected by this channel (defaults to production).
--all-channelsInclude releases that are not currently selected by any channel.
--jsonEmit 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>
ArgumentDescription
<ID>Release ID (rel_…).
FlagDescription
--jsonEmit machine-readable JSON.

alien releases promote

Move a channel to an existing release.

alien releases promote [OPTIONS] <ID>
ArgumentDescription
<ID>Release ID (rel_…).
FlagDescription
--channel <CHANNEL>Channel to advance. Default: production.
--jsonEmit machine-readable JSON.

alien releases channels

List the project's release channels.

alien releases channels [OPTIONS]
FlagDescription
--json

alien releases create-channel

Create a release channel.

alien releases create-channel [OPTIONS] <NAME>
ArgumentDescription
<NAME>
FlagDescription
--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]
ArgumentDescription
[ID]Release ID (rel_…), as the control plane names it.
FlagDescription
--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.
--forceRevoke 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>
ArgumentDescription
<NAME>

alien render

Render setup artifacts for review.

alien render [OPTIONS] --format <FORMAT> --stack <STACK>
FlagDescription
--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-quotasCheck 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.
--jsonEmit CloudFormation JSON instead of YAML.

alien packages

List, inspect, rebuild, and download project packages.

alien packages [OPTIONS] <COMMAND>
SubcommandDescription
listList packages for a project.
getShow one package and its outputs.
rebuildBuild the project's packages again from its package settings.
cancelCancel a pending or building package.
downloadDownload an artifact from a ready package.
FlagDescription
--jsonEmit 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-x64

alien packages list

List packages for a project.

Alias: ls.

alien packages list [OPTIONS]
FlagDescription
--type <PACKAGE_TYPE>Filter by package type.
--status <STATUS>Filter by package status.
--search <SEARCH>Search package type or version.
--jsonEmit machine-readable JSON.

alien packages get

Show one package and its outputs.

Alias: describe, show.

alien packages get [OPTIONS] <ID>
ArgumentDescription
<ID>Package ID.
FlagDescription
--jsonEmit 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]
FlagDescription
--yesSkip the confirmation prompt.
--jsonEmit machine-readable JSON.

alien packages cancel

Cancel a pending or building package.

alien packages cancel [OPTIONS] <ID>
ArgumentDescription
<ID>Package ID.
FlagDescription
--yesSkip the confirmation prompt.
--jsonEmit machine-readable JSON.

alien packages download

Download an artifact from a ready package.

alien packages download [OPTIONS] <ID>
ArgumentDescription
<ID>Package ID.
FlagDescription
--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.
--forceReplace an existing destination file.
--jsonEmit machine-readable JSON.

On this page