Docs

Customers and deployments

alien onboard

Create a deployment group and generate a deployment link.

alien onboard [OPTIONS] [NAME]
ArgumentDescription
[NAME]Customer name.
FlagDescription
--external-id <EXTERNAL_ID>Stable customer identifier used by your application. Defaults to a URL-safe form of NAME.
--setup-items <SETUP_ITEMS>Customer infrastructure to include in the setup link. Values: application (The application itself), models (AI models in the customer's cloud), keys (Customer-managed encryption keys), storage (A storage bucket in the customer's cloud), registry (A container registry in the customer's cloud), sandbox (A remote sandbox). Default: application.
--allow <EMAIL|@DOMAIN>Email address (jane@acme.com) or domain (@acme.com) that may open the setup link. Repeat for each. The link asks for the person's email and a code sent to it. Platform setup links only. Asked for in a terminal; required with --json or outside a terminal, unless --airgapped.
--return-url <RETURN_URL>HTTPS destination when the customer leaves or finishes setup (maximum 2048 characters).
--refresh-url <REFRESH_URL>HTTPS destination for expired or unavailable links. Must authenticate the user before minting a new link.
--max-deployments <MAX_DEPLOYMENTS>Maximum number of deployments for this customer. Default: 100.
--jsonOutput in JSON format (for scripting).
--env <ENV_VARS>Plain environment variables for deployments created from this link (KEY=VALUE or KEY=VALUE:target1,target2).
--secret <SECRET_VARS>Secret environment variables for deployments created from this link (KEY=VALUE or KEY=VALUE:target1,target2).
--input <INPUT_VALUES>Stack input value provided before creating the deployment link (id=value).
--secret-input <SECRET_INPUT_VALUES>Secret stack input value provided before creating the deployment link (id=value).
--platforms <PLATFORMS>Platforms this deployment link can create deployments for (comma-separated). Defaults to every platform in the active release.
--subdomain <SUBDOMAIN>Public subdomain to reserve for deployments created from this link.
--airgappedThe environment can't reach your manager: register its deployment now. The site keeps it up to date with alien-deploy sync.

alien deployment-groups

List, inspect, and change project deployment groups.

Alias: customers, customer.

alien deployment-groups [OPTIONS] <COMMAND>
SubcommandDescription
listList deployment groups in the project.
getShow deployment-group details.
updateRename a deployment group or change its deployment limit.
set-external-idSet or clear the ID your own systems use for a deployment group.
deleteDelete an empty deployment group and its API keys.
FlagDescription
--jsonEmit stable machine-readable JSON.

Examples:

alien deployment-groups list
alien deployment-groups get customer_123
alien deployment-groups describe acme --json
alien deployment-groups update acme --max-deployments 5
alien deployment-groups set-external-id acme customer_123
alien deployment-groups delete acme --yes
alien onboard acme --allow @acme.com --external-id customer_123 --setup-items models,keys

alien deployment-groups list

List deployment groups in the project.

Alias: ls.

alien deployment-groups list [OPTIONS]
FlagDescription
--search <SEARCH>Search deployment-group name or external ID.
--jsonEmit stable machine-readable JSON.

alien deployment-groups get

Show deployment-group details.

Alias: describe, show.

alien deployment-groups get [OPTIONS] <CUSTOMER>
ArgumentDescription
<CUSTOMER>Deployment-group ID, name, or external ID.
FlagDescription
--jsonEmit stable machine-readable JSON.

alien deployment-groups update

Rename a deployment group or change its deployment limit.

alien deployment-groups update [OPTIONS] <CUSTOMER>
ArgumentDescription
<CUSTOMER>Deployment-group ID, name, or external ID.
FlagDescription
--name <NAME>New name: lowercase letters, numbers, and hyphens.
--jsonEmit stable machine-readable JSON.
--max-deployments <MAX_DEPLOYMENTS>Most deployments the group may hold.

alien deployment-groups set-external-id

Set or clear the ID your own systems use for a deployment group.

alien deployment-groups set-external-id [OPTIONS] <CUSTOMER> [EXTERNAL_ID]
ArgumentDescription
<CUSTOMER>Deployment-group ID, name, or external ID.
[EXTERNAL_ID]External ID, unique within the project.
FlagDescription
--clearRemove the external ID.
--jsonEmit stable machine-readable JSON.

alien deployment-groups delete

Delete an empty deployment group and its API keys.

Alias: rm.

alien deployment-groups delete [OPTIONS] <CUSTOMER>
ArgumentDescription
<CUSTOMER>Deployment-group ID, name, or external ID.
FlagDescription
--yesSkip confirmation prompt.
--jsonEmit stable machine-readable JSON.

alien deploy

Deploy to a cloud platform.

alien deploy [OPTIONS]
FlagDescription
--token <TOKEN>Deployment API key for authentication (optional if deployment is already tracked).
--token-file <TOKEN_FILE>Read the deployment API key from a file instead of exposing it in command arguments.
--name <NAME>Deployment name for identification in tracking.
--deployment-group <DEPLOYMENT_GROUP>Existing deployment group ID, name, or external ID for a new deployment. The group is inferred when --token contains a deployment-group key.
--platform <PLATFORM>Target platform for the deployment (aws, gcp, azure, machines).
--machinesCreate or update a Machines deployment and print a host join command.
--config <CONFIG>TOML file containing deployment settings.
--quota-warning-override <QUOTA_WARNING_OVERRIDES>Downgrade a quota failure to a visible warning for this deployment (repeatable).
--clear-quota-warning-overridesRemove all saved quota warning overrides from this deployment.
--validate-onlyValidate the config locally without authentication, API calls, or deployment tracking.
--input <INPUT_VALUES>Stack input value for setup (id=value).
--secret-input <SECRET_INPUT_VALUES>Secret stack input value for setup (id=value).
--setup-item <SETUP_ITEM>Customer setup item to install, for a deployment-group token whose group offers more than one. The API rejects the request without it. Values: application (The application itself), models (AI models in the customer's cloud), keys (Customer-managed encryption keys), storage (A storage bucket in the customer's cloud), registry (A container registry in the customer's cloud), sandbox (A remote sandbox).
--public-subdomain <PUBLIC_SUBDOMAIN>Public subdomain for deployments in your own environment. This is only accepted when creating a new deployment without --token.
--resource-prefix <RESOURCE_PREFIX>Physical-name prefix for generated cloud resources. Omit to let the manager generate one.
--no-heartbeatDisable heartbeat capability.
--automatic-setupGrant ongoing setup permissions for a new deployment in your own AWS, GCP or Azure environment. Alien can then add and change infrastructure without a separate setup run.
-y, --yesRun a recommended setup update on an installed deployment without asking first.
--monitoring <MONITORING>Telemetry / monitoring mode. "auto" (default) uses the parent manager's built-in log store or external OTLP integration. "off" disables all monitoring. Values: auto (Automatically use the best available OTLP config: the parent manager's built-in log store or external OTLP integration (e.g. Axiom, Datadog)), off (Disable all monitoring: no OTLP logs for containers or worker VMs). Default: auto.
--manager <MANAGER>Manager to use for deployment. Omit for auto-resolve (platform resolves from deployment record). Use "none" to deploy without a manager (e.g., bootstrapping the manager itself). Or pass a specific manager ID.
--channel <CHANNEL>Release channel followed by a newly created deployment. Default: production.

Network options:

FlagDescription
--endpoint-access <ENDPOINT_ACCESS>Who can reach public endpoints: internet or private (AWS managed containers only).
--network <NETWORK_MODE>Network mode: auto, use-default, create, byo. auto (system decides (create VPC if containers need it, skip otherwise) use-default ) use cloud provider's default VPC (fast, good for dev) create (create an isolated VPC (production-grade) byo ) bring your own VPC/VNet. Default: auto.
--network-cidr <NETWORK_CIDR>VPC CIDR block (create mode only, auto-generated if omitted).
--availability-zones <AVAILABILITY_ZONES>Number of availability zones (create mode only, default: 2).
--vpc-id <VPC_ID>Existing VPC ID (byo mode, AWS).
--public-subnet-ids <PUBLIC_SUBNET_IDS>Comma-separated public subnet IDs (byo mode, AWS).
--private-subnet-ids <PRIVATE_SUBNET_IDS>Comma-separated private subnet IDs (byo mode, AWS).
--security-group-ids <SECURITY_GROUP_IDS>Comma-separated security group IDs (byo mode, AWS, optional).
--network-name <NETWORK_NAME>Existing VPC network name (byo mode, GCP).
--subnet-name <SUBNET_NAME>Subnet name (byo mode, GCP).
--network-region <NETWORK_REGION>Subnet region (byo mode, GCP).
--vnet-resource-id <VNET_RESOURCE_ID>Existing VNet resource ID (byo mode, Azure).
--public-subnet-name <PUBLIC_SUBNET_NAME>Public subnet name (byo mode, Azure).
--private-subnet-name <PRIVATE_SUBNET_NAME>Private subnet name (byo mode, Azure).

Examples:

# Deploy to your own AWS environment
alien deploy --name production --platform aws --secret-input apiKey=...

# Deploy into an existing customer deployment group
alien deploy --deployment-group customer-123 --name production --platform aws

# Create a Machines deployment and print a host join command
alien deploy --name eu-prod --machines

# Set up a deployment from a customer deployment-group token
alien deploy --token dg_abc123... --name production --platform aws

# Deploy an existing deployment (uses stored API key)
alien deploy --name production --platform aws

# Read a deployment token from a protected file
alien deploy --token-file deployment-token.txt --name prod --platform aws

# Deploy without heartbeat capability
alien deploy --token ax_deployment_xyz... --name prod --platform aws --no-heartbeat

alien deployments

Deployment commands.

alien deployments [OPTIONS] <COMMAND>
SubcommandDescription
set-domainsUse managed certificates for endpoint hostnames, or restore generated domains.
set-endpoint-source-rangesLimit the deployment's public endpoints to a list of source address ranges.
createCreate a new deployment.
lsList deployments.
getGet deployment details.
resourcesShow a safe resource summary without resource configuration or secrets.
eventsShow deployment lifecycle and configuration events.
waitWait until a deployment is ready or reaches a terminal state.
machinesShow the machines connected to a deployment.
drain-machineDrain a machine so its workloads move to other machines.
cancel-machine-drainCancel a machine drain so the machine takes work again.
remove-machineRemove a machine from a deployment.
join-tokensList, create, rotate, and revoke tokens that join hosts to a Machines deployment.
volumesShow container volumes, their latest snapshots and restores.
restore-volumeReplace a replica's persistent volume with a volume made from a snapshot.
cancel-volume-restoreCancel a pending volume restore.
deleteDelete a deployment.
enrollment-codeIssue a new Operator enrollment code for a deployment.
retryRetry a deployment.
redeployRedeploy a deployment with the same release.
moveMove a deployment to another group without changing its runtime.
pinPin a deployment to a specific release.
set-computeChange machine counts, machine type, data disk size, or quota warning overrides of a deployment.
set-envReplace the environment variables of a deployment.
inputsShow a deployment's stack inputs and their current values.
set-inputsChange stack inputs of a deployment.
checkAsk the manager to check the deployment's health now.
set-channelChange the channel followed by an unpinned deployment.
tokenCreate a deployment token (deployment-scoped API key).
untrackForget a deployment this machine tracks locally, discarding its stored key.

Related commands:

alien logs --deployment production/api --follow
alien debug production/api -- <command>
alien commands --help

Examples:

alien deployments list
alien deployments describe production/api
alien deployments resources production/api --json
alien deployments events production/api
alien deployments wait production/api --for ready --timeout 10m
alien deployments machines production/api --json
alien deployments set-compute production/api --machines 3
alien deployments set-inputs production/api --input region=eu-west-1
alien deployments set-inputs production/api --secret-input-file tlsCertificate=./tls.pem
alien deployments drain-machine production/api <machine-id>
alien deployments join-tokens create production/api
alien deployments untrack my-sandbox

alien deployments set-domains

Use managed certificates for endpoint hostnames, or restore generated domains.

alien deployments set-domains [OPTIONS] --resource <RESOURCE> <ID>
ArgumentDescription
<ID>Deployment ID or reference.
FlagDescription
--resource <RESOURCE>Resource that serves the endpoints (its ID in the stack).
--endpoint <ENDPOINTS>Endpoint name and hostname (repeat for each endpoint).
--clearRestore generated domains for this resource.
--json

alien deployments set-endpoint-source-ranges

Limit the deployment's public endpoints to a list of source address ranges.

Pass --range for each IPv4 or IPv6 CIDR (at most 25), for example the ranges of a proxy in front of the deployment, or --any to let anyone connect again. Replaces the saved list. Applied as a configuration update on AWS; deployments that cannot enforce the list refuse it. Changes need no setup update.

alien deployments set-endpoint-source-ranges [OPTIONS] <ID>
ArgumentDescription
<ID>Deployment ID, or <deployment-group-name>/<deployment-name>.
FlagDescription
--range <RANGES>Allowed source range in CIDR form (repeat for each range).
--anyAllow anyone to connect: remove the saved list.
--json

alien deployments create

Create a new deployment.

alien deployments create [OPTIONS] --name <NAME> --project <PROJECT> --deployment-group <DEPLOYMENT_GROUP> --platform <PLATFORM>
FlagDescription
--name <NAME>Deployment display name.
--deployment-group <DEPLOYMENT_GROUP>Deployment group ID (required).
--platform <PLATFORM>Platform (aws, gcp, azure).
--resource-prefix <RESOURCE_PREFIX>Physical-name prefix for generated cloud resources. Omit to let the manager generate one.
--env <ENV>Plain environment variables in KEY=VALUE format (can be used multiple times).
--secret <SECRET>Secret environment variables in KEY=VALUE format (can be used multiple times).
--env-targeted <ENV_TARGETED>Plain environment variables with target functions in KEY=VALUE:pattern1,pattern2 format (can be used multiple times).
--secret-targeted <SECRET_TARGETED>Secret environment variables with target functions in KEY=VALUE:pattern1,pattern2 format (can be used multiple times).
--no-pushDisable push (Operator handles deployments instead of manager).
--no-heartbeatDisable heartbeat capability.
--monitoring <MONITORING>Telemetry / monitoring mode. "auto" (default) uses the parent manager's built-in log store or external OTLP integration. "off" disables all monitoring. Values: auto (Automatically use the best available OTLP config: the parent manager's built-in log store or external OTLP integration (e.g. Axiom, Datadog)), off (Disable all monitoring: no OTLP logs for containers or worker VMs). Default: auto.

Network options:

FlagDescription
--endpoint-access <ENDPOINT_ACCESS>Who can reach public endpoints: internet or private (AWS managed containers only).
--network <NETWORK_MODE>Network mode: auto, use-default, create, byo. auto (system decides (create VPC if containers need it, skip otherwise) use-default ) use cloud provider's default VPC (fast, good for dev) create (create an isolated VPC (production-grade) byo ) bring your own VPC/VNet. Default: auto.
--network-cidr <NETWORK_CIDR>VPC CIDR block (create mode only, auto-generated if omitted).
--availability-zones <AVAILABILITY_ZONES>Number of availability zones (create mode only, default: 2).
--vpc-id <VPC_ID>Existing VPC ID (byo mode, AWS).
--public-subnet-ids <PUBLIC_SUBNET_IDS>Comma-separated public subnet IDs (byo mode, AWS).
--private-subnet-ids <PRIVATE_SUBNET_IDS>Comma-separated private subnet IDs (byo mode, AWS).
--security-group-ids <SECURITY_GROUP_IDS>Comma-separated security group IDs (byo mode, AWS, optional).
--network-name <NETWORK_NAME>Existing VPC network name (byo mode, GCP).
--subnet-name <SUBNET_NAME>Subnet name (byo mode, GCP).
--network-region <NETWORK_REGION>Subnet region (byo mode, GCP).
--vnet-resource-id <VNET_RESOURCE_ID>Existing VNet resource ID (byo mode, Azure).
--public-subnet-name <PUBLIC_SUBNET_NAME>Public subnet name (byo mode, Azure).
--private-subnet-name <PRIVATE_SUBNET_NAME>Private subnet name (byo mode, Azure).
--format <FORMAT>Output format (json or text). Default: text.

alien deployments ls

List deployments.

Alias: list.

alien deployments ls [OPTIONS]
FlagDescription
--jsonPrint machine-readable JSON.

alien deployments get

Get deployment details.

Alias: describe, show, status.

alien deployments get [OPTIONS] <ID>
ArgumentDescription
<ID>Deployment ID, or <deployment-group-name>/<deployment-name>.
FlagDescription
--jsonPrint machine-readable JSON.

alien deployments resources

Show a safe resource summary without resource configuration or secrets.

alien deployments resources [OPTIONS] <ID>
ArgumentDescription
<ID>Deployment ID, or <deployment-group-name>/<deployment-name>.
FlagDescription
--jsonPrint stable machine-readable JSON.

alien deployments events

Show deployment lifecycle and configuration events.

alien deployments events [OPTIONS] <ID>
ArgumentDescription
<ID>Deployment ID, or <deployment-group-name>/<deployment-name>.
FlagDescription
--limit <LIMIT>Maximum number of recent events to return. Default: 20.
--jsonPrint the API response as machine-readable JSON.

alien deployments wait

Wait until a deployment is ready or reaches a terminal state.

alien deployments wait [OPTIONS] <ID>
ArgumentDescription
<ID>Deployment ID, or <deployment-group-name>/<deployment-name>.
FlagDescription
--for <CONDITION>Condition to wait for. Values: ready (Running with the desired release applied), terminal (Any synchronized success or failure state), deleted (Fully deleted). Default: ready.
--timeout <TIMEOUT>Maximum wait duration in seconds, or with a unit such as 30s, 10m, or 1h. Default: 10m.
--interval <INTERVAL>Poll interval in seconds, optionally suffixed with s, m, or h. Default: 2s.
--jsonPrint a stable machine-readable result.

alien deployments machines

Show the machines connected to a deployment.

alien deployments machines [OPTIONS] <ID>
ArgumentDescription
<ID>Deployment ID, or <deployment-group-name>/<deployment-name>.
FlagDescription
--jsonPrint the complete inventory as machine-readable JSON.

alien deployments drain-machine

Drain a machine so its workloads move to other machines.

The machine stops taking new work and its replicas are rescheduled. Undo it with alien deployments cancel-machine-drain.

alien deployments drain-machine [OPTIONS] <ID> <MACHINE_ID>
ArgumentDescription
<ID>Deployment ID, or <deployment-group-name>/<deployment-name>.
<MACHINE_ID>Machine ID, as shown by alien deployments machines.
FlagDescription
--deadline <DEADLINE>Report the drain as overdue if it hasn't finished after this long, such as 30m.
--forceStop the machine's replicas without waiting for healthy replacements.
--yesSkip the confirmation prompt for --force.
--jsonPrint the result as machine-readable JSON.

alien deployments cancel-machine-drain

Cancel a machine drain so the machine takes work again.

alien deployments cancel-machine-drain [OPTIONS] <ID> <MACHINE_ID>
ArgumentDescription
<ID>Deployment ID, or <deployment-group-name>/<deployment-name>.
<MACHINE_ID>Machine ID, as shown by alien deployments machines.
FlagDescription
--jsonPrint the result as machine-readable JSON.

alien deployments remove-machine

Remove a machine from a deployment.

Drain the machine first so its workloads move. A removed machine can't rejoin with its old identity.

alien deployments remove-machine [OPTIONS] <ID> <MACHINE_ID>
ArgumentDescription
<ID>Deployment ID, or <deployment-group-name>/<deployment-name>.
<MACHINE_ID>Machine ID, as shown by alien deployments machines.
FlagDescription
--yesSkip confirmation prompt.
--jsonPrint the result as machine-readable JSON.

alien deployments join-tokens

List, create, rotate, and revoke tokens that join hosts to a Machines deployment.

Alias: join-token.

alien deployments join-tokens [OPTIONS] <COMMAND>
SubcommandDescription
listList a deployment's join tokens.
createCreate a join token. Existing tokens keep working.
rotateRevoke every join token and create a new one.
revokeRevoke one join token. Hosts that already joined keep running.

alien deployments join-tokens list

List a deployment's join tokens.

Alias: ls.

alien deployments join-tokens list [OPTIONS] <ID>
ArgumentDescription
<ID>Deployment ID, or <deployment-group-name>/<deployment-name>.
FlagDescription
--jsonPrint machine-readable JSON.

alien deployments join-tokens create

Create a join token. Existing tokens keep working.

alien deployments join-tokens create [OPTIONS] <ID>
ArgumentDescription
<ID>Deployment ID, or <deployment-group-name>/<deployment-name>.
FlagDescription
--jsonPrint the token and join details as JSON.

alien deployments join-tokens rotate

Revoke every join token and create a new one.

alien deployments join-tokens rotate [OPTIONS] <ID>
ArgumentDescription
<ID>Deployment ID, or <deployment-group-name>/<deployment-name>.
FlagDescription
--yesSkip confirmation prompt.
--jsonPrint the token and join details as JSON.

alien deployments join-tokens revoke

Revoke one join token. Hosts that already joined keep running.

alien deployments join-tokens revoke [OPTIONS] <ID> <TOKEN_ID>
ArgumentDescription
<ID>Deployment ID, or <deployment-group-name>/<deployment-name>.
<TOKEN_ID>Token ID, as shown by alien deployments join-tokens list.
FlagDescription
--yesSkip confirmation prompt.
--jsonPrint the result as machine-readable JSON.

alien deployments volumes

Show container volumes, their latest snapshots and restores.

alien deployments volumes [OPTIONS] <ID>
ArgumentDescription
<ID>Deployment ID, or <deployment-group-name>/<deployment-name>.
FlagDescription
--jsonPrint machine-readable JSON.

alien deployments restore-volume

Replace a replica's persistent volume with a volume made from a snapshot.

The replica is stopped while its volume is swapped. The replaced volume is snapshotted before it is deleted, so the restore can be undone by restoring that snapshot.

alien deployments restore-volume [OPTIONS] --resource <RESOURCE> --ordinal <ORDINAL> --snapshot <SNAPSHOT> <ID>
ArgumentDescription
<ID>Deployment ID, or <deployment-group-name>/<deployment-name>.
FlagDescription
--resource <RESOURCE>Container resource that owns the volume.
--ordinal <ORDINAL>Replica ordinal whose volume is replaced.
--snapshot <SNAPSHOT>Snapshot to restore, as shown by alien deployments volumes.
--yesSkip confirmation prompt.
--jsonPrint the restore request as machine-readable JSON.

alien deployments cancel-volume-restore

Cancel a pending volume restore.

Use it when a restore keeps failing. A restore whose volume was already swapped still finishes.

alien deployments cancel-volume-restore [OPTIONS] <ID> <REQUEST_ID>
ArgumentDescription
<ID>Deployment ID, or <deployment-group-name>/<deployment-name>.
<REQUEST_ID>Restore request ID, as shown by alien deployments volumes.
FlagDescription
--jsonPrint the cancelled request as machine-readable JSON.

alien deployments delete

Delete a deployment.

alien deployments delete [OPTIONS] <ID>
ArgumentDescription
<ID>Deployment ID, or <deployment-group-name>/<deployment-name>.
FlagDescription
--force <DEPLOYMENT_NAME>Force-delete: remove Alien's record without touching your cloud, so the deployment group accepts new deployments again. For a deployment whose stack is already gone or whose cleanup keeps failing. Takes the deployment's name as confirmation; nothing is sent unless it matches. Cannot be combined with --yes.
--erase-dataPermanently erase durable data instead of retaining it.
--yesSkip confirmation prompt.

alien deployments enrollment-code

Issue a new one-hour, one-use enrollment code for a deployment's Operator.

Use it to reinstall the chart of a Kubernetes deployment whose Operator is gone, for example to let a delete finish. The code replaces the deployment's current Operator identity when it is used, so a running Operator stops working. The code is shown once, in this command's output only.

alien deployments enrollment-code [OPTIONS] <ID>
ArgumentDescription
<ID>Deployment ID, or <deployment-group-name>/<deployment-name>.
FlagDescription
--yesSkip the confirmation asked when the deployment is not being deleted.
--jsonPrint the code as machine-readable JSON.

alien deployments retry

Retry a deployment.

alien deployments retry [OPTIONS] <ID>
ArgumentDescription
<ID>Deployment ID, or <deployment-group-name>/<deployment-name>.
FlagDescription
--jsonPrint the updated deployment as machine-readable JSON.

alien deployments redeploy

Redeploy a deployment with the same release.

alien deployments redeploy [OPTIONS] <ID>
ArgumentDescription
<ID>Deployment ID, or <deployment-group-name>/<deployment-name>.
FlagDescription
--waitWait for this exact redeploy operation to finish.
--timeout <TIMEOUT>Maximum wait duration when --wait is used. Default: 10m.
--interval <INTERVAL>Poll interval when --wait is used. Default: 2s.
--jsonPrint the updated deployment as machine-readable JSON.

alien deployments move

Move a deployment to another group without changing its runtime.

alien deployments move [OPTIONS] --deployment-group <DEPLOYMENT_GROUP> <ID>
ArgumentDescription
<ID>Deployment ID, or <deployment-group-name>/<deployment-name>.
FlagDescription
--deployment-group <DEPLOYMENT_GROUP>Destination deployment group ID.
--dry-runPreview eligibility without changing membership.
--expected-membership-revision <EXPECTED_MEMBERSHIP_REVISION>Revision from a previous preview (otherwise preview immediately).
--jsonPrint the server response as machine-readable JSON.

alien deployments pin

Pin a deployment to a specific release.

alien deployments pin [OPTIONS] <ID> [RELEASE_ID]
ArgumentDescription
<ID>Deployment ID, or <deployment-group-name>/<deployment-name>.
[RELEASE_ID]Release ID to pin to (omit to unpin and use active release).
FlagDescription
--jsonPrint the pin response as machine-readable JSON.

alien deployments set-compute

Change machine counts, machine type, data disk size, or quota warning overrides of a deployment.

Pass --machines for a fixed pool, or --min and --max for an autoscaling pool; switching between them changes the pool's mode. The update replaces the deployment's whole pool map with the saved pools plus this change, so other pools are sent back as they were read. Container CPU and memory settings are not sent and stay as they are. Adding or removing pools, or changing their placement, needs a new setup.

alien deployments set-compute [OPTIONS] <ID>
ArgumentDescription
<ID>Deployment ID, or <deployment-group-name>/<deployment-name>.
FlagDescription
--pool <POOL>Pool to change (required when the deployment has more than one).
--machines <MACHINES>Fixed number of machines.
--min <MIN>Minimum machine count for an autoscaling pool.
--max <MAX>Maximum machine count for an autoscaling pool.
--machine <MACHINE>Provider machine type, such as m7i.large. It must keep the pool's CPU architecture; the pool's machines are replaced to apply it.
--data-disk <DATA_DISK>Data disk size for each machine, such as 50Gi, 1Ti, or 0 for none, within the sizes the pool offers. On a cloud pool, changing it replaces each machine and data on the old disks is not kept. On Machines, hosts already joined keep their disks and hosts that join afterwards need the new size.
--quota-warning-override <QUOTA_WARNING_OVERRIDES>Downgrade a quota failure to a visible warning (repeatable; replaces the saved list).
--clear-quota-warning-overridesRemove all saved quota warning overrides.
--yesSkip the confirmation prompt when scaling a pool to 0 machines.
--jsonPrint the update result as machine-readable JSON.

alien deployments set-env

Replace the environment variables of a deployment.

The variables you pass become the full set: any variable not listed is removed. Variables backed by stack inputs are kept; change those with alien deployments set-inputs.

alien deployments set-env [OPTIONS] <ID>
ArgumentDescription
<ID>Deployment ID, or <deployment-group-name>/<deployment-name>.
FlagDescription
--env <ENV>Plain environment variables in KEY=VALUE format (can be used multiple times).
--secret <SECRET>Secret environment variables in KEY=VALUE format (can be used multiple times).
--env-targeted <ENV_TARGETED>Plain environment variables with target resources in KEY=VALUE:pattern1,pattern2 format (can be used multiple times).
--secret-targeted <SECRET_TARGETED>Secret environment variables with target resources in KEY=VALUE:pattern1,pattern2 format (can be used multiple times).
--clearRemove every environment variable.
--yesSkip confirmation prompt.
--jsonPrint the result as machine-readable JSON.

alien deployments inputs

Show a deployment's stack inputs and their current values.

alien deployments inputs [OPTIONS] <ID>
ArgumentDescription
<ID>Deployment ID, or <deployment-group-name>/<deployment-name>.
FlagDescription
--jsonPrint machine-readable JSON.

alien deployments set-inputs

Change stack inputs of a deployment.

Values are read as in alien deploy: a JSON array of strings is a list, and anything else is text that Alien converts to the type the input declares (a number, true or false, or a comma-separated list). Inputs you don't pass keep their saved values.

alien deployments set-inputs [OPTIONS] <ID>
ArgumentDescription
<ID>Deployment ID, or <deployment-group-name>/<deployment-name>.
FlagDescription
--input <INPUTS>Input value in ID=VALUE format (can be used multiple times).
--secret-input <SECRET_INPUTS>Secret input value in ID=VALUE format, sent as text (can be used multiple times).
--secret-input-file <ID=PATH>Secret input read from a file in ID=PATH format, or from piped stdin with ID=-. The contents must be UTF-8 text and are sent byte for byte, including any trailing newline, so use it for PEM certificates and keys (can be used multiple times).
--clear <CLEAR>Input to reset to its default (can be used multiple times).
--jsonPrint the saved inputs as machine-readable JSON.

alien deployments check

Ask the manager to check the deployment's health now.

alien deployments check [OPTIONS] <ID>
ArgumentDescription
<ID>Deployment ID, or <deployment-group-name>/<deployment-name>.
FlagDescription
--jsonPrint the result as machine-readable JSON.

alien deployments set-channel

Change the channel followed by an unpinned deployment.

alien deployments set-channel [OPTIONS] <ID> <CHANNEL>
ArgumentDescription
<ID>Deployment ID.
<CHANNEL>Channel to follow.
FlagDescription
--jsonPrint the updated deployment as machine-readable JSON.

alien deployments token

Create a deployment token (deployment-scoped API key).

Alias: tokens.

alien deployments token [OPTIONS] <ID>
ArgumentDescription
<ID>Deployment ID.
FlagDescription
--jsonPrint the token and deployment ID as JSON.

alien deployments untrack

Forget a deployment this machine tracks locally, discarding its stored key.

alien deployments untrack [OPTIONS] <NAME>
ArgumentDescription
<NAME>Deployment name, as passed to alien deploy --name.

alien status

Show deployment status for the linked project or one deployment.

alien status [OPTIONS] [DEPLOYMENT]
ArgumentDescription
[DEPLOYMENT]Deployment ID, or <deployment-group-name>/<deployment-name>.
FlagDescription
--jsonEmit machine-readable JSON.

Examples:

alien status
alien status --json
alien status production/api
alien status dep_abc123 --json

alien destroy

Destroy resources from a deployment.

alien destroy [OPTIONS] --name <NAME>
FlagDescription
--token <TOKEN>Deployment API key for setup teardown (optional with local tracking or an Alien login).
--name <NAME>Deployment ID, <group>/<name>, or a unique deployment name in the selected project.
--platform <PLATFORM>Target platform (required by alien destroy; alien dev destroy is always local).
--forceForce-destroy: skip resource teardown and delete the record immediately.
--erase-dataPermanently erase durable data instead of retaining it. Also erases data an earlier destroy kept.
--yesSkip confirmation for cloud destruction (local dev destruction never prompts).

Examples:

# Destroy a tracked deployment
alien destroy --name production --platform aws

# Force-destroy (skip resource teardown)
alien destroy --name production --platform aws --force

alien vault

Manage vault secrets for a deployment.

alien vault [OPTIONS] <COMMAND>
SubcommandDescription
setSet a secret value in a vault.
getGet a secret value from a vault.
deleteDelete a secret from a vault.
listList all secrets in a vault.
FlagDescription
--deployment <DEPLOYMENT>Target deployment ID, name, or group/name. Global so it can follow the subcommand; clap refuses a required global argument, so [VaultRemoteArgs::deployment] checks it.

alien vault set

Set a secret value in a vault.

alien vault set [OPTIONS] <VAULT_NAME> <SECRET_NAME> [VALUE]
ArgumentDescription
<VAULT_NAME>Vault name (e.g., "customer-secrets").
<SECRET_NAME>Secret name (e.g., "GITHUB_TOKEN").
[VALUE]Secret value (prefer --stdin to keep it out of process arguments).
FlagDescription
--stdinRead the exact secret bytes from stdin, without trimming whitespace.
--file <FILE>Read a UTF-8 file exactly, without adding a newline or exposing the value in arguments.
--deployment <DEPLOYMENT>Target deployment ID, name, or group/name. Global so it can follow the subcommand; clap refuses a required global argument, so [VaultRemoteArgs::deployment] checks it.

alien vault get

Get a secret value from a vault.

alien vault get [OPTIONS] <VAULT_NAME> <SECRET_NAME>
ArgumentDescription
<VAULT_NAME>Vault name.
<SECRET_NAME>Secret name.
FlagDescription
--deployment <DEPLOYMENT>Target deployment ID, name, or group/name. Global so it can follow the subcommand; clap refuses a required global argument, so [VaultRemoteArgs::deployment] checks it.

alien vault delete

Delete a secret from a vault.

alien vault delete [OPTIONS] <VAULT_NAME> <SECRET_NAME>
ArgumentDescription
<VAULT_NAME>Vault name.
<SECRET_NAME>Secret name.
FlagDescription
--deployment <DEPLOYMENT>Target deployment ID, name, or group/name. Global so it can follow the subcommand; clap refuses a required global argument, so [VaultRemoteArgs::deployment] checks it.

alien vault list

List all secrets in a vault.

alien vault list [OPTIONS] <VAULT_NAME>
ArgumentDescription
<VAULT_NAME>Vault name.
FlagDescription
--deployment <DEPLOYMENT>Target deployment ID, name, or group/name. Global so it can follow the subcommand; clap refuses a required global argument, so [VaultRemoteArgs::deployment] checks it.

On this page