Docs

Account and project

alien login

Perform login & select default workspace.

alien login [OPTIONS]
FlagDescription
--manager <URL>URL of a manager you run (instead of alien.dev).
--token <TOKEN>API key for --manager (prompted for when omitted in a terminal). Env: ALIEN_API_KEY.

Examples:

alien login
alien login --workspace my-workspace
alien login --manager https://manager.example.com --token ax_admin_...

alien logout

Remove saved tokens & workspace.

alien logout [OPTIONS]

alien whoami

Show current authenticated user information.

alien whoami [OPTIONS]
FlagDescription
--jsonEmit structured JSON output.

Examples:

alien whoami
alien whoami --json
alien dev whoami

alien workspaces

Workspace commands.

alien workspaces [OPTIONS] <COMMAND>
SubcommandDescription
currentPrint the effective current workspace.
createCreate a workspace and select it as the default.
setSet the default workspace.
lsList all available workspaces.
FlagDescription
--jsonEmit structured JSON output.

Examples:

alien workspaces current
alien workspaces create my-workspace
alien workspaces ls
alien workspaces set my-workspace
alien workspaces set --json

alien workspaces current

Print the effective current workspace.

alien workspaces current [OPTIONS]
FlagDescription
--jsonEmit structured JSON output.

alien workspaces create

Create a workspace and select it as the default.

alien workspaces create [OPTIONS] <NAME>
ArgumentDescription
<NAME>Permanent workspace name used in URLs and CLI commands.
FlagDescription
--jsonEmit structured JSON output.

alien workspaces set

Set the default workspace.

alien workspaces set [OPTIONS] [NAME]
ArgumentDescription
[NAME]Workspace name. If omitted in a real TTY, prompts for selection.
FlagDescription
--jsonEmit structured JSON output.

alien workspaces ls

List all available workspaces.

alien workspaces ls [OPTIONS]
FlagDescription
--jsonEmit structured JSON output.

alien projects

Project commands.

alien projects [OPTIONS] <COMMAND>
SubcommandDescription
createCreate an ordinary project.
lsList projects.
getShow project configuration and enabled capabilities.
deleteDelete a project. The platform refuses while it still has deployments.
portalManage deployment portal appearance, domain, and Google sign-in.
packagesInspect or update installation package settings.
capabilitiesInspect and enable project capabilities.
FlagDescription
--jsonEmit structured JSON output.

Examples:

alien projects create my-project
alien projects get my-project
alien projects describe my-project --json
alien projects list
alien projects ls --json
alien --workspace my-workspace projects ls
alien projects packages get my-project --workspace my-workspace --json
alien projects packages update my-project --workspace my-workspace --file settings.json
alien projects portal get my-project --json
alien projects portal set my-project --title Acme --accent-color green
alien projects capabilities status
alien projects capabilities enable ai --model byo/claude-opus-5
alien projects capabilities enable encryption
alien projects capabilities enable remote-sandbox --image public.ecr.aws/example/analysis:v1 --max-session-lifetime-seconds 3600
alien projects capabilities enable remote-sandbox --src ./sandbox --max-session-lifetime-seconds 3600
alien projects capabilities enable remote-sandbox --src ./sandbox --dockerfile Sandbox.dockerfile --max-session-lifetime-seconds 3600
alien projects capabilities enable remote-sandbox --src ./sandbox --rebuild --max-session-lifetime-seconds 3600

alien projects create

Create an ordinary project.

alien projects create [OPTIONS] <NAME>
ArgumentDescription
<NAME>Project name.
FlagDescription
--jsonEmit structured JSON output.

alien projects ls

List projects.

Alias: list.

alien projects ls [OPTIONS]
FlagDescription
--jsonEmit structured JSON output.

alien projects get

Show project configuration and enabled capabilities.

Alias: describe, show.

alien projects get [OPTIONS] [PROJECT]
ArgumentDescription
[PROJECT]Project ID or name (defaults to the linked project).
FlagDescription
--jsonEmit structured JSON output.

alien projects delete

Delete a project. The platform refuses while it still has deployments.

Alias: rm.

alien projects delete [OPTIONS] <PROJECT>
ArgumentDescription
<PROJECT>Project ID or name.
FlagDescription
--jsonEmit structured JSON output.
-y, --yesSkip the confirmation prompt.

alien projects portal

Manage deployment portal appearance, domain, and Google sign-in.

alien projects portal [OPTIONS] <COMMAND>
SubcommandDescription
getPrint appearance, domain status, and Google sign-in settings.
setMerge appearance settings; omitted fields are preserved.
domainInspect domain status or select an existing verified domain.
google-sign-inInspect Google sign-in or configure its OAuth web client.
FlagDescription
--jsonEmit structured JSON output.

alien projects portal get

Print appearance, domain status, and Google sign-in settings.

alien projects portal get [OPTIONS] [PROJECT]
ArgumentDescription
[PROJECT]Project ID or name (defaults to the linked project).
FlagDescription
--jsonEmit structured JSON output.

alien projects portal set

Merge appearance settings; omitted fields are preserved. The API replaces the full appearance object and does not support conditional writes. Run appearance edits sequentially: concurrent edits from other clients can overwrite each other.

alien projects portal set [OPTIONS] [PROJECT]
ArgumentDescription
[PROJECT]Project ID or name (defaults to the linked project).
FlagDescription
--jsonEmit structured JSON output.
--title <TITLE>
--subtitle <SUBTITLE>
--preset <PRESET>Values: clean, technical, enterprise, playful, minimal.
--accent-color <ACCENT_COLOR>Values: blue, purple, green, orange, pink, slate.
--density <DENSITY>Values: comfortable, compact.
--avatar-url <AVATAR_URL>
--favicon-url <FAVICON_URL>
--support-url <SUPPORT_URL>
--docs-url <DOCS_URL>
--clear <CLEAR>Reset a nullable field to its default; repeat for multiple fields. Values: title, subtitle, avatar-url, favicon-url, support-url, docs-url.
--file <FILE>Partial JSON object; flags override the file. Use - for stdin.

alien projects portal domain

Inspect domain status or select an existing verified domain.

alien projects portal domain [OPTIONS] [PROJECT]
ArgumentDescription
[PROJECT]Project ID or name (defaults to the linked project).
FlagDescription
--jsonEmit structured JSON output.
--use <DOMAIN>Existing domain ID or hostname.
--unsetReturn to the default domain.

alien projects portal google-sign-in

Inspect Google sign-in or configure its OAuth web client.

alien projects portal google-sign-in [OPTIONS] [PROJECT]
ArgumentDescription
[PROJECT]Project ID or name (defaults to the linked project).
FlagDescription
--alien-managedUse the Alien-managed OAuth client.
--jsonEmit structured JSON output.
--client-id <CLIENT_ID>Google OAuth web client ID.
--client-secret-file <CLIENT_SECRET_FILE>Read the write-only secret from a file or - for stdin.

alien projects packages

Inspect or update installation package settings.

alien projects packages [OPTIONS] <COMMAND>
SubcommandDescription
getPrint the project's installation package settings as JSON.
updateMerge settings from JSON; omitted fields are preserved.
FlagDescription
--jsonEmit structured JSON output.

alien projects packages get

Print the project's installation package settings as JSON.

alien projects packages get [OPTIONS] [PROJECT]
ArgumentDescription
[PROJECT]Project ID or name (defaults to the linked project).
FlagDescription
--jsonEmit structured JSON output.

alien projects packages update

Merge settings from JSON; omitted fields are preserved.

alien projects packages update [OPTIONS] --file <FILE> [PROJECT]
ArgumentDescription
[PROJECT]Project ID or name (defaults to the linked project).
FlagDescription
--file <FILE>JSON patch file; use - to read standard input. Set a package to null to remove it.
--jsonEmit structured JSON output.

alien projects capabilities

Inspect and enable project capabilities.

alien projects capabilities [OPTIONS] <COMMAND>
SubcommandDescription
statusShow configured capabilities and customer readiness.
enableEnable or replace one capability's configuration.
FlagDescription
--jsonEmit structured JSON output.

alien projects capabilities status

Show configured capabilities and customer readiness.

Alias: get, describe, show.

alien projects capabilities status [OPTIONS]
FlagDescription
--jsonEmit structured JSON output.

alien projects capabilities enable

Enable or replace one capability's configuration.

alien projects capabilities enable [OPTIONS] <CAPABILITY>
ArgumentDescription
<CAPABILITY>Values: deployments, ai, encryption, buckets, registry, remote-sandbox.
FlagDescription
--jsonEmit structured JSON output.
--model <MODELS>AI model to offer. Repeat for multiple models.
--required-model <REQUIRED_MODELS>AI model that every customer must connect. Also enables the model.
--provider <PROVIDERS>Allowed AI provider. Repeat for multiple providers. Values: aws-bedrock, gcp-vertex, azure-foundry, anthropic, databricks, openai.
--repository <REPOSITORIES>Registry repository allowlist entry. Repeat for multiple repositories.
--pushPermit registry pushes in addition to pulls.
--image <IMAGE>Prebuilt public container image the sandbox starts from. It needs a linux/arm64 variant, which runs on AWS; a linux/amd64 variant also runs it on Azure, and on GCP once Alien has added the sandbox agent to it. GCP gets no copy when the project's default GCP manager is a private manager, or when the variant's layers total more than 512 MiB compressed or leave their sizes out. For a private image, use --src. Omit to keep the saved image, or to use the platform's default images when none is saved.
--src <SRC>Directory with a Dockerfile, built locally with Docker and pushed to the project's private repository on each cloud. The AWS image (linux/arm64) is required. Azure and GCP each get a linux/amd64 image only when the project has a manager there and the base image has a linux/amd64 variant.
--dockerfile <DOCKERFILE>Dockerfile path relative to --src (default: Dockerfile).
--rebuildBuild and push even when --src looks unchanged. The check reads the files Docker sends as the build context, and the images in FROM by name only.
--max-session-lifetime-seconds <MAX_SESSION_LIFETIME_SECONDS>Ceiling on a single sandbox session, in seconds. Defaults to the saved value, else 3600.

Link directory to an Alien project.

alien link [OPTIONS]
FlagDescription
--no-gitDo not attach detected git repository metadata when creating a project.
--jsonEmit structured JSON output.
--forceForce re-linking even if this directory is already linked.

Examples:

alien link
alien link --project my-project
alien --workspace my-workspace link --project my-project --json

Unlink directory from an Alien project.

alien unlink [OPTIONS]
FlagDescription
--forceForce unlink without confirmation.

alien init

Scaffold a new project from a template.

alien init [OPTIONS] [TEMPLATE] [DIRECTORY]
ArgumentDescription
[TEMPLATE]Template to use (omit for interactive selection).
[DIRECTORY]Destination directory. Defaults to alien inside an existing repository and to the current directory when it is empty.
FlagDescription
--forceOverwrite target directory if it exists.

alien upgrade

Upgrade the Alien CLI to the latest stable or canary version.

Alias: update.

alien upgrade [OPTIONS]
FlagDescription
--dry-runCheck what would be installed without changing anything.
--canaryInstall the latest canary build (standalone installations only).
--forceReinstall even when the selected version matches the current version.

On this page