append
ローカルの UTF-8 ファイルを既存の単一 HTML / Markdown の末尾へ追記します。
npm exec --yes --package=@artifactshare/cli -- artifactshare append <artifact-id-or-url> ./section.md --json
構文
npm exec --yes --package=@artifactshare/cli -- artifactshare append <OPTIONS> <artifactIdOrUrl> <path>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost
artifacts
成果物の一覧表示、読み取り、削除を行います。
構文
npm exec --yes --package=@artifactshare/cli -- artifactshare artifacts [COMMANDS] <OPTIONS>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost
artifacts delete
delete の別名です。成果物を完全に削除します。
構文
npm exec --yes --package=@artifactshare/cli -- artifactshare artifacts delete <OPTIONS> <artifactIdOrUrl>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost
artifacts get
現在の表示タイトル(data.title)、共有範囲(data.visibility)、本文を読みます。過去の版や続きの読み取りでもタイトルと共有範囲は現在の情報です。過去の公開済みの版を読むときは --version <version-id> を指定します。読み取りが途中で切れたときは、同じ --version と --offset <next_offset> を指定して続きを読みます。version_id と format は返した本文の値です。削除済みの版は version_removed を返します。静的サイトは本文なしのメタデータを返し、--include、--version、--offset は使えません。新しい get はメタデータ応答を明示的に要求します。旧 CLI には従来どおり unsupported-kind を返すため、open は引き続きダウンロードを案内します。人または agent の資格情報での get は retain_versions、version_count、total_size_bytes も返します。版数と合計サイズの対象は、呼び出し元が履歴で閲覧できる版です。静的サイトでは所有者を含むすべての呼び出し元に対し、公開日時のある公開済みの版だけを履歴表示・集計の対象にします。publisher の資格情報には version_count と total_size_bytes を返しません。
構文
npm exec --yes --package=@artifactshare/cli -- artifactshare artifacts get <OPTIONS> <artifactIdOrUrl>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --offset · --include
--version <version> 読み取る公開済みバージョンの ID。省略すると現在の本文を返します。
artifacts list
project または home を含む、アクセスできる成果物を一覧表示します。--q で本文とタイトル、--query でタイトルだけを検索します(絞り込み、ページ送り、0 件のときは「失敗と復旧」を参照)。検索フィルターを使わない従来の一覧と、人の通常の資格情報による検索では、各行の retain_versions、version_count、total_size_bytes で保持設定・版数・論理バイト数を確認できます。制限付き agent や bot の検索結果には、この3項目を含めません。版数と合計サイズの対象は、呼び出し元が履歴で閲覧できる版です。静的サイトでは所有者を含むすべての呼び出し元に対し、公開日時のある公開済みの版だけを履歴表示・集計の対象にします。publisher の資格情報では一覧を取得できません。ページを取得して手元で total_size_bytes を比較します。
構文
npm exec --yes --package=@artifactshare/cli -- artifactshare artifacts list <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
ファイルと静的サイトの保存済みバージョンを新しい順に50件ずつ表示します。各行は version_id、created_at、size_bytes、is_current を含みます。has_more が true なら next_cursor を --cursor に渡します。retain_versions の null は無制限です。version_count と total_size_bytes は、呼び出し元が履歴で閲覧できる版を集計します。静的サイトでは所有者を含むすべての呼び出し元に対し、公開日時のある公開済みの版だけを履歴表示・集計の対象にします。各版のサイズには継承ファイルも含めます。再利用ファイルは版ごとに数える論理バイト数で、実際の保存容量や請求額ではありません。publisher が作成した静的サイトの版では creator が null の場合があります。管理対象の成果物では人が作成した版と現在の版を保護するため、保持設定を超える場合があります。publisher の資格情報では履歴を読めず、version_count と total_size_bytes も取得できません。閲覧不可は target_not_found、不正なカーソルは --cursor を外して再取得します。
構文
npm exec --yes --package=@artifactshare/cli -- artifactshare artifacts versions <OPTIONS> <artifactIdOrUrl>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --cursor
--cursor <cursor> 前の履歴ページの next_cursor を指定します。最初から取得する場合は省略します。
changelog
CLI のリリースノートを表示します。
構文
npm exec --yes --package=@artifactshare/cli -- artifactshare changelog <OPTIONS>オプション
--help · --version · --json
comments
成果物のコメントを扱います。
構文
npm exec --yes --package=@artifactshare/cli -- artifactshare comments [COMMANDS] <OPTIONS>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost
comments delete
コメントメッセージを削除します。
構文
npm exec --yes --package=@artifactshare/cli -- artifactshare comments delete <OPTIONS> <artifactIdOrUrl>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --thread-id · --message-id
comments edit
コメントメッセージを編集します。
構文
npm exec --yes --package=@artifactshare/cli -- artifactshare comments edit <OPTIONS> <artifactIdOrUrl>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --message-id · --body
comments list
各スレッドの最初のコメントと最新3件の返信を表示します。以前の返信は --thread-id と --before で最大50件ずつ取得します。本文範囲のアンカーは target_path にページの場所を返します。複数ファイルのサイトでは #/ または #!/ で始まるハッシュルートも含みます。PDF のページへのコメントは page_number と、投稿した版の version_id・version_number を返します。
構文
npm exec --yes --package=@artifactshare/cli -- artifactshare comments list <OPTIONS> <artifactIdOrUrl>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --thread-id · --before · --limit · --around-message-id
comments post
コメントや返信を投稿します。引用位置は投稿時には確認せず、その版を共有ページで開いたときに完全一致で確認します。
構文
npm exec --yes --package=@artifactshare/cli -- artifactshare comments post <OPTIONS> <artifactIdOrUrl>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --body · --reply-to · --quote · --quote-before · --quote-after · --agent
comments reopen
解決済みのコメントスレッドを再開します。
構文
npm exec --yes --package=@artifactshare/cli -- artifactshare comments reopen <OPTIONS> <artifactIdOrUrl>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --thread-id
comments resolve
コメントスレッドを解決済みにします。
構文
npm exec --yes --package=@artifactshare/cli -- artifactshare comments resolve <OPTIONS> <artifactIdOrUrl>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --thread-id
config
ローカル CLI 設定を確認、変更します。
構文
npm exec --yes --package=@artifactshare/cli -- artifactshare config [COMMANDS] <OPTIONS>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost
config get
user、repository、effective のスコープで設定を読み取ります。
npm exec --yes --package=@artifactshare/cli -- artifactshare config get home_audience --scope effective --json
構文
npm exec --yes --package=@artifactshare/cli -- artifactshare config get <OPTIONS> [<key>]オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --scope
config set
user または repository のスコープに設定を保存します。
npm exec --yes --package=@artifactshare/cli -- artifactshare config set home_audience private --scope user --json
構文
npm exec --yes --package=@artifactshare/cli -- artifactshare config set <OPTIONS> <key> <value>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --scope
config unset
スコープに保存した設定を削除します。
構文
npm exec --yes --package=@artifactshare/cli -- artifactshare config unset <OPTIONS> <key>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --scope
delete
成果物を完全に削除します。
構文
npm exec --yes --package=@artifactshare/cli -- artifactshare delete <OPTIONS> <artifactIdOrUrl>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost
doctor
トークンの保存先、認証、設定、接続状態を確認します。
構文
npm exec --yes --package=@artifactshare/cli -- artifactshare doctor <OPTIONS>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost
download
成果物をローカルパスへダウンロードします。
構文
npm exec --yes --package=@artifactshare/cli -- artifactshare download <OPTIONS> [<artifactIdOrUrl>]オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --project-id · --output · --force
--force 既存の出力を置換し、復旧用のバックアップを保持します。
edit
成果物のタイトル、visibility、共有先、投稿先を編集します。
構文
npm exec --yes --package=@artifactshare/cli -- artifactshare edit <OPTIONS> <artifactIdOrUrl>オプション
--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 または all(所有者のみ)。最新の N 版を残します。publisher の資格情報で作成したファイル、または publisher のクライアントに割り当てられたファイルでは、publisher の資格情報で追加した版だけを数え、人が追加した版はすべて残します。対象となる古い版の削除は取り消せません。all で制限を外します。
init
agent を検出し、skill をインストールして初期設定を始めます。
npm exec --yes --package=@artifactshare/cli -- artifactshare init --json
構文
npm exec --yes --package=@artifactshare/cli -- artifactshare init <OPTIONS>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --project-id · --dry-run
login
通常権限または1プロジェクトに制限した agent 権限で CLI を認証します。
npm exec --yes --package=@artifactshare/cli -- artifactshare login --profile agent --preset agent --json
構文
npm exec --yes --package=@artifactshare/cli -- artifactshare login <OPTIONS>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --preset · --project
logout
保存済みの認証情報を失効させて削除します。
構文
npm exec --yes --package=@artifactshare/cli -- artifactshare logout <OPTIONS>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost
move
成果物を project または home へ移動します。
構文
npm exec --yes --package=@artifactshare/cli -- artifactshare move <OPTIONS> <artifactIdOrUrl>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --project-id · --home
open
Artifact Share URL を読み取り、必要なら CLI skill を準備します。
npm exec --yes --package=@artifactshare/cli -- artifactshare open <artifact-id-or-url> --json
構文
npm exec --yes --package=@artifactshare/cli -- artifactshare open <OPTIONS> <artifactIdOrUrl>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost
preview
ローカルファイルを共有ページと同じ見た目で表示し、コメントできます。
構文
npm exec --yes --package=@artifactshare/cli -- artifactshare preview [COMMANDS] <OPTIONS>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost
preview done
標準入力の JSON で結果を一括報告します(世代単位で冪等)。
構文
npm exec --yes --package=@artifactshare/cli -- artifactshare preview done <OPTIONS> [<file>]オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --stdin · --session
preview history
送信したバッチごとに、コメントと、エージェントが報告する前後の文書をローカルの履歴から読みます。
構文
npm exec --yes --package=@artifactshare/cli -- artifactshare preview history <OPTIONS> [<file>]オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --session · --batch
preview next
未処理のコメントバッチをエージェントへ返します。
構文
npm exec --yes --package=@artifactshare/cli -- artifactshare preview next <OPTIONS> [<file>]オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --wait · --session
preview reply
スレッドへ返信を追記します。状態は変わりません。
構文
npm exec --yes --package=@artifactshare/cli -- artifactshare preview reply <OPTIONS> [<file>]オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --thread · --body · --session
preview start
ローカルの .md / .html を配信します。preview <file> として起動します。
構文
npm exec --yes --package=@artifactshare/cli -- artifactshare preview start <OPTIONS> [<file>]オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --no-open
preview stop
プレビューを終了します。コメントは保存されたままです。
構文
npm exec --yes --package=@artifactshare/cli -- artifactshare preview stop <OPTIONS> [<file>]オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --session · --force
profiles
名前付きの認証 profile を管理します。
構文
npm exec --yes --package=@artifactshare/cli -- artifactshare profiles [COMMANDS] <OPTIONS>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost
profiles delete
名前付き profile を削除します。
構文
npm exec --yes --package=@artifactshare/cli -- artifactshare profiles delete <OPTIONS>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost
profiles import-token
CI または手動発行 token を profile に取り込みます。
printf '%s' "$ARTIFACTSHARE_TOKEN" | npm exec --yes --package=@artifactshare/cli -- artifactshare profiles import-token --profile ci --json
構文
npm exec --yes --package=@artifactshare/cli -- artifactshare profiles import-token <OPTIONS>オプション
--help · --version · --json · --base-url · --profile · --allow-plaintext-token-store · --insecure-localhost · --force
profiles list
保存済み profile を一覧表示します。
構文
npm exec --yes --package=@artifactshare/cli -- artifactshare profiles list <OPTIONS>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost
profiles use
使用する active profile を選択します。
構文
npm exec --yes --package=@artifactshare/cli -- artifactshare profiles use <OPTIONS> <name>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost
projects
project を管理します。
構文
npm exec --yes --package=@artifactshare/cli -- artifactshare projects [COMMANDS] <OPTIONS>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost
projects create
project を作成します。
構文
npm exec --yes --package=@artifactshare/cli -- artifactshare projects create <OPTIONS> <name>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --description · --visibility
projects edit
project の詳細、audience、アーカイブ状態を編集します。
構文
npm exec --yes --package=@artifactshare/cli -- artifactshare projects edit <OPTIONS> <id>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --name · --description · --visibility · --add-email · --remove-email · --archive · --unarchive
projects list
現在投稿できる有効なプロジェクトを一覧表示します。
構文
npm exec --yes --package=@artifactshare/cli -- artifactshare projects list <OPTIONS>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost
resolve
URL、ID、その他の Artifact Share の値を解決します。
構文
npm exec --yes --package=@artifactshare/cli -- artifactshare resolve <OPTIONS> <value>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost
share
ローカルのファイル(HTML、Markdown、25 MiB までの PDF と MP4 動画。.pdf は %PDF- で始まり、.mp4 は ftyp box を持つ必要があります)、フォルダ、静的サイトを共有します。share --key は共有範囲を変更しません。Home の project は private として比較します。正規化後の --visibility が現在の値と異なると、新しい版を作らず key_visibility_mismatch で失敗します。変更には edit <id> --visibility <value> --json、HTML・Markdown の共有範囲の確認には artifacts get <id> --json を使います。login --preset agent でログインしたプロファイルでは、--key で再公開する際に --expected-version の指定も必要です(「失敗と復旧」を参照)。
npm exec --yes --package=@artifactshare/cli -- artifactshare share ./report.html --json
構文
npm exec --yes --package=@artifactshare/cli -- artifactshare share <OPTIONS> <path>オプション
--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> --key で更新する際の現在のバージョン ID。番号ではなく、前回の share/update の data.version.id を指定します。artifacts get では 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
インストール済みの Artifact Share agent skill を管理します。
構文
npm exec --yes --package=@artifactshare/cli -- artifactshare skills [COMMANDS] <OPTIONS>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost
skills ensure
検出した tool に skill があることを確認します。
構文
npm exec --yes --package=@artifactshare/cli -- artifactshare skills ensure <OPTIONS>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --tool · --scope · --dry-run
skills install
選択した tool に skill をインストールします。
構文
npm exec --yes --package=@artifactshare/cli -- artifactshare skills install <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
skill がインストールされた tool を一覧表示します。
構文
npm exec --yes --package=@artifactshare/cli -- artifactshare skills list <OPTIONS>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost
skills remove
tool からインストール済み skill を削除します。
構文
npm exec --yes --package=@artifactshare/cli -- artifactshare skills remove <OPTIONS>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --tool · --scope · --dry-run
skills update
インストール済み skill を更新します。
構文
npm exec --yes --package=@artifactshare/cli -- artifactshare skills update <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
既存の共有リンクのまま、新しい版をアップロードします。login --preset agent でログインしたプロファイルでは --expected-version の指定も必要です(「失敗と復旧」を参照)。任意の --label で変更内容のメモを付けられます。NFC 正規化と前後の Unicode 空白の除去後、1〜80 コードポイントが必要です。内部の空白と大文字小文字は保持します。文字・結合文字・数字・句読点・記号・空白・結合絵文字を許可します。省略時はラベルなしの版を作成し、作成後のラベルは変更できません。成功時の JSON は data.version.label に保存されたラベルを返し、省略時は null を返します。data.version.number は Viewer の版番号(v{number})と一致します。古いサーバーではこのフィールドが省略される場合があります。artifacts get --include versions で履歴を取得できます。--label の値が空、制御文字を含む、不正、不可視文字のみ、または指定が重複している場合は、認証前にローカルで validation_failed エラーになります。
npm exec --yes --package=@artifactshare/cli -- artifactshare update <artifact-id-or-url> ./report.html --expected-version <version-id> --json
構文
npm exec --yes --package=@artifactshare/cli -- artifactshare update <OPTIONS> <artifactIdOrUrl> <path>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --label · --expected-version
--expected-version <expected-version> 更新対象の現在のバージョン ID。番号ではなく、前回の share/update の data.version.id を指定します。artifacts get では data.version_id として返されます。agent プリセットでのログインでは必須です。
whoami
active account と workspace を表示します。
構文
npm exec --yes --package=@artifactshare/cli -- artifactshare whoami <OPTIONS>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost