Docs

Keys, tokens and instances

alien api-keys

Create, inspect, disable, and revoke API keys.

Alias: apikeys.

alien api-keys [OPTIONS] <COMMAND>
SubcommandDescription
createCreate a scoped project key. The secret is returned only once.
listList project API keys without secrets.
getShow API-key metadata without its secret.
disableStop accepting an API key until it is enabled again.
enableAccept a disabled API key again.
revokeRevoke an API key.
FlagDescription
--jsonEmit stable machine-readable JSON.

Examples:

alien api-keys create --for ai-gateway --description production-backend
alien api-keys create --for encryption-gateway --json
alien api-keys list
alien api-keys get key_abc123
alien api-keys disable key_abc123
alien api-keys enable key_abc123
alien api-keys revoke key_abc123 --yes

alien api-keys create

Create a scoped project key. The secret is returned only once.

alien api-keys create [OPTIONS] --for <PURPOSE>
FlagDescription
--for <PURPOSE>Intended use; selects the corresponding project role. Values: ai-gateway, encryption-gateway, deployments, project-admin (Full project lifecycle and API-key management), remote-bindings, remote-sandbox, read-only.
--description <DESCRIPTION>Human-readable key description.
--jsonEmit stable machine-readable JSON.

alien api-keys list

List project API keys without secrets.

Alias: ls.

alien api-keys list [OPTIONS]
FlagDescription
--jsonEmit stable machine-readable JSON.

alien api-keys get

Show API-key metadata without its secret.

Alias: describe, show.

alien api-keys get [OPTIONS] <ID>
ArgumentDescription
<ID>
FlagDescription
--jsonEmit stable machine-readable JSON.

alien api-keys disable

Stop accepting an API key until it is enabled again.

alien api-keys disable [OPTIONS] <ID>
ArgumentDescription
<ID>
FlagDescription
--yesSkip the confirmation prompt.
--jsonEmit stable machine-readable JSON.

alien api-keys enable

Accept a disabled API key again.

alien api-keys enable [OPTIONS] <ID>
ArgumentDescription
<ID>
FlagDescription
--jsonEmit stable machine-readable JSON.

alien api-keys revoke

Revoke an API key.

Alias: delete.

alien api-keys revoke [OPTIONS] <ID>
ArgumentDescription
<ID>
FlagDescription
--yesConfirm revocation.
--jsonEmit stable machine-readable JSON.

alien tokens

Create and revoke scoped tokens on your manager.

alien tokens [OPTIONS] <COMMAND>
SubcommandDescription
lsList tokens.
revokeRevoke a token.

Examples:

alien tokens ls
alien tokens revoke <token-id>

alien tokens ls

List tokens.

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

alien tokens revoke

Revoke a token.

alien tokens revoke [OPTIONS] <ID>
ArgumentDescription
<ID>Token ID (from alien tokens ls).

alien approve

Trust a teammate's device, or sign a change prepared in the dashboard.

alien approve [OPTIONS] [ID]
ArgumentDescription
[ID]The waiting change to approve. Without it, each waiting change in turn.

alien devices

The devices and CI keys trusted to sign releases.

alien devices [OPTIONS] [COMMAND]
SubcommandDescription
initTurn signing on for the project: this device becomes its first trusted device.
listShow the trusted devices, the recovery key and the fingerprint.
removeStop trusting a device, such as a lost laptop.
add-ciTrust GitHub Actions in a repository to sign releases.
add-keyTrust a new key for any CI system or remote box to sign releases, and print it once.
rotateReplace a CI key, for example after it leaked.
recoverRestore signing with the recovery code when every admin device is lost.
FlagDescription
--jsonPrint JSON (for list).

alien devices init

Turn signing on for the project: this device becomes its first trusted device.

alien devices init [OPTIONS]
FlagDescription
--jsonPrint JSON (for list).

alien devices list

Show the trusted devices, the recovery key and the fingerprint.

alien devices list [OPTIONS]
FlagDescription
--jsonPrint JSON (for list).

alien devices remove

Stop trusting a device, such as a lost laptop.

alien devices remove [OPTIONS] <NAME>
ArgumentDescription
<NAME>The device's name, as alien devices list shows it.
FlagDescription
--revokeThe device was leaked or stolen: keep none of what it signed, so protected deployments refuse every release and config it signed.
--keep-runningThe device was only lost or retired: keep what is current on a channel or running in a protected deployment, and print each one.
--jsonPrint JSON (for list).

alien devices add-ci

Trust GitHub Actions in a repository to sign releases.

alien devices add-ci [OPTIONS] <REPOSITORY>
ArgumentDescription
<REPOSITORY>The repository, as OWNER/REPO.
FlagDescription
--jsonPrint JSON (for list).

alien devices add-key

Trust a new key for any CI system or remote box to sign releases, and print it once.

alien devices add-key [OPTIONS] <NAME>
ArgumentDescription
<NAME>The key's name on the list, such as ci or build-box.
FlagDescription
--out <OUT>Write the key to this file (mode 0600) instead of printing it.
--jsonPrint JSON (for list).

alien devices rotate

Replace a CI key, for example after it leaked.

alien devices rotate [OPTIONS] <NAME>
ArgumentDescription
<NAME>The key's name, as alien devices list shows it.
FlagDescription
--revokeThe key leaked: keep none of what it signed, so protected deployments refuse every release and config it signed. Use this after a leak.
--keep-runningThe key was not leaked: keep what is current on a channel or running in a protected deployment, and print each one.
--out <OUT>For a key made by add-key: write the new key to this file (mode 0600) instead of printing it.
--jsonPrint JSON (for list).

alien devices recover

Restore signing with the recovery code when every admin device is lost.

alien devices recover [OPTIONS]
FlagDescription
--jsonPrint JSON (for list).

alien instances

Manage Private Alien Instances deployed to your cloud.

Alias: managers.

alien instances [OPTIONS] <COMMAND>
SubcommandDescription
createCreate a new private instance and return its setup action.
listList private instances.
statusShow instance status and details.
setupReturn a fresh setup action for a pending or failed instance.
retryRetry private instance setup or a failed instance deployment.
updateUpdate a private instance to the latest release, or to a specific one.
provisionRun a private instance's provisioning again, for example after it failed.
set-domainServe a private instance's API on a workspace domain, or go back to its generated URL.
cancelCancel an incomplete private instance setup.
deleteDelete a private instance.
eventsView instance deployment events.
defaultsManage project default private instances.
FlagDescription
--jsonPrint machine-readable JSON.

alien instances create

Create a new private instance and return its setup action.

alien instances create [OPTIONS] --cloud <CLOUD> --region <REGION>
FlagDescription
--jsonPrint machine-readable JSON.
--name <NAME>Instance display name. Default: alien-private-instance.
--cloud <CLOUD>Cloud where the instance will run. Values: aws, gcp, azure.
--region <REGION>Cloud region for the instance.
--setup <SETUP>Setup method. Defaults by cloud: AWS cloudformation, GCP google-oauth, Azure terraform. Values: cloudformation, google-oauth, terraform.
--network <NETWORK>Network mode. Defaults to create; use default for faster dev/test setup. Values: create, default.
--output-dir <OUTPUT_DIR>Write Terraform setup files to this directory.
--openOpen the returned browser setup URL.

alien instances list

List private instances.

Alias: ls.

alien instances list [OPTIONS]
FlagDescription
--cloud <CLOUD>Filter by cloud. Values: aws, gcp, azure.
--jsonPrint machine-readable JSON.

alien instances status

Show instance status and details.

Alias: get, describe, show.

alien instances status [OPTIONS] <ID>
ArgumentDescription
<ID>Instance ID.
FlagDescription
--jsonPrint machine-readable JSON.
--watchPoll until setup reaches a terminal state.

alien instances setup

Return a fresh setup action for a pending or failed instance.

alien instances setup [OPTIONS] <ID>
ArgumentDescription
<ID>Instance ID.
FlagDescription
--jsonPrint machine-readable JSON.
--output-dir <OUTPUT_DIR>Write Terraform setup files to this directory.
--openOpen the returned browser setup URL.

alien instances retry

Retry private instance setup or a failed instance deployment.

alien instances retry [OPTIONS] <ID>
ArgumentDescription
<ID>Instance ID.
FlagDescription
--jsonPrint machine-readable JSON.
--output-dir <OUTPUT_DIR>Write Terraform setup files to this directory when setup is retried.
--openOpen the returned browser setup URL when setup is retried.

alien instances update

Update a private instance to the latest release, or to a specific one.

alien instances update [OPTIONS] <ID>
ArgumentDescription
<ID>Instance ID.
FlagDescription
--jsonPrint machine-readable JSON.
--release <RELEASE>Instance release ID (rel_...). Omit to use the latest release.
--yesSkip confirmation prompt.

alien instances provision

Run a private instance's provisioning again, for example after it failed.

alien instances provision [OPTIONS] <ID>
ArgumentDescription
<ID>Instance ID.
FlagDescription
--jsonPrint machine-readable JSON.

alien instances set-domain

Serve a private instance's API on a workspace domain, or go back to its generated URL.

alien instances set-domain [OPTIONS] <ID>
ArgumentDescription
<ID>Instance ID.
FlagDescription
--domain <DOMAIN>Domain ID (dom_...), as shown by alien domains ls.
--jsonPrint machine-readable JSON.
--clearRemove the custom domain.

alien instances cancel

Cancel an incomplete private instance setup.

alien instances cancel [OPTIONS] <ID>
ArgumentDescription
<ID>Instance ID.
FlagDescription
--jsonPrint machine-readable JSON.
--yesSkip confirmation prompt.

alien instances delete

Delete a private instance.

alien instances delete [OPTIONS] <ID>
ArgumentDescription
<ID>Instance ID.
FlagDescription
--jsonPrint machine-readable JSON.
--yesSkip confirmation prompt.

alien instances events

View instance deployment events.

alien instances events [OPTIONS] <ID>
ArgumentDescription
<ID>Instance ID.
FlagDescription
-f, --followFollow events.
--jsonPrint machine-readable JSON.

alien instances defaults

Manage project default private instances.

alien instances defaults [OPTIONS] <COMMAND>
SubcommandDescription
showShow default private instances for a project.
setSet the default private instance for a cloud.
clearClear default private instances.
FlagDescription
--jsonPrint machine-readable JSON.

alien instances defaults show

Show default private instances for a project.

alien instances defaults show [OPTIONS]
FlagDescription
--jsonPrint machine-readable JSON.

alien instances defaults set

Set the default private instance for a cloud.

alien instances defaults set [OPTIONS] --cloud <CLOUD> --manager <MANAGER>
FlagDescription
--jsonPrint machine-readable JSON.
--cloud <CLOUD>Cloud to configure. Values: aws, gcp, azure.
--manager <MANAGER>Instance ID.

alien instances defaults clear

Clear default private instances.

alien instances defaults clear [OPTIONS] --cloud <CLOUD>
FlagDescription
--jsonPrint machine-readable JSON.
--cloud <CLOUD>Cloud to clear, or all. Values: aws, gcp, azure, all.

alien domains

Manage workspace domains.

alien domains [OPTIONS] <COMMAND>
SubcommandDescription
addRegister a domain and show its required DNS records.
lsList workspace domains.
getShow a domain's verification state.
refreshCheck the domain's DNS records again.
rmRemove a workspace domain.
FlagDescription
--jsonPrint machine-readable JSON.

alien domains add

Register a domain and show its required DNS records.

alien domains add [OPTIONS] <DOMAIN>
ArgumentDescription
<DOMAIN>
FlagDescription
--dns <DNS>Who manages the DNS zone. Values: alien, customer. Default: alien.
--jsonPrint machine-readable JSON.

alien domains ls

List workspace domains.

Alias: list.

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

alien domains get

Show a domain's verification state.

alien domains get [OPTIONS] <ID>
ArgumentDescription
<ID>
FlagDescription
--jsonPrint machine-readable JSON.

alien domains refresh

Check the domain's DNS records again.

alien domains refresh [OPTIONS] <ID>
ArgumentDescription
<ID>
FlagDescription
--jsonPrint machine-readable JSON.

alien domains rm

Remove a workspace domain.

Alias: remove.

alien domains rm [OPTIONS] <ID>
ArgumentDescription
<ID>
FlagDescription
--jsonPrint machine-readable JSON.

alien serve

Run a manager on this machine.

alien serve [OPTIONS]
FlagDescription
-c, --config <CONFIG>Path to TOML configuration file (default: alien-manager.toml in CWD).
--initWrite a commented alien-manager.toml to the current directory (or --config) and exit.
--port <PORT>Override the HTTP server port.
--host <HOST>Override the HTTP server bind address.

On this page