The command line
View as markdown23a publishes a folder from where it was built, finds artifacts, opens them, reads back their files and their comments and works with complete narrated reviews, in words a person reads or, with --json, in one answer a program parses. Other management is one 23a open --manage away, on the artifact's page. 23artifacts is the same command under its longer name.
Install
With Node 20 or later:
npm install -g 23artifacts
or run it once without installing anything: npx 23artifacts publish ./dist.
With Homebrew:
brew trust 23made/tap
brew install 23made/tap/23artifacts
Homebrew 7 loads formulae only from taps you trust; before version 7 there is no brew trust, and the second line works alone. It runs on macOS and Linux; on Windows the npm package runs, without the promise.
Sign in
$ 23a login
Opening your browser to sign in to 23artifacts.
If it does not open, go to this address:
https://23artifacts.com/api/auth/mcp/authorize?response_type=code&client_id=…
Waiting for the browser. Press Ctrl-C to stop.
Signed in as Martin May (@martin-may).
The browser asks you to let 23a on <this machine> act for you; say yes and the tab tells you it can be closed. On a machine with no browser — a server over SSH — 23a login --no-browser prints the address to open elsewhere; the browser there ends on an address that will not load, which you paste back into the terminal. The sign-in is kept in the system's keychain or secret store, and ends after a week unused. 23a whoami says who is signed in and in which workspaces; 23a logout signs this machine out.
Publish
$ 23a publish ./dist
Publishing dist/ — 14 files, 3.2 MB — as a new artifact named "Launch plan".
Version 1 is live.
Who can open it: only you.
https://k3x9p2qa.23a.so
A folder or a single file; a markdown file is published as a page. The same folder published again from the same place becomes the next version of the same artifact, and publishing what is already live makes nothing: Nothing changed: version 2 is already live. Large files are uploaded on their own, with a line that counts up. When an artifact of the same name exists and nothing says which one this is, you are asked.
| Option | What it does |
|---|---|
--to <artifact> |
This artifact's next version, or a new one with that key |
--new |
A separate artifact, whatever matches |
--name <name> |
The artifact's name |
--staged |
Saved, not live |
--dry-run |
Every check, nothing written |
--note <text> |
How and why this version was made |
--theme <theme> |
The look a page or a markdown file is drawn in |
An artifact is named the way every surface names one: its address, its identifier or its key.
Settings beside the files
Keep settings beside the files in a root artifact.json, for example:
{"name":"Launch plan","description":"The release plan","tags":["launch"]}
For a new artifact, its configured name comes before the HTML title or folder name; an explicit --name must agree with the file. The settings file is validated by the server and kept out of the published version. On an existing artifact, changed name, description and tags need the credential's manage scope. The file can also set access for a new artifact; changing existing access is a separate act on its page or through the access tools. Every supported setting and its permissions are in Publishing.
--dry-run uses the API's validate: true check. Its JSON keeps the server's field names and instructions; nothing is written. A content match can still include settings the file would change. On an actual settings-only save, the CLI says Content unchanged and reports the settings that changed.
Find, open, read comments
| Command | What it does |
|---|---|
23a list [question] |
The artifacts a question finds, most recently touched first, in the words the search field takes (kind:deck tag:q4) |
23a open [artifact] |
Its address in the browser; --manage opens its page in 23artifacts. With nothing named, the artifact this folder was published to |
23a comments <artifact> |
The open threads on its live version; --all adds the resolved |
Every command takes --workspace <handle>, --json and --help.
Read files back
get and download require CLI 0.4.0 or later, and a sign-in or a credential with read.
| Command | What it does |
|---|---|
23a get <artifact> [path] |
One file of a version — its entry page unless a path is named — to standard output, or to -o <file> |
23a download <artifact> |
Every file of a version, by its path, into <identifier>-v<version>/ or -o <folder> |
23a get k3x9p2qa index.html -o index.html
23a get k3x9p2qa@12 styles/site.css > site.css
23a download k3x9p2qa -o launch-plan
Both read the live version unless @<number> names another. Each file's exact bytes are streamed under the command's own sign-in, private artifacts included, and kept only once they match the size and SHA-256 the version records: a mismatch or a broken connection keeps nothing and ends as unreachable (exit codes below). download replaces nothing: it writes only into a new or empty folder, and refuses before anything is read a version holding a path that would land outside the folder, a .git folder, or two paths a case-insensitive disk would keep as one file; get reads such a file on its own. If one file fails, the others still in flight stop and keep nothing. With --json, the answer is the version's download manifest, each written file given written; get --json needs -o, since standard output carries the JSON.
Narrated reviews
The recording commands require CLI 0.3.0 or later. Read the whole review before drafting work. Marks identify supporting moments; one thought can have several marks, a request can have none, and a silent mark implies no task.
23a recording list launch-plan --workspace northwind-studio
23a recording show launch-plan <recording-id> --complete --json >review.json 2>review.log
23a recording reply launch-plan <recording-id> --body "Which audience should the invitation address?"
23a recording work launch-plan <recording-id> --title "Clarify the invitation while preserving the project detail" --from 4.2 --to 18.7 --mark <mark-id> --unclaimed
list collects recordings across all versions. show collects every page and complete item before returning the full timed transcript, marks and original-version playback link; complete retrieval is the default, and --complete states it explicitly. A failed page, missing item or failed integrity check produces a failure rather than successful partial JSON. Recordings remain readable when words are pending, failed or absent.
reply requires --body. work requires --title and accepts --description. Both accept paired --from and --to in finite, nonnegative seconds, plus repeatable --mark IDs from show. Without selectors, the source is the whole review. The server checks the original recording, interval, marks and current permissions.
Work is ready and unclaimed by default, including with explicit --unclaimed; creating it starts no agent. Use --claim only when authorized to take it on. Its default audience is the recording's. Sharing approved task text with artifact collaborators requires both --audience artifact and --confirm-audience; the audio, transcript, marks and discussion retain their access, and a source reference grants none. Replies and work creation need the credential's manage scope; reads need read. Every recording command takes --workspace, --json and --help.
For a program
What a program parses goes to standard output and what a person reads goes to standard error, so --json changes only what a program sees. With --json the command prints one JSON value, the server's answer, and never asks: a question it would have asked is a refusal naming the options that answer it (Pass --to k3x9p2qa to publish its next version, or --new for a separate artifact.).
Capture the streams separately and check the command's exit code before parsing its answer:
if 23a publish ./dist --to launch-plan \
--json >save.json 2>save.log; then
cat save.json
else
status=$?
cat save.log >&2
exit "$status"
fi
save.json holds the complete JSON answer; save.log holds progress and explanations. Combining streams with 2>&1 mixes those explanations into the JSON, even when publishing succeeded.
| Exit code | kind |
Meaning |
|---|---|---|
| 0 | Done, a publish that changed nothing included | |
| 1 | refused |
The server refused, in its own words |
| 2 | usage |
The command is wrong: an unknown command or option, a path naming nothing on disk, a choice it could not ask |
| 3 | signed_out |
No sign-in and no credential, or a sign-in that has ended |
| 4 | unreachable |
23artifacts could not be reached; nothing is half-made |
A failure under --json prints {"error", "kind", "status"}.
From a job
A scheduled job or a CI run uses a credential instead of a sign-in. Mint one on your account's credentials page, keep it in the job's secrets, and set it as TTARTIFACTS_TOKEN:
export TTARTIFACTS_TOKEN="<the credential, from the job's secrets>"
npx 23artifacts publish ./dist --to launch-plan --json
The credential is never stored, wins over a sign-in, and carries exactly its scopes and its workspace: a publish-only credential publishes and lists, and a command that needs read or manage is refused saying which. Naming --to keeps a job from ever being asked which artifact it means.
TTARTIFACTS_TOKEN is the exact environment variable name, including the TT prefix. Set TTARTIFACTS_SERVER to use another control plane; it defaults to https://23artifacts.com. Keep the credential in the job's secrets and the JSON answer separate from its progress log, as in For a program.