Skip to content

Machine

The commands that set up this computer rather than one task, such as the agents' language, the Vault and starting with the system.

8 min read8 pages in CLI reference

These commands look after the computer Astranize runs on rather than a single task. They set the language agents write in, check that a workspace’s services start, keep your secrets in the Vault and make Astranize start when you log in. Most of them are what the app’s Settings screen calls behind the scenes.

They still take --workspace, because the CLI asks for it on every command except daemon, remote and machines. Any valid name works, and the app passes the current workspace. The workspace only changes the result for services-check and for Vault secrets that are not --global.

Command What it is for
settings Print the user settings.
set-language Choose the language agents write in.
migrate-home Print the data folder in use.
services-check Try a workspace’s services once, without a task.
vault Store and manage secrets in the encrypted Vault.
autostart Start Astranize when you log in.

settings prints your user settings from settings.json.

Terminal window
astranize settings --workspace notes
{"type":"settings","language":"en"}

language is en, the default, or pt-BR.

set-language chooses the language agents write in for you: specs, questions, acceptance criteria, notes, summaries and chat messages. Code and commit messages stay in English. The app’s own labels follow the same setting.

Terminal window
astranize set-language pt-BR --workspace notes
{"type":"settings","language":"pt-BR"}
Argument Values
<language> en or pt-BR

Anything else fails with Unsupported language "fr": use en or pt-BR. Other keys already in settings.json, such as worktrees_root, are kept.

migrate-home prints the data folder Astranize is using.

Terminal window
astranize migrate-home --workspace notes
{"type":"home","home":"~/.astranize"}

Like every command, it first moves an old ~/.orchestrator folder to ~/.astranize when you use the default location, as explained in the CLI reference. When the move happens, the worktree links are repaired, and any problem shows as a warning: line on stderr. If the move fails, nothing changes and the command fails with Could not move ~/.orchestrator to ~/.astranize, nothing was changed: <reason>.

services-check tries the services of some repos the way a task would, without needing a task. It runs their setup, start, health check and seed, prints their URLs, then stops them and runs their cleanup. Use it to check the services block of config.yaml before a real task depends on it.

Terminal window
astranize services-check --workspace notes --repos api,web
{"type":"services","urls":{}}

urls maps each service name to its URL, which is its url key or the origin of its health URL. The example repo has no services, so the map is empty.

Flag Type Required Effect
--repos comma list yes Repos whose services to start. Every name must be in config.yaml.

It fails with Missing required option --repos, repos not in workspace: web, or any setup or health failure from the services themselves.

The Vault keeps your secrets, such as test logins and integration tokens, encrypted on this machine. vault stores, lists and removes them, and locks or unlocks the Vault.

Terminal window
astranize vault status --workspace notes
{"type":"vault","exists":false,"keySource":null,"locked":false}

No Vault exists yet. It is created the first time you store a secret.

Secrets never go on the command line, where your shell history would keep them. Instead, the CLI reads one JSON object from stdin. To store a test account:

Terminal window
printf '%s' '{"value":"qa@example.test:correct-horse"}' | astranize vault set --workspace notes --name qa-login --type test_account
{"type":"vault_secrets","secrets":[{"id":"s-3f9a1c0b7d2e","name":"qa-login","type":"test_account","workspace":"notes","createdAt":"…","updatedAt":"…"}]}

The answer lists your secrets as summaries, never with their values. Run vault list to print the same list at any time:

Terminal window
astranize vault list --workspace notes
{"type":"vault_secrets","secrets":[]}

That is the answer from an empty Vault.

By default the Vault’s key lives in the system keystore: the macOS Keychain or the Windows Credential Manager, under the service Astranize Vault. You can wrap the key with a master password instead:

Terminal window
printf '%s' '{"newPassword":"a long master password"}' | astranize vault use-password --workspace notes

A password Vault starts locked every time the daemon starts. Unlock it with vault unlock, sending {"password": …} on stdin. Any other action also accepts password on stdin and unlocks first. To go back to the keystore, run vault use-keystore.

The daemon holds the unlocked key, so every vault action is sent to the daemon, which starts on demand.

Terminal window
astranize vault <action> --workspace notes [flags] < input.json
Action Flags Stdin Answer
status none ignored vault
list none optional {"password"} vault_secrets
set --name, --type, --global {"value"}, optional {"password"} vault_secrets
remove <id> none optional {"password"} vault_secrets
import-session --name, --file, --global optional {"password"} vault_secrets
unlock none {"password"} vault
lock none ignored vault
use-password none {"newPassword"}, optional {"password"} vault
use-keystore none optional {"password"} vault
Flag Type Default Effect
--name string required for set, import-session The secret’s name. Not empty, and no spaces around it. Setting an existing name in the same scope replaces it.
--type string required for set test_account, login_session, integration_token or paired_client_token.
--global switch off Make the secret available to every workspace, not only --workspace. A workspace secret wins over a global one with the same name.
--file path required for import-session A Playwright storage state, a JSON file with a cookies array. It is stored as a login_session, and the file is deleted after a successful import.
--machine machine key none Send the request to a paired machine’s Vault. unlock, lock, use-password and use-keystore are refused there.

In the vault answer, keySource is keystore, password, or null when there is no Vault yet.

When the Vault refuses a request, the answer is a vault_error line, and the exit code is still 0:

{"type":"vault_error","code":"invalid","message":"there is no vault to unlock yet"}
{"type":"vault_error","code":"invalid","message":"master password needs at least 12 characters"}

code is invalid, locked, wrong_password, or forbidden for an action that only works locally sent to another machine. Other messages you may see: vault is locked, wrong master password, this vault is opened by the system keystore, not by a password, no secret with id "s-…" in the vault.

Mistakes in the command itself fail with exit code 1:

Error Cause
vault takes one of: status, list, unlock, lock, set, remove, use-password, use-keystore, import-session Unknown action.
--type must be one of: … A type outside the list.
vault remove takes the secret id No id.
vault set reads {"value": …} from stdin No value on stdin for set.
vault unlock reads {"password": …} from stdin No password on stdin for unlock.
vault: stdin must be one JSON object with value, password or newPassword Stdin is something else.
<file> is not a Playwright storage state The --file of import-session has no cookies array.

autostart makes Astranize start in the background when you log in, so the queue keeps working before you open the app or run a command. It is the “Start with the system” switch in Settings.

Terminal window
astranize autostart status --workspace notes
{"type":"autostart","supported":true,"enabled":false,"mechanism":"launch-agent","location":"~/Library/LaunchAgents/dev.wendel.astranize.daemon.plist"}

On this Mac it is supported and off. Turn it on with enable and off with disable:

Terminal window
astranize autostart enable --workspace notes
astranize autostart disable --workspace notes
Action Effect
status Print whether the entry exists.
enable Write the entry, which runs node <cli> daemon with your ASTRANIZE_HOME and PATH and logs to $ASTRANIZE_HOME/logs/daemon.log. Then print the status.
disable Remove the entry, then print the status.

The entry depends on your system:

Platform mechanism location
macOS launch-agent ~/Library/LaunchAgents/dev.wendel.astranize.daemon.plist, with RunAtLoad. It takes effect at your next login.
Windows scheduled-task The task Astranize Daemon, registered with schtasks.exe from $ASTRANIZE_HOME/autostart-task.xml.
Other none null. enable fails with start with the system is not supported on linux yet.

Any other action fails with autostart takes one of: status, enable, disable.