Customers and deployments
alien onboard
Create a deployment group and generate a deployment link.
alien onboard [OPTIONS] [NAME]| Argument | Description |
|---|---|
[NAME] | Customer name. |
| Flag | Description |
|---|---|
--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. |
--json | Output 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. |
--airgapped | The 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>| Subcommand | Description |
|---|---|
list | List deployment groups in the project. |
get | Show deployment-group details. |
update | Rename a deployment group or change its deployment limit. |
set-external-id | Set or clear the ID your own systems use for a deployment group. |
delete | Delete an empty deployment group and its API keys. |
| Flag | Description |
|---|---|
--json | Emit 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,keysalien deployment-groups list
List deployment groups in the project.
Alias: ls.
alien deployment-groups list [OPTIONS]| Flag | Description |
|---|---|
--search <SEARCH> | Search deployment-group name or external ID. |
--json | Emit stable machine-readable JSON. |
alien deployment-groups get
Show deployment-group details.
Alias: describe, show.
alien deployment-groups get [OPTIONS] <CUSTOMER>| Argument | Description |
|---|---|
<CUSTOMER> | Deployment-group ID, name, or external ID. |
| Flag | Description |
|---|---|
--json | Emit stable machine-readable JSON. |
alien deployment-groups update
Rename a deployment group or change its deployment limit.
alien deployment-groups update [OPTIONS] <CUSTOMER>| Argument | Description |
|---|---|
<CUSTOMER> | Deployment-group ID, name, or external ID. |
| Flag | Description |
|---|---|
--name <NAME> | New name: lowercase letters, numbers, and hyphens. |
--json | Emit 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]| Argument | Description |
|---|---|
<CUSTOMER> | Deployment-group ID, name, or external ID. |
[EXTERNAL_ID] | External ID, unique within the project. |
| Flag | Description |
|---|---|
--clear | Remove the external ID. |
--json | Emit 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>| Argument | Description |
|---|---|
<CUSTOMER> | Deployment-group ID, name, or external ID. |
| Flag | Description |
|---|---|
--yes | Skip confirmation prompt. |
--json | Emit stable machine-readable JSON. |
alien deploy
Deploy to a cloud platform.
alien deploy [OPTIONS]| Flag | Description |
|---|---|
--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). |
--machines | Create 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-overrides | Remove all saved quota warning overrides from this deployment. |
--validate-only | Validate 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-heartbeat | Disable heartbeat capability. |
--automatic-setup | Grant 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, --yes | Run 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:
| Flag | Description |
|---|---|
--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-heartbeatalien deployments
Deployment commands.
alien deployments [OPTIONS] <COMMAND>| Subcommand | Description |
|---|---|
set-domains | Use managed certificates for endpoint hostnames, or restore generated domains. |
set-endpoint-source-ranges | Limit the deployment's public endpoints to a list of source address ranges. |
create | Create a new deployment. |
ls | List deployments. |
get | Get deployment details. |
resources | Show a safe resource summary without resource configuration or secrets. |
events | Show deployment lifecycle and configuration events. |
wait | Wait until a deployment is ready or reaches a terminal state. |
machines | Show the machines connected to a deployment. |
drain-machine | Drain a machine so its workloads move to other machines. |
cancel-machine-drain | Cancel a machine drain so the machine takes work again. |
remove-machine | Remove a machine from a deployment. |
join-tokens | List, create, rotate, and revoke tokens that join hosts to a Machines deployment. |
volumes | Show container volumes, their latest snapshots and restores. |
restore-volume | Replace a replica's persistent volume with a volume made from a snapshot. |
cancel-volume-restore | Cancel a pending volume restore. |
delete | Delete a deployment. |
enrollment-code | Issue a new Operator enrollment code for a deployment. |
retry | Retry a deployment. |
redeploy | Redeploy a deployment with the same release. |
move | Move a deployment to another group without changing its runtime. |
pin | Pin a deployment to a specific release. |
set-compute | Change machine counts, machine type, data disk size, or quota warning overrides of a deployment. |
set-env | Replace the environment variables of a deployment. |
inputs | Show a deployment's stack inputs and their current values. |
set-inputs | Change stack inputs of a deployment. |
check | Ask the manager to check the deployment's health now. |
set-channel | Change the channel followed by an unpinned deployment. |
token | Create a deployment token (deployment-scoped API key). |
untrack | Forget 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 --helpExamples:
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-sandboxalien deployments set-domains
Use managed certificates for endpoint hostnames, or restore generated domains.
alien deployments set-domains [OPTIONS] --resource <RESOURCE> <ID>| Argument | Description |
|---|---|
<ID> | Deployment ID or reference. |
| Flag | Description |
|---|---|
--resource <RESOURCE> | Resource that serves the endpoints (its ID in the stack). |
--endpoint <ENDPOINTS> | Endpoint name and hostname (repeat for each endpoint). |
--clear | Restore 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>| Argument | Description |
|---|---|
<ID> | Deployment ID, or <deployment-group-name>/<deployment-name>. |
| Flag | Description |
|---|---|
--range <RANGES> | Allowed source range in CIDR form (repeat for each range). |
--any | Allow 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>| Flag | Description |
|---|---|
--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-push | Disable push (Operator handles deployments instead of manager). |
--no-heartbeat | Disable 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:
| Flag | Description |
|---|---|
--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]| Flag | Description |
|---|---|
--json | Print machine-readable JSON. |
alien deployments get
Get deployment details.
Alias: describe, show, status.
alien deployments get [OPTIONS] <ID>| Argument | Description |
|---|---|
<ID> | Deployment ID, or <deployment-group-name>/<deployment-name>. |
| Flag | Description |
|---|---|
--json | Print machine-readable JSON. |
alien deployments resources
Show a safe resource summary without resource configuration or secrets.
alien deployments resources [OPTIONS] <ID>| Argument | Description |
|---|---|
<ID> | Deployment ID, or <deployment-group-name>/<deployment-name>. |
| Flag | Description |
|---|---|
--json | Print stable machine-readable JSON. |
alien deployments events
Show deployment lifecycle and configuration events.
alien deployments events [OPTIONS] <ID>| Argument | Description |
|---|---|
<ID> | Deployment ID, or <deployment-group-name>/<deployment-name>. |
| Flag | Description |
|---|---|
--limit <LIMIT> | Maximum number of recent events to return. Default: 20. |
--json | Print 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>| Argument | Description |
|---|---|
<ID> | Deployment ID, or <deployment-group-name>/<deployment-name>. |
| Flag | Description |
|---|---|
--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. |
--json | Print a stable machine-readable result. |
alien deployments machines
Show the machines connected to a deployment.
alien deployments machines [OPTIONS] <ID>| Argument | Description |
|---|---|
<ID> | Deployment ID, or <deployment-group-name>/<deployment-name>. |
| Flag | Description |
|---|---|
--json | Print 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>| Argument | Description |
|---|---|
<ID> | Deployment ID, or <deployment-group-name>/<deployment-name>. |
<MACHINE_ID> | Machine ID, as shown by alien deployments machines. |
| Flag | Description |
|---|---|
--deadline <DEADLINE> | Report the drain as overdue if it hasn't finished after this long, such as 30m. |
--force | Stop the machine's replicas without waiting for healthy replacements. |
--yes | Skip the confirmation prompt for --force. |
--json | Print 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>| Argument | Description |
|---|---|
<ID> | Deployment ID, or <deployment-group-name>/<deployment-name>. |
<MACHINE_ID> | Machine ID, as shown by alien deployments machines. |
| Flag | Description |
|---|---|
--json | Print 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>| Argument | Description |
|---|---|
<ID> | Deployment ID, or <deployment-group-name>/<deployment-name>. |
<MACHINE_ID> | Machine ID, as shown by alien deployments machines. |
| Flag | Description |
|---|---|
--yes | Skip confirmation prompt. |
--json | Print 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>| Subcommand | Description |
|---|---|
list | List a deployment's join tokens. |
create | Create a join token. Existing tokens keep working. |
rotate | Revoke every join token and create a new one. |
revoke | Revoke 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>| Argument | Description |
|---|---|
<ID> | Deployment ID, or <deployment-group-name>/<deployment-name>. |
| Flag | Description |
|---|---|
--json | Print machine-readable JSON. |
alien deployments join-tokens create
Create a join token. Existing tokens keep working.
alien deployments join-tokens create [OPTIONS] <ID>| Argument | Description |
|---|---|
<ID> | Deployment ID, or <deployment-group-name>/<deployment-name>. |
| Flag | Description |
|---|---|
--json | Print 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>| Argument | Description |
|---|---|
<ID> | Deployment ID, or <deployment-group-name>/<deployment-name>. |
| Flag | Description |
|---|---|
--yes | Skip confirmation prompt. |
--json | Print 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>| Argument | Description |
|---|---|
<ID> | Deployment ID, or <deployment-group-name>/<deployment-name>. |
<TOKEN_ID> | Token ID, as shown by alien deployments join-tokens list. |
| Flag | Description |
|---|---|
--yes | Skip confirmation prompt. |
--json | Print the result as machine-readable JSON. |
alien deployments volumes
Show container volumes, their latest snapshots and restores.
alien deployments volumes [OPTIONS] <ID>| Argument | Description |
|---|---|
<ID> | Deployment ID, or <deployment-group-name>/<deployment-name>. |
| Flag | Description |
|---|---|
--json | Print 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>| Argument | Description |
|---|---|
<ID> | Deployment ID, or <deployment-group-name>/<deployment-name>. |
| Flag | Description |
|---|---|
--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. |
--yes | Skip confirmation prompt. |
--json | Print 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>| Argument | Description |
|---|---|
<ID> | Deployment ID, or <deployment-group-name>/<deployment-name>. |
<REQUEST_ID> | Restore request ID, as shown by alien deployments volumes. |
| Flag | Description |
|---|---|
--json | Print the cancelled request as machine-readable JSON. |
alien deployments delete
Delete a deployment.
alien deployments delete [OPTIONS] <ID>| Argument | Description |
|---|---|
<ID> | Deployment ID, or <deployment-group-name>/<deployment-name>. |
| Flag | Description |
|---|---|
--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-data | Permanently erase durable data instead of retaining it. |
--yes | Skip 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>| Argument | Description |
|---|---|
<ID> | Deployment ID, or <deployment-group-name>/<deployment-name>. |
| Flag | Description |
|---|---|
--yes | Skip the confirmation asked when the deployment is not being deleted. |
--json | Print the code as machine-readable JSON. |
alien deployments retry
Retry a deployment.
alien deployments retry [OPTIONS] <ID>| Argument | Description |
|---|---|
<ID> | Deployment ID, or <deployment-group-name>/<deployment-name>. |
| Flag | Description |
|---|---|
--json | Print the updated deployment as machine-readable JSON. |
alien deployments redeploy
Redeploy a deployment with the same release.
alien deployments redeploy [OPTIONS] <ID>| Argument | Description |
|---|---|
<ID> | Deployment ID, or <deployment-group-name>/<deployment-name>. |
| Flag | Description |
|---|---|
--wait | Wait 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. |
--json | Print 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>| Argument | Description |
|---|---|
<ID> | Deployment ID, or <deployment-group-name>/<deployment-name>. |
| Flag | Description |
|---|---|
--deployment-group <DEPLOYMENT_GROUP> | Destination deployment group ID. |
--dry-run | Preview eligibility without changing membership. |
--expected-membership-revision <EXPECTED_MEMBERSHIP_REVISION> | Revision from a previous preview (otherwise preview immediately). |
--json | Print the server response as machine-readable JSON. |
alien deployments pin
Pin a deployment to a specific release.
alien deployments pin [OPTIONS] <ID> [RELEASE_ID]| Argument | Description |
|---|---|
<ID> | Deployment ID, or <deployment-group-name>/<deployment-name>. |
[RELEASE_ID] | Release ID to pin to (omit to unpin and use active release). |
| Flag | Description |
|---|---|
--json | Print 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>| Argument | Description |
|---|---|
<ID> | Deployment ID, or <deployment-group-name>/<deployment-name>. |
| Flag | Description |
|---|---|
--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-overrides | Remove all saved quota warning overrides. |
--yes | Skip the confirmation prompt when scaling a pool to 0 machines. |
--json | Print 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>| Argument | Description |
|---|---|
<ID> | Deployment ID, or <deployment-group-name>/<deployment-name>. |
| Flag | Description |
|---|---|
--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). |
--clear | Remove every environment variable. |
--yes | Skip confirmation prompt. |
--json | Print the result as machine-readable JSON. |
alien deployments inputs
Show a deployment's stack inputs and their current values.
alien deployments inputs [OPTIONS] <ID>| Argument | Description |
|---|---|
<ID> | Deployment ID, or <deployment-group-name>/<deployment-name>. |
| Flag | Description |
|---|---|
--json | Print 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>| Argument | Description |
|---|---|
<ID> | Deployment ID, or <deployment-group-name>/<deployment-name>. |
| Flag | Description |
|---|---|
--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). |
--json | Print 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>| Argument | Description |
|---|---|
<ID> | Deployment ID, or <deployment-group-name>/<deployment-name>. |
| Flag | Description |
|---|---|
--json | Print 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>| Argument | Description |
|---|---|
<ID> | Deployment ID. |
<CHANNEL> | Channel to follow. |
| Flag | Description |
|---|---|
--json | Print 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>| Argument | Description |
|---|---|
<ID> | Deployment ID. |
| Flag | Description |
|---|---|
--json | Print 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>| Argument | Description |
|---|---|
<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]| Argument | Description |
|---|---|
[DEPLOYMENT] | Deployment ID, or <deployment-group-name>/<deployment-name>. |
| Flag | Description |
|---|---|
--json | Emit machine-readable JSON. |
Examples:
alien status
alien status --json
alien status production/api
alien status dep_abc123 --jsonalien destroy
Destroy resources from a deployment.
alien destroy [OPTIONS] --name <NAME>| Flag | Description |
|---|---|
--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). |
--force | Force-destroy: skip resource teardown and delete the record immediately. |
--erase-data | Permanently erase durable data instead of retaining it. Also erases data an earlier destroy kept. |
--yes | Skip 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 --forcealien vault
Manage vault secrets for a deployment.
alien vault [OPTIONS] <COMMAND>| Subcommand | Description |
|---|---|
set | Set a secret value in a vault. |
get | Get a secret value from a vault. |
delete | Delete a secret from a vault. |
list | List all secrets in a vault. |
| Flag | Description |
|---|---|
--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]| Argument | Description |
|---|---|
<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). |
| Flag | Description |
|---|---|
--stdin | Read 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>| Argument | Description |
|---|---|
<VAULT_NAME> | Vault name. |
<SECRET_NAME> | Secret name. |
| Flag | Description |
|---|---|
--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>| Argument | Description |
|---|---|
<VAULT_NAME> | Vault name. |
<SECRET_NAME> | Secret name. |
| Flag | Description |
|---|---|
--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>| Argument | Description |
|---|---|
<VAULT_NAME> | Vault name. |
| Flag | Description |
|---|---|
--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. |