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 an artifact and its metadata.
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
artifacts list
List artifacts you can access, including project or home results.
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 · --query · --cursor
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
List comment threads and messages.
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
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
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 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 projects available to you.
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, folder, or static site. 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
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
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
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
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