append
Append a local UTF-8 file to an existing single-file HTML or Markdown artifact.
npm exec --yes --package=@artifactshare/cli -- artifactshare append <artifact-id-or-url> ./section.md --json
Usage
npm exec --yes --package=@artifactshare/cli -- artifactshare append <OPTIONS> <artifactIdOrUrl> <path>Options
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost
artifacts
Browse, read, and delete artifacts.
Usage
npm exec --yes --package=@artifactshare/cli -- artifactshare artifacts [COMMANDS] <OPTIONS>Options
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost
artifacts delete
Alias of delete: permanently delete an artifact.
Usage
npm exec --yes --package=@artifactshare/cli -- artifactshare artifacts delete <OPTIONS> <artifactIdOrUrl>Options
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost
artifacts get
Read data.title and data.visibility for the current artifact along with source, or pass --version <version-id> to read an earlier published version. When a read is truncated, pass the same --version with --offset <next_offset> to continue. version_id and format describe the returned source. data.title and data.visibility stay current on historical and continuation reads. Removed versions return version_removed. Static sites return metadata only: no content or format; --include, --version and --offset are unsupported. Updated get explicitly requests metadata. Older CLI releases still receive unsupported-kind for static sites, so open suggests download. For human and agent credentials, get includes retain_versions, version_count and total_size_bytes for versions the caller can list. Static-site history and totals include only published versions with a publication timestamp for every caller, including owners. Publisher credentials do not receive version_count or total_size_bytes.
Usage
npm exec --yes --package=@artifactshare/cli -- artifactshare artifacts get <OPTIONS> <artifactIdOrUrl>Options
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --offset · --include
--version <version> Published version id to read; omit for current source
artifacts list
List artifacts you can access, including project or home results. Pass --q to search body text and titles, or --query to match titles only (filters, paging and empty results: see Failures and recovery). Legacy list rows (without search filters) and human search rows include retain_versions, version_count and total_size_bytes for versions the caller can list. Restricted agent and bot search rows omit all three. Static-site history and totals include only published versions with a publication timestamp for every caller, including owners. Publisher credentials cannot list artifacts. Compare total_size_bytes client-side across pages.
Usage
npm exec --yes --package=@artifactshare/cli -- artifactshare artifacts list <OPTIONS>Options
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --project-id · --home · --q · --query · --owner-user-ids · --date-field · --days · --from · --to · --cursor
artifacts versions
List retained file or static-site versions (version_id, created_at, size_bytes, is_current), newest first, 50 per page. Pass next_cursor as --cursor while has_more. retain_versions is null for unlimited; version_count and total_size_bytes cover versions the caller can list. Static-site history and totals include only published versions with a publication timestamp for every caller, including owners. Static-site bytes include all files per version, including inherited files. Publisher-created static-site versions may have a null creator. Logical bytes count reused files per version, not physical storage or billing. Managed histories can exceed the policy because human/current versions are protected. Publisher credentials do not receive version_count or total_size_bytes and cannot read history; inaccessible artifacts return target_not_found. Restart without --cursor if invalid.
Usage
npm exec --yes --package=@artifactshare/cli -- artifactshare artifacts versions <OPTIONS> <artifactIdOrUrl>Options
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --cursor
--cursor <cursor> Continue with next_cursor from the previous history page; omit to restart.
changelog
Show CLI release notes.
Usage
npm exec --yes --package=@artifactshare/cli -- artifactshare changelog <OPTIONS>Options
--help · --version · --json
comments
Work with comments on an artifact.
Usage
npm exec --yes --package=@artifactshare/cli -- artifactshare comments [COMMANDS] <OPTIONS>Options
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost
comments delete
Delete a comment message.
Usage
npm exec --yes --package=@artifactshare/cli -- artifactshare comments delete <OPTIONS> <artifactIdOrUrl>Options
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --thread-id · --message-id
comments edit
Edit a comment message.
Usage
npm exec --yes --package=@artifactshare/cli -- artifactshare comments edit <OPTIONS> <artifactIdOrUrl>Options
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --message-id · --body
comments list
Read first/latest-three comment windows; use --thread-id and --before for older replies (up to 50). Text anchors include target_path: the page, plus any #/ or #!/ hash route on multi-file sites. PDF page comments add page_number with version_id and version_number of the version they were posted on.
Usage
npm exec --yes --package=@artifactshare/cli -- artifactshare comments list <OPTIONS> <artifactIdOrUrl>Options
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --thread-id · --before · --limit · --around-message-id
comments post
Post a comment or reply. Quote positions stay unchecked until a viewer resolves the exact context.
Usage
npm exec --yes --package=@artifactshare/cli -- artifactshare comments post <OPTIONS> <artifactIdOrUrl>Options
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --body · --reply-to · --quote · --quote-before · --quote-after · --agent
comments reopen
Reopen a resolved comment thread.
Usage
npm exec --yes --package=@artifactshare/cli -- artifactshare comments reopen <OPTIONS> <artifactIdOrUrl>Options
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --thread-id
comments resolve
Resolve a comment thread.
Usage
npm exec --yes --package=@artifactshare/cli -- artifactshare comments resolve <OPTIONS> <artifactIdOrUrl>Options
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --thread-id
config
Inspect and change local CLI settings.
Usage
npm exec --yes --package=@artifactshare/cli -- artifactshare config [COMMANDS] <OPTIONS>Options
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost
config get
Read a setting at user, repository, or effective scope.
npm exec --yes --package=@artifactshare/cli -- artifactshare config get home_audience --scope effective --json
Usage
npm exec --yes --package=@artifactshare/cli -- artifactshare config get <OPTIONS> [<key>]Options
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --scope
config set
Save a setting at user or repository scope.
npm exec --yes --package=@artifactshare/cli -- artifactshare config set home_audience private --scope user --json
Usage
npm exec --yes --package=@artifactshare/cli -- artifactshare config set <OPTIONS> <key> <value>Options
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --scope
config unset
Remove a setting at user or repository scope.
Usage
npm exec --yes --package=@artifactshare/cli -- artifactshare config unset <OPTIONS> <key>Options
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --scope
delete
Permanently delete an artifact.
Usage
npm exec --yes --package=@artifactshare/cli -- artifactshare delete <OPTIONS> <artifactIdOrUrl>Options
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost
doctor
Check token storage, authentication, configuration, and connectivity.
Usage
npm exec --yes --package=@artifactshare/cli -- artifactshare doctor <OPTIONS>Options
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost
download
Download an artifact to a local path.
Usage
npm exec --yes --package=@artifactshare/cli -- artifactshare download <OPTIONS> [<artifactIdOrUrl>]Options
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --project-id · --output · --force
--force Replace existing output; retain backups for recovery
edit
Edit artifact title, visibility, grants, or destination.
Usage
npm exec --yes --package=@artifactshare/cli -- artifactshare edit <OPTIONS> <artifactIdOrUrl>Options
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --title · --visibility · --link-expires-at · --retain-versions · --no-link-expiry · --grant-email · --revoke-email · --project-id · --home
--visibility <visibility> private, workspace, project, or link (project requires placement in a project)
--retain-versions <retain-versions> N or all (owner only). Keeps the latest N versions; publisher-managed artifacts count only publisher versions and keep all versions people added. Older eligible versions are permanently deleted; all clears the limit.
init
Detect the agent, install its skill, and start setup.
npm exec --yes --package=@artifactshare/cli -- artifactshare init --json
Usage
npm exec --yes --package=@artifactshare/cli -- artifactshare init <OPTIONS>Options
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --project-id · --dry-run
login
Authorize the CLI with unrestricted or project-scoped agent access.
npm exec --yes --package=@artifactshare/cli -- artifactshare login --profile agent --preset agent --json
Usage
npm exec --yes --package=@artifactshare/cli -- artifactshare login <OPTIONS>Options
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --preset · --project
logout
Revoke and remove a saved credential.
Usage
npm exec --yes --package=@artifactshare/cli -- artifactshare logout <OPTIONS>Options
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost
move
Move an artifact to a project or home.
Usage
npm exec --yes --package=@artifactshare/cli -- artifactshare move <OPTIONS> <artifactIdOrUrl>Options
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --project-id · --home
open
Read an Artifact Share URL and prepare the CLI skill when needed.
npm exec --yes --package=@artifactshare/cli -- artifactshare open <artifact-id-or-url> --json
Usage
npm exec --yes --package=@artifactshare/cli -- artifactshare open <OPTIONS> <artifactIdOrUrl>Options
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost
preview
Preview a local file with the product viewer look and annotate it.
Usage
npm exec --yes --package=@artifactshare/cli -- artifactshare preview [COMMANDS] <OPTIONS>Options
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost
preview done
Report batch outcomes from stdin JSON, idempotent per generation.
Usage
npm exec --yes --package=@artifactshare/cli -- artifactshare preview done <OPTIONS> [<file>]Options
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --stdin · --session
preview history
Read local review history: each batch with its comments and the document before and after the agent reported.
Usage
npm exec --yes --package=@artifactshare/cli -- artifactshare preview history <OPTIONS> [<file>]Options
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --session · --batch
preview next
Return every undelivered annotation batch to the agent.
Usage
npm exec --yes --package=@artifactshare/cli -- artifactshare preview next <OPTIONS> [<file>]Options
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --wait · --session
preview reply
Append a reply to an annotation thread without changing state.
Usage
npm exec --yes --package=@artifactshare/cli -- artifactshare preview reply <OPTIONS> [<file>]Options
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --thread · --body · --session
preview start
Serve a local .md or .html file for annotation. Invoked as preview <file>.
Usage
npm exec --yes --package=@artifactshare/cli -- artifactshare preview start <OPTIONS> [<file>]Options
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --no-open
preview stop
Stop a live preview session; annotations stay saved.
Usage
npm exec --yes --package=@artifactshare/cli -- artifactshare preview stop <OPTIONS> [<file>]Options
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --session · --force
profiles
Manage named authentication profiles.
Usage
npm exec --yes --package=@artifactshare/cli -- artifactshare profiles [COMMANDS] <OPTIONS>Options
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost
profiles delete
Delete a named profile.
Usage
npm exec --yes --package=@artifactshare/cli -- artifactshare profiles delete <OPTIONS>Options
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost
profiles import-token
Import a CI or manually issued token into a profile.
printf '%s' "$ARTIFACTSHARE_TOKEN" | npm exec --yes --package=@artifactshare/cli -- artifactshare profiles import-token --profile ci --json
Usage
npm exec --yes --package=@artifactshare/cli -- artifactshare profiles import-token <OPTIONS>Options
--help · --version · --json · --base-url · --profile · --allow-plaintext-token-store · --insecure-localhost · --force
profiles list
List saved profiles.
Usage
npm exec --yes --package=@artifactshare/cli -- artifactshare profiles list <OPTIONS>Options
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost
profiles use
Select the active profile.
Usage
npm exec --yes --package=@artifactshare/cli -- artifactshare profiles use <OPTIONS> <name>Options
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost
projects
Manage projects.
Usage
npm exec --yes --package=@artifactshare/cli -- artifactshare projects [COMMANDS] <OPTIONS>Options
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost
projects create
Create a project.
Usage
npm exec --yes --package=@artifactshare/cli -- artifactshare projects create <OPTIONS> <name>Options
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --description · --visibility
projects edit
Edit project details, audience, or archive state.
Usage
npm exec --yes --package=@artifactshare/cli -- artifactshare projects edit <OPTIONS> <id>Options
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --name · --description · --visibility · --add-email · --remove-email · --archive · --unarchive
projects list
List active projects you can post into.
Usage
npm exec --yes --package=@artifactshare/cli -- artifactshare projects list <OPTIONS>Options
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost
resolve
Resolve a URL, ID, or other Artifact Share value.
Usage
npm exec --yes --package=@artifactshare/cli -- artifactshare resolve <OPTIONS> <value>Options
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost
share
Share a local file (HTML, Markdown, PDF, or MP4 video up to 25 MiB; a .pdf must start with %PDF-, a .mp4 needs an ftyp box), folder, or static site. A share --key resend preserves visibility. If --visibility differs after normalization (at home, project compares as private), the command fails with key_visibility_mismatch before creating a version. Use edit <id> --visibility <value> --json to change it, and artifacts get <id> --json to check it for HTML and Markdown artifacts. Profiles logged in with login --preset agent must also pass --expected-version when republishing with --key (see Failures and recovery).
npm exec --yes --package=@artifactshare/cli -- artifactshare share ./report.html --json
Usage
npm exec --yes --package=@artifactshare/cli -- artifactshare share <OPTIONS> <path>Options
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --project-id · --project · --home · --visibility · --link-expires-at · --no-link-expiry · --no-slack-notify · --grant-email · --key · --expected-version
--expected-version <expected-version> Require this current version id when --key updates an existing artifact; use data.version.id, not a number (artifacts get returns data.version_id)
--visibility <visibility> private, workspace, project, or link (default: project for a project destination, otherwise resolved from config); keyed resends reject a different effective value before creating a version (Home project means private). Change with edit --visibility
skills
Manage the installed Artifact Share agent skill.
Usage
npm exec --yes --package=@artifactshare/cli -- artifactshare skills [COMMANDS] <OPTIONS>Options
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost
skills ensure
Ensure the skill is installed for a detected tool.
Usage
npm exec --yes --package=@artifactshare/cli -- artifactshare skills ensure <OPTIONS>Options
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --tool · --scope · --dry-run
skills install
Install the skill for a selected tool.
Usage
npm exec --yes --package=@artifactshare/cli -- artifactshare skills install <OPTIONS>Options
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --tool · --scope · --dry-run · --force
--force Take over bundled paths or intentionally downgrade; preserve user additions
skills list
List installed skill targets.
Usage
npm exec --yes --package=@artifactshare/cli -- artifactshare skills list <OPTIONS>Options
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost
skills remove
Remove an installed skill.
Usage
npm exec --yes --package=@artifactshare/cli -- artifactshare skills remove <OPTIONS>Options
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --tool · --scope · --dry-run
skills update
Update an installed skill.
Usage
npm exec --yes --package=@artifactshare/cli -- artifactshare skills update <OPTIONS>Options
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --tool · --scope · --dry-run · --force
--force Rewrite managed folder files, allowing an explicit downgrade; never take over an unmanaged entry
update
Upload a new version behind an existing share URL. Profiles logged in with login --preset agent must also pass --expected-version (see Failures and recovery). Optional --label adds an immutable 1–80-code-point note, normalized to NFC with outer Unicode spaces trimmed; internal spacing and case stay unchanged. Letters, marks, numbers, punctuation, symbols, spaces, and joined emoji are allowed. Omission creates an unlabeled version. Successful JSON includes the stored label at data.version.label, or null when omitted. data.version.number matches the Viewer version number (v{number}); older servers may omit it. Read version history with artifacts get --include versions. Empty labels, control characters, and invalid, invisible-only, or repeated --label values fail locally with validation_failed before authentication.
npm exec --yes --package=@artifactshare/cli -- artifactshare update <artifact-id-or-url> ./report.html --expected-version <version-id> --json
Usage
npm exec --yes --package=@artifactshare/cli -- artifactshare update <OPTIONS> <artifactIdOrUrl> <path>Options
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --label · --expected-version
--expected-version <expected-version> Only update this current version id; use data.version.id, not a number (artifacts get returns data.version_id); required for agent-preset logins
whoami
Show the active account and workspace.
Usage
npm exec --yes --package=@artifactshare/cli -- artifactshare whoami <OPTIONS>Options
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost