artifacts
space art is the same as space artifacts. Artifacts are files shared by URL: reports, build
outputs, screenshots. They belong to a project (the one in use), are stored encrypted, and are
reachable only through the URL handed out when they are uploaded. Agents in a machine use
space-env artifact for the same thing.
Anyone with an artifact’s URL can download it until the URL’s lease or the artifact expires; there is no way to get a new URL for an existing artifact. HTML, SVG and XML always download as attachments, never open in the browser.
space artifacts list
space artifacts list [--prefix <prefix>]Name, size, content type, last upload and expiry of every artifact in the project,
or only of those whose names start with --prefix (matched literally, e.g. runs/42/).
No URLs.
space artifacts put
space artifacts put <file> [--name <name>] [--ttl <duration>] [--lease <duration>] [--type <content type>]Uploads the file (at most 1 GiB) and prints its URL. An artifact of the same name is
replaced: its existing URLs serve the new content. --ttl (e.g. 30d, 12h) is how long
the artifact lives, by default and at most your plan’s retention; --lease (default 7d)
is how long the printed URL works, never past the artifact. Names are segments of
A-Z a-z 0-9 . _ - separated by / (runs/42/report.html), none empty or starting with
. or -, at most 200 characters in all. A browser saves a download under the last
segment (report.html).
space artifacts delete
space artifacts delete <name> [-y|--yes]Deletes the artifact; its URLs stop working at once. Asks for confirmation on a terminal
unless --yes.