Local development
alien dev
Local development commands.
alien dev [OPTIONS] [COMMAND]| Subcommand | Description |
|---|---|
server | Start the local manager only. |
deployments | Deployment commands against the local manager. |
releases | Release commands against the local manager. |
whoami | Show local manager identity information. |
deploy | Deploy to the local manager. |
destroy | Destroy from the local manager. |
release | Create a release on the local manager. |
vault | Manage vault secrets for local dev deployments. |
commands | Invoke remote commands on local dev deployments. |
debug | Run a local command against a local dev deployment using manager-side credentials. |
| Flag | Description |
|---|---|
--port <PORT> | Dev server port. Default: 9090. |
-c, --config <CONFIG> | Path to configuration file (default: auto-discover alien.ts in current directory). |
--skip-build | Skip the build step (use existing build artifacts). |
--status-file <STATUS_FILE> | Path to write status file (JSON with alien_core::DevStatus). |
--deployment-name <DEPLOYMENT_NAME> | Deployment name, or an existing ID / group/name to migrate legacy local state. Default: default. |
--env <ENV_VARS> | Plain environment variables (KEY=VALUE or KEY=VALUE:target1,target2). |
--secret <SECRET_VARS> | Secret environment variables (KEY=VALUE or KEY=VALUE:target1,target2). |
--secret-file <SECRET_FILES> | Secret environment variables read from files (KEY=PATH or KEY=PATH:target1,target2). |
--secret-env <SECRET_ENV_VARS> | Secret environment variables inherited from the CLI environment (KEY=SOURCE_ENV or KEY=SOURCE_ENV:target1,target2). |
--input <INPUT_VALUES> | Stack input value for the deployment this session creates (id=value). |
--secret-input <SECRET_INPUT_VALUES> | Secret stack input value for the deployment this session creates (id=value). The value is visible in the process list; prefer --secret-input-file or --secret-input-env. |
--secret-input-file <ID=PATH> | Secret stack input read from a file (ID=PATH), or from piped stdin with ID=-. The contents are used byte for byte, including any trailing newline. |
--secret-input-env <ID=SOURCE_ENV> | Secret stack input inherited from the CLI environment (ID=SOURCE_ENV). |
alien dev server
Start the local manager only.
alien dev server [OPTIONS]| Flag | Description |
|---|---|
--port <PORT> | Dev server port. Default: 9090. |
alien dev deployments
Deployment commands against the local manager.
alien dev 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. |
| Flag | Description |
|---|---|
--port <PORT> | Dev server port. Default: 9090. |
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 dev deployments set-domains
Use managed certificates for endpoint hostnames, or restore generated domains.
alien dev deployments set-domains [OPTIONS] --resource <RESOURCE> <ID>| Argument | Description |
|---|---|
<ID> | Deployment ID or reference. |
| Flag | Description |
|---|---|
--port <PORT> | Dev server port. Default: 9090. |
--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 dev 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 dev deployments set-endpoint-source-ranges [OPTIONS] <ID>| Argument | Description |
|---|---|
<ID> | Deployment ID, or <deployment-group-name>/<deployment-name>. |
| Flag | Description |
|---|---|
--port <PORT> | Dev server port. Default: 9090. |
--range <RANGES> | Allowed source range in CIDR form (repeat for each range). |
--any | Allow anyone to connect: remove the saved list. |
--json |
alien dev deployments create
Create a new deployment.
alien dev deployments create [OPTIONS] --name <NAME> --project <PROJECT> --deployment-group <DEPLOYMENT_GROUP> --platform <PLATFORM>| Flag | Description |
|---|---|
--name <NAME> | Deployment display name. |
--port <PORT> | Dev server port. Default: 9090. |
--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 dev deployments ls
List deployments.
Alias: list.
alien dev deployments ls [OPTIONS]| Flag | Description |
|---|---|
--port <PORT> | Dev server port. Default: 9090. |
--json | Print machine-readable JSON. |
alien dev deployments get
Get deployment details.
Alias: describe, show, status.
alien dev deployments get [OPTIONS] <ID>| Argument | Description |
|---|---|
<ID> | Deployment ID, or <deployment-group-name>/<deployment-name>. |
| Flag | Description |
|---|---|
--json | Print machine-readable JSON. |
--port <PORT> | Dev server port. Default: 9090. |
alien dev deployments resources
Show a safe resource summary without resource configuration or secrets.
alien dev deployments resources [OPTIONS] <ID>| Argument | Description |
|---|---|
<ID> | Deployment ID, or <deployment-group-name>/<deployment-name>. |
| Flag | Description |
|---|---|
--json | Print stable machine-readable JSON. |
--port <PORT> | Dev server port. Default: 9090. |
alien dev deployments events
Show deployment lifecycle and configuration events.
alien dev 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. |
--port <PORT> | Dev server port. Default: 9090. |
--json | Print the API response as machine-readable JSON. |
alien dev deployments wait
Wait until a deployment is ready or reaches a terminal state.
alien dev 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. |
--port <PORT> | Dev server port. Default: 9090. |
--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 dev deployments machines
Show the machines connected to a deployment.
alien dev 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. |
--port <PORT> | Dev server port. Default: 9090. |
alien dev 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 dev 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. |
--port <PORT> | Dev server port. Default: 9090. |
--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 dev deployments cancel-machine-drain
Cancel a machine drain so the machine takes work again.
alien dev 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. |
--port <PORT> | Dev server port. Default: 9090. |
alien dev 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 dev 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 |
|---|---|
--port <PORT> | Dev server port. Default: 9090. |
--yes | Skip confirmation prompt. |
--json | Print the result as machine-readable JSON. |
alien dev deployments join-tokens
List, create, rotate, and revoke tokens that join hosts to a Machines deployment.
Alias: join-token.
alien dev 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. |
| Flag | Description |
|---|---|
--port <PORT> | Dev server port. Default: 9090. |
alien dev deployments join-tokens list
List a deployment's join tokens.
Alias: ls.
alien dev deployments join-tokens list [OPTIONS] <ID>| Argument | Description |
|---|---|
<ID> | Deployment ID, or <deployment-group-name>/<deployment-name>. |
| Flag | Description |
|---|---|
--json | Print machine-readable JSON. |
--port <PORT> | Dev server port. Default: 9090. |
alien dev deployments join-tokens create
Create a join token. Existing tokens keep working.
alien dev 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. |
--port <PORT> | Dev server port. Default: 9090. |
alien dev deployments join-tokens rotate
Revoke every join token and create a new one.
alien dev deployments join-tokens rotate [OPTIONS] <ID>| Argument | Description |
|---|---|
<ID> | Deployment ID, or <deployment-group-name>/<deployment-name>. |
| Flag | Description |
|---|---|
--port <PORT> | Dev server port. Default: 9090. |
--yes | Skip confirmation prompt. |
--json | Print the token and join details as JSON. |
alien dev deployments join-tokens revoke
Revoke one join token. Hosts that already joined keep running.
alien dev 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 |
|---|---|
--port <PORT> | Dev server port. Default: 9090. |
--yes | Skip confirmation prompt. |
--json | Print the result as machine-readable JSON. |
alien dev deployments volumes
Show container volumes, their latest snapshots and restores.
alien dev deployments volumes [OPTIONS] <ID>| Argument | Description |
|---|---|
<ID> | Deployment ID, or <deployment-group-name>/<deployment-name>. |
| Flag | Description |
|---|---|
--json | Print machine-readable JSON. |
--port <PORT> | Dev server port. Default: 9090. |
alien dev 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 dev deployments restore-volume [OPTIONS] --resource <RESOURCE> --ordinal <ORDINAL> --snapshot <SNAPSHOT> <ID>| Argument | Description |
|---|---|
<ID> | Deployment ID, or <deployment-group-name>/<deployment-name>. |
| Flag | Description |
|---|---|
--port <PORT> | Dev server port. Default: 9090. |
--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 dev 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 dev 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. |
--port <PORT> | Dev server port. Default: 9090. |
alien dev deployments delete
Delete a deployment.
alien dev 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. |
--port <PORT> | Dev server port. Default: 9090. |
--erase-data | Permanently erase durable data instead of retaining it. |
--yes | Skip confirmation prompt. |
alien dev 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 dev deployments enrollment-code [OPTIONS] <ID>| Argument | Description |
|---|---|
<ID> | Deployment ID, or <deployment-group-name>/<deployment-name>. |
| Flag | Description |
|---|---|
--port <PORT> | Dev server port. Default: 9090. |
--yes | Skip the confirmation asked when the deployment is not being deleted. |
--json | Print the code as machine-readable JSON. |
alien dev deployments retry
Retry a deployment.
alien dev 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. |
--port <PORT> | Dev server port. Default: 9090. |
alien dev deployments redeploy
Redeploy a deployment with the same release.
alien dev deployments redeploy [OPTIONS] <ID>| Argument | Description |
|---|---|
<ID> | Deployment ID, or <deployment-group-name>/<deployment-name>. |
| Flag | Description |
|---|---|
--port <PORT> | Dev server port. Default: 9090. |
--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 dev deployments move
Move a deployment to another group without changing its runtime.
alien dev 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. |
--port <PORT> | Dev server port. Default: 9090. |
--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 dev deployments pin
Pin a deployment to a specific release.
alien dev 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. |
--port <PORT> | Dev server port. Default: 9090. |
alien dev 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 dev 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). |
--port <PORT> | Dev server port. Default: 9090. |
--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 dev 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 dev 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). |
--port <PORT> | Dev server port. Default: 9090. |
--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 dev deployments inputs
Show a deployment's stack inputs and their current values.
alien dev deployments inputs [OPTIONS] <ID>| Argument | Description |
|---|---|
<ID> | Deployment ID, or <deployment-group-name>/<deployment-name>. |
| Flag | Description |
|---|---|
--json | Print machine-readable JSON. |
--port <PORT> | Dev server port. Default: 9090. |
alien dev 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 dev 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). |
--port <PORT> | Dev server port. Default: 9090. |
--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 dev deployments check
Ask the manager to check the deployment's health now.
alien dev 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. |
--port <PORT> | Dev server port. Default: 9090. |
alien dev deployments set-channel
Change the channel followed by an unpinned deployment.
alien dev 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. |
--port <PORT> | Dev server port. Default: 9090. |
alien dev deployments token
Create a deployment token (deployment-scoped API key).
Alias: tokens.
alien dev deployments token [OPTIONS] <ID>| Argument | Description |
|---|---|
<ID> | Deployment ID. |
| Flag | Description |
|---|---|
--json | Print the token and deployment ID as JSON. |
--port <PORT> | Dev server port. Default: 9090. |
alien dev deployments untrack
Forget a deployment this machine tracks locally, discarding its stored key.
alien dev deployments untrack [OPTIONS] <NAME>| Argument | Description |
|---|---|
<NAME> | Deployment name, as passed to alien deploy --name. |
| Flag | Description |
|---|---|
--port <PORT> | Dev server port. Default: 9090. |
alien dev releases
Release commands against the local manager.
alien dev 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. |
| Flag | Description |
|---|---|
--port <PORT> | Dev server port. Default: 9090. |
alien dev releases ls
List releases, newest first.
Alias: list.
alien dev releases ls [OPTIONS]| Flag | Description |
|---|---|
--port <PORT> | Dev server port. Default: 9090. |
--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 dev releases get
Show a release and how far it has rolled out across deployments.
Alias: describe, show.
alien dev releases get [OPTIONS] <ID>| Argument | Description |
|---|---|
<ID> | Release ID (rel_…). |
| Flag | Description |
|---|---|
--port <PORT> | Dev server port. Default: 9090. |
--json | Emit machine-readable JSON. |
alien dev releases promote
Move a channel to an existing release.
alien dev releases promote [OPTIONS] <ID>| Argument | Description |
|---|---|
<ID> | Release ID (rel_…). |
| Flag | Description |
|---|---|
--channel <CHANNEL> | Channel to advance. Default: production. |
--port <PORT> | Dev server port. Default: 9090. |
--json | Emit machine-readable JSON. |
alien dev releases channels
List the project's release channels.
alien dev releases channels [OPTIONS]| Flag | Description |
|---|---|
--port <PORT> | Dev server port. Default: 9090. |
--json |
alien dev releases create-channel
Create a release channel.
alien dev releases create-channel [OPTIONS] <NAME>| Argument | Description |
|---|---|
<NAME> |
| Flag | Description |
|---|---|
--port <PORT> | Dev server port. Default: 9090. |
--release <RELEASE> | Optional release to select initially. |
--json |
alien dev releases revoke
Make protected deployments refuse a release, also as a rollback (signs a device list change).
alien dev releases revoke [OPTIONS] [ID]| Argument | Description |
|---|---|
[ID] | Release ID (rel_…), as the control plane names it. |
| Flag | Description |
|---|---|
--port <PORT> | Dev server port. Default: 9090. |
--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 dev releases delete-channel
Delete a non-production release channel.
alien dev releases delete-channel [OPTIONS] <NAME>| Argument | Description |
|---|---|
<NAME> |
| Flag | Description |
|---|---|
--port <PORT> | Dev server port. Default: 9090. |
alien dev whoami
Show local manager identity information.
alien dev whoami [OPTIONS]| Flag | Description |
|---|---|
--json | Emit structured JSON output. |
--port <PORT> | Dev server port. Default: 9090. |
Examples:
alien whoami
alien whoami --json
alien dev whoamialien dev deploy
Deploy to the local manager.
alien dev deploy [OPTIONS]| Flag | Description |
|---|---|
--port <PORT> | Dev server port. Default: 9090. |
--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 dev destroy
Destroy from the local manager.
alien dev destroy [OPTIONS] --name <NAME>| Flag | Description |
|---|---|
--port <PORT> | Dev server port. Default: 9090. |
--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 dev release
Create a release on the local manager.
alien dev 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. |
--port <PORT> | Dev server port. Default: 9090. |
--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 dev vault
Manage vault secrets for local dev deployments.
alien dev 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 |
|---|---|
--port <PORT> | Dev server port. Default: 9090. |
--deployment <DEPLOYMENT> | Target deployment ID or name (default: "default"). Default: default. |
--state-dir <STATE_DIR> | State directory (default: .alien). Default: .alien. |
alien dev vault set
Set a secret value in a vault.
alien dev 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 |
|---|---|
--port <PORT> | Dev server port. Default: 9090. |
--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 or name (default: "default"). Default: default. |
alien dev vault get
Get a secret value from a vault.
alien dev vault get [OPTIONS] <VAULT_NAME> <SECRET_NAME>| Argument | Description |
|---|---|
<VAULT_NAME> | Vault name. |
<SECRET_NAME> | Secret name. |
| Flag | Description |
|---|---|
--port <PORT> | Dev server port. Default: 9090. |
--deployment <DEPLOYMENT> | Target deployment ID or name (default: "default"). Default: default. |
alien dev vault delete
Delete a secret from a vault.
alien dev vault delete [OPTIONS] <VAULT_NAME> <SECRET_NAME>| Argument | Description |
|---|---|
<VAULT_NAME> | Vault name. |
<SECRET_NAME> | Secret name. |
| Flag | Description |
|---|---|
--port <PORT> | Dev server port. Default: 9090. |
--deployment <DEPLOYMENT> | Target deployment ID or name (default: "default"). Default: default. |
alien dev vault list
List all secrets in a vault.
alien dev vault list [OPTIONS] <VAULT_NAME>| Argument | Description |
|---|---|
<VAULT_NAME> | Vault name. |
| Flag | Description |
|---|---|
--port <PORT> | Dev server port. Default: 9090. |
--deployment <DEPLOYMENT> | Target deployment ID or name (default: "default"). Default: default. |
alien dev commands
Invoke remote commands on local dev deployments.
alien dev commands [OPTIONS] <COMMAND>| Subcommand | Description |
|---|---|
invoke | Invoke a command on a deployment and wait for the result. |
| Flag | Description |
|---|---|
--port <PORT> | Dev server port. Default: 9090. |
alien dev commands invoke
Invoke a command on a deployment and wait for the result.
alien dev commands invoke [OPTIONS] --deployment <DEPLOYMENT> --command <COMMAND>| Flag | Description |
|---|---|
--deployment <DEPLOYMENT> | Deployment ID, or <deployment-group-name>/<deployment-name>. |
--port <PORT> | Dev server port. Default: 9090. |
--command <COMMAND> | Command name to invoke. |
--target <TARGET> | Resource ID to invoke when several resources handle commands. |
--params <PARAMS> | Command parameters as JSON (default: {}). Default: {}. |
--timeout <TIMEOUT> | Timeout in seconds (default: 60). Default: 60. |
alien dev debug
Run a local command against a local dev deployment using manager-side credentials.
alien dev debug [OPTIONS] [DEPLOYMENT] [-- <CMD>...] [COMMAND]| Subcommand | Description |
|---|---|
shell | Open an interactive shell in the deployment runtime. |
exec | Run a non-interactive command in the deployment runtime. |
| Argument | Description |
|---|---|
[DEPLOYMENT] | Deployment ID (dep_...) or <group>/<name>. |
[CMD]... | Command and arguments to execute. Everything after -- is forwarded verbatim. If omitted, an interactive shell ($SHELL, or /bin/sh) is spawned instead. |
| Flag | Description |
|---|---|
--port <PORT> | Dev server port. Default: 9090. |
--access-request <ACCESS_REQUEST> | Access request id (ar_...) authorizing this debug session. Required for Remote Operator (pull-mode Kubernetes) deployments and for push-mode AWS, GCP and Azure deployments, where debugging shares the same approval flow as alien operations invoke. Create one with alien access-requests create --debug-tool <kubectl|aws|gcloud|az> .... |
--request-access | Shortcut: create a debug-tool access request for this deployment, wait for it to be approved, then start the session against it. Creates the same access-request resource as alien access-requests create --debug-tool .... |
--access-duration <ACCESS_DURATION> | Requested approval duration for --request-access, e.g. 30m, 1h. Informational until approved; the approver sets the actual grant window. Default: 30m. |
--access-cloud-scope <ACCESS_CLOUD_SCOPE> | Scope the --request-access grant to a specific cloud account/project/ subscription, e.g. 123456789012/prod-readonly. Only meaningful for aws/gcloud/az (kubectl scopes by namespace, derived automatically from the debugged command). Omit for an unscoped grant covering the whole deployment's cloud identity. |
--json | Emit errors as JSON. The spawned command's stdout/stderr are always passed through unchanged. |
Examples:
alien debug dep_abc123 -- aws sts get-caller-identity
alien debug acme/prod -- gcloud projects list
alien debug acme/prod -- kubectl get pods
# Remote Operator (pull-mode Kubernetes) and push-mode AWS, GCP and Azure
# deployments require an approved access request covering the tool and
# the namespace or scope you're debugging:
alien access-requests create --deployment acme/prod \
--debug-tool kubectl --debug-namespace acme --duration 30m
alien debug acme/prod --access-request ar_123 -- kubectl get pods -n acme
# Or request access, wait for approval and run in one step:
alien debug acme/prod --request-access -- aws sts get-caller-identity
# No `--` arg drops you into a local interactive shell with the env set:
alien debug acme/prod
# Open an interactive shell in a Local deployment runtime:
alien debug shell acme/prod
# Run a non-interactive command in a Local deployment runtime:
alien debug exec acme/prod -- uname -a
alien debug exec acme/prod -- powershell.exe -NoLogo -Command Get-ProcessSee also: /docs/production/remote-operator/debug.
alien dev debug shell
Open an interactive shell in the deployment runtime.
alien dev debug shell [OPTIONS] <DEPLOYMENT>| Argument | Description |
|---|---|
<DEPLOYMENT> | Deployment ID (dep_...) or <group>/<name>. |
| Flag | Description |
|---|---|
--port <PORT> | Dev server port. Default: 9090. |
--resource <RESOURCE> | Container or daemon resource ID to attach to. |
--machine <MACHINE> | Machine ID to attach to directly. |
--reason <REASON> | Why you open the session; recorded in the machine's transcript. |
--json | Emit errors as JSON. |
Examples:
alien debug shell acme/prodalien dev debug exec
Run a non-interactive command in the deployment runtime.
alien dev debug exec [OPTIONS] <DEPLOYMENT> -- <CMD>...| Argument | Description |
|---|---|
<DEPLOYMENT> | Deployment ID (dep_...) or <group>/<name>. |
<CMD>... | Command and arguments to execute remotely. |
| Flag | Description |
|---|---|
--port <PORT> | Dev server port. Default: 9090. |
--resource <RESOURCE> | Container or daemon resource ID to attach to. |
--machine <MACHINE> | Machine ID to attach to directly. |
--timeout-seconds <TIMEOUT_SECONDS> | Timeout in seconds for the remote command. Default: 120. |
--reason <REASON> | Why you open the session; recorded in the machine's transcript. |
--json | Emit structured JSON with captured output. |
Examples:
alien debug exec acme/prod -- uname -a
alien debug exec acme/prod -- powershell.exe -NoLogo -Command Get-Process