Skip to content
Command reference

Command reference

space [global flags] <command> [arguments]

space --help and space <command> --help show the same information in the terminal.

Global flags

These work with every command.

FlagMeaning
--profile <name>Use this profile from the config file (AGENTSPACES_PROFILE).
--url <url>Portal URL, overriding the profile (AGENTSPACES_URL).
-o, --org <slug>Organization to act in, overriding the profile (AGENTSPACES_ORG).
--jsonMachine-readable output on stdout (details).
-q, --quietOnly names or ids for lists, nothing for most other commands (details).
-v, --verbosePrint each request’s method, URL and status on stderr (never the key).

Global flags can go anywhere on the command line: space machines list -o acme works. With space ssh, put -- after the machine name to pass flags like -v or -o to ssh instead (details).

See Configuration for how flags, environment variables and profiles combine.

Arguments

  • {machine}: a machine’s name or its id.
  • {checkpoint}, CHECKPOINT: a checkpoint name.

Commands

CommandWhat it does
space loginSave an API key in a profile.
space logoutRemove the key from a profile.
space whoamiShow the user, key and organizations.
space profilesList profiles, choose the default.
space orgs list / showOrganizations, region and quota.
space machines …List, create, show, delete, suspend, resume and restore machines.
space checkpoints …List, create and delete checkpoints.
space agents list / exportThe project’s agents; download what one sees.
space artifacts …Share files by URL: list, upload, delete.
space shares …Pages for org members on artifacts: list, create, retitle, delete.
space portals …Web portals and their custom domains: list, add, check, primary, remove.
space repos / repos setupYour org’s git repositories and their clone URLs; set git up to use them.
space git-credentialgit’s credential helper for the org’s git host.
space ssh-keys …Manage your SSH public keys.
space sendSend a message to the agent in a machine.
space messagesSee what waits in a machine’s inbox.
space metaShow a machine’s metadata.
space sshOpen an SSH session to a machine.
space ssh-configGenerate ~/.ssh/config entries.
space bugreportReport a bug or request a feature.
space completionsShell completion scripts.
space versionVersion and commit (also space --version).

Shortcuts

ShortcutSame as
space lsspace machines list
space machine …space machines …
space agent …space agents …
space cp …space checkpoints …
space art …space artifacts …
… ls… list, in every group (space cp ls)
… rm… delete or … remove, in every group (space machine rm dev)
-w--wait
-y--yes
Last updated on