Commands
| Command | Purpose |
|---|---|
agent-paste login | Authenticate through browser OAuth. |
agent-paste logout | Revoke and remove the stored credential. |
agent-paste whoami --json | Report authentication, Workspace, actor, and scopes. |
agent-paste publish <path> | Publish a file or folder and return one top-level url. |
agent-paste pull <artifact-id> <path> | Read one stored file. |
agent-paste edit <artifact-id> <path> | Apply literal edits and publish a Revision. |
agent-paste version | Print the CLI version. |
agent-paste upgrade | Update a standalone binary install. |
Publish
agent-paste publish ./report --json
agent-paste publish ./report --artifact-id art_01H... --jsonEvery publish returns url. It opens without login on the Artifact's own capability subdomain. --artifact-id revises the Artifact without changing that URL.
✓ Published "report"
View https://0123456789abcdef0123456789abcdef.agent-paste.sh/
Expires <expiration date>
Update agent-paste publish ./report --artifact-id art_01H...
→ open https://0123456789abcdef0123456789abcdef.agent-paste.sh/Accountless publish
Run whoami --json first. When login is unavailable or explicitly skipped, use publish <path> --ephemeral --json. Return url; return claim_url too when the human wants to keep the upload. Ephemeral HTML uses the same script-enabled top-level behavior.
Files and entrypoints
Directory publish preserves relative paths and skips .git, node_modules, .DS_Store, and .env*. Entrypoint inference is index.html, index.md, README.md, then the only file. Otherwise pass --entrypoint <path>.