append
Append a local UTF-8 file to an existing single-file HTML or Markdown artifact.
npx --yes @artifactshare/cli append <artifact-id-or-url> ./section.md --json
Usage
npx --yes @artifactshare/cli 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
npx --yes @artifactshare/cli 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
npx --yes @artifactshare/cli 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
npx --yes @artifactshare/cli 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
npx --yes @artifactshare/cli 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
npx --yes @artifactshare/cli 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
npx --yes @artifactshare/cli changelog <OPTIONS>Options
--help · --version · --json
comments
Work with comments on an artifact.
Usage
npx --yes @artifactshare/cli comments [COMMANDS] <OPTIONS>Options
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost
comments delete
Delete a comment message.
Usage
npx --yes @artifactshare/cli 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
npx --yes @artifactshare/cli 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
npx --yes @artifactshare/cli 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
npx --yes @artifactshare/cli 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
npx --yes @artifactshare/cli 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
npx --yes @artifactshare/cli 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
npx --yes @artifactshare/cli 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.
npx --yes @artifactshare/cli config get home_audience --scope effective --json
Usage
npx --yes @artifactshare/cli 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.
npx --yes @artifactshare/cli config set home_audience private --scope user --json
Usage
npx --yes @artifactshare/cli 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
npx --yes @artifactshare/cli 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
npx --yes @artifactshare/cli 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
npx --yes @artifactshare/cli 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
npx --yes @artifactshare/cli 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
npx --yes @artifactshare/cli 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.
npx --yes @artifactshare/cli init --json
Usage
npx --yes @artifactshare/cli 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.
npx --yes @artifactshare/cli login --profile agent --preset agent --json
Usage
npx --yes @artifactshare/cli 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
npx --yes @artifactshare/cli 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
npx --yes @artifactshare/cli 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.
npx --yes @artifactshare/cli open <artifact-id-or-url> --json
Usage
npx --yes @artifactshare/cli 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
npx --yes @artifactshare/cli 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
npx --yes @artifactshare/cli 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
npx --yes @artifactshare/cli 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
npx --yes @artifactshare/cli 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
npx --yes @artifactshare/cli 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
npx --yes @artifactshare/cli 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
npx --yes @artifactshare/cli 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
npx --yes @artifactshare/cli profiles [COMMANDS] <OPTIONS>Options
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost
profiles delete
Delete a named profile.
Usage
npx --yes @artifactshare/cli 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" | npx --yes @artifactshare/cli profiles import-token --profile ci --json
Usage
npx --yes @artifactshare/cli profiles import-token <OPTIONS>Options
--help · --version · --json · --base-url · --profile · --allow-plaintext-token-store · --insecure-localhost · --force
profiles list
List saved profiles.
Usage
npx --yes @artifactshare/cli profiles list <OPTIONS>Options
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost
profiles use
Select the active profile.
Usage
npx --yes @artifactshare/cli profiles use <OPTIONS> <name>Options
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost
projects
Manage projects.
Usage
npx --yes @artifactshare/cli projects [COMMANDS] <OPTIONS>Options
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost
projects create
Create a project.
Usage
npx --yes @artifactshare/cli 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
npx --yes @artifactshare/cli 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
npx --yes @artifactshare/cli 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
npx --yes @artifactshare/cli 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).
npx --yes @artifactshare/cli share ./report.html --json
Usage
npx --yes @artifactshare/cli 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
npx --yes @artifactshare/cli 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
npx --yes @artifactshare/cli 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
npx --yes @artifactshare/cli 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
npx --yes @artifactshare/cli skills list <OPTIONS>Options
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost
skills remove
Remove an installed skill.
Usage
npx --yes @artifactshare/cli 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
npx --yes @artifactshare/cli 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.
npx --yes @artifactshare/cli update <artifact-id-or-url> ./report.html --expected-version <version-id> --json
Usage
npx --yes @artifactshare/cli 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
npx --yes @artifactshare/cli whoami <OPTIONS>Options
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost