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.
| Flag | Meaning |
|---|---|
--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). |
--json | Machine-readable output on stdout (details). |
-q, --quiet | Only names or ids for lists, nothing for most other commands (details). |
-v, --verbose | Print 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
| Command | What it does |
|---|---|
space login | Save an API key in a profile. |
space logout | Remove the key from a profile. |
space whoami | Show the user, key and organizations. |
space profiles | List profiles, choose the default. |
space orgs list / show | Organizations, region and quota. |
space machines … | List, create, show, delete, suspend, resume and restore machines. |
space checkpoints … | List, create and delete checkpoints. |
space agents list / export | The 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 setup | Your org’s git repositories and their clone URLs; set git up to use them. |
space git-credential | git’s credential helper for the org’s git host. |
space ssh-keys … | Manage your SSH public keys. |
space send | Send a message to the agent in a machine. |
space messages | See what waits in a machine’s inbox. |
space meta | Show a machine’s metadata. |
space ssh | Open an SSH session to a machine. |
space ssh-config | Generate ~/.ssh/config entries. |
space bugreport | Report a bug or request a feature. |
space completions | Shell completion scripts. |
space version | Version and commit (also space --version). |
Shortcuts
| Shortcut | Same as |
|---|---|
space ls | space 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