Artifact Share

Artifact Share CLI リファレンス

CLI バージョン: @artifactshare/cli 0.23.0 · 生成日: 2026-11-17

ターミナルからファイルを共有、更新、読み取り、整理するための公開リファレンスです。

対象には成果物 ID、共有 URL、artifactshareusercontent.com のバージョン付き実行 URL(認証済みは a-、リンク閲覧は l-)を指定できます。旧配信 URL は ID の解決だけに使います。ファイル、フォルダ、静的サイトは share、同じ URL の差し替えは update、読み取りは open または artifacts get、保存は download、レビューは comments、整理は projects、アカウントと設定は profiles と config、agent の準備は skills を使います。REST API の POST /api/shareables/:id/versions?artifact_kind=static_site では、base_version=v1 と繰り返しの delete_path(例: delete_path=data/old.parquet)を指定できます。送信したファイルを差し替え、それ以外のファイルは現在の版から引き継ぎます。基準は現在の公開バージョンに限り、古い場合は 409 version_conflict を返します。base_version は、エージェントの更新で必要な expected_version の代わりにもなります。expected_version も指定する場合は、base_version と同じ値にしてください。削除には基準の指定が必要で、同じパスの送信と削除はできません。削除だけの更新でも index.html または index.md を残してください。バージョンのサイズはファイル一覧の合計、保存容量は重複を除いた実体の合計です。CLI update に継承用のオプションはありません。ブラウザの共有ページは URL のフラグメント(#)を HTML・Markdown・静的サイトに渡し、フレーム内の変更を URL に反映します。「リンクをコピー」にも含まれるため、絞り込み状態や見出しを共有できます。静的サイトでは最初に開くページだけが共有 URL のフラグメントを更新し、サブページでは変更しません。CLI のローカルプレビューは対象外です。

以下のコマンド一覧は、公開 CLI の help から生成しています。構文と使えるオプションも、生成した snapshot から表示しています。

公開コマンド一覧

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

--json、pipe、その他の非対話実行では、成功を schema_version: 2、ok: true、command、data の共通 envelope として stdout に出します。失敗は schema_version: 2、ok: false、command、error として stderr に出します。ツールを絞らない skills update/remove の一部が失敗した場合は、stdout の ok: true と data.targets を保ち、失敗行に action: failed、code: skill_update_conflict、hint を返して終了コード 1 になります。終了コード 0 は成功、1 はコマンドの失敗、130 はキャンセルです。auth_required には verification URL と user code が含まれるので、承認後に同じコマンドを再実行します。

投稿先の一覧には、現在投稿できる有効なプロジェクトだけが表示されます。非公開プロジェクトへ投稿できるのは、作成者、team プランの有効な owner/admin、または確認済みメールアドレスで登録された contributor/manager です。free/plus の管理者権限、閲覧権限、成果物への個別共有だけでは投稿できません。人間のエージェントは承認した1つの投稿先に制限されます。workspace の bot は管理者が承認した複数の投稿先を、資格情報の再取り込みなしで選べます。非公開プロジェクト向けのレポートは --visibility project を明示してください。どちらも非公開プロジェクトでは contributor/manager の権限が必要です。publisher はプロジェクトを選択できません。edit は --visibility private|workspace|project|link を指定できます。project の共有範囲には、編集後の保存先がプロジェクトであることが必要です。必要なら同じコマンドに --project-id <id> を指定します。home での明示的な --visibility project(--home との併用を含む)は変更せずに拒否します。プロジェクトの成果物を home に移す場合、project を明示指定していなければ private になります。project への投稿はその project の audience に届きます。投稿先を指定しない share は home に投稿します。home_audience は目的別に使い分けます。個人の安全な既定値には user、一緒に使う全員が合意した方針には repository、一回限りの指定には明示 --visibility を使い、config get home_audience --scope effective --json で実効値を確認します。正本の設定は home_audience で、private は自分だけ、workspace は社内全員です。repository 設定は .artifactshare/config.json、user 設定は user config directory に保存します。home の解決順は repository の home_audience、repository の default_artifact_visibility、user の home_audience、user の default_artifact_visibility、アカウントに応じた製品既定値です。home_audience を設定していないときは、組織の共有範囲を使えるアカウントなら workspace、それ以外のアカウントなら private になります。明示指定や設定による workspace は利用できなければ従来どおりエラーになり、link へ自動変更しません。リンク共有には --visibility link を明示します。config は通信せず、source が product_default の workspace は未確定の方針を表します。share とプレビューでアカウントを確認して確定します。whoami と doctor は workspace.visibility_available を返します。この項目を返さない旧サーバーでは workspace と従来のエラー動作を維持します。private への変更時は共有結果に visibility_source: product_default_private と visibility_hint が含まれます。default_artifact_visibility は、互換性のために残している別名です。default_project_visibility は projects create 用の独立した既定値です。--grant-email は project の個別共有先を追加するだけで、project の visibility を暗黙に変更しません。

artifacts list --q は本文とタイトル、--query はタイトルだけを検索します。両方の指定や、--query と所有者・期間の併用は validation_failed です。--owner-user-ids にメールアドレスではなくユーザー ID を繰り返し指定でき(MCP は owner_user_ids 配列)、--project-id または --home で場所を絞れます。期間は --date-field updated|viewed と --days 7|30|90、または ISO 形式の --from/--to を指定します。日付だけの上限はその UTC 日を含みます。API の空 q は一覧検索、CLI の --q は空文字不可です。

検索は抜粋を返し、正規化したタイトルが同じ文書をまとめます。group_size は検索全体で一致した閲覧可能な文書数、total はグループ総数です。上限は 1000、eq は正確な件数、gte は下限です。--cursor では同じ条件を繰り返し、条件や資格情報を変えたら cursor なしでやり直してください。制限付きエージェントとボットは発見可能かつ資格情報で読めるプロジェクト内だけを検索し、版の集計は返しません。publisher・bridge・bootstrap は一覧取得・検索できません。

0 件でも存在しないと結論づけず、言い換えて再検索してください。検索が完了して 0 件だった場合は成功として search_hint: "Rephrase the query and search again before concluding that nothing exists." を返します。語を減らすか別の語で再検索します。正規化後の語が 2 つ以上あり、すべての語に一致する結果がなければ、いずれかの語に一致する検索へ自動で切り替わります。追加のフラグや OR 構文は不要です。その場合の search_hint は "No documents matched all query terms. These results match any of the terms. Rephrase the query and search again." です。

HTTP 503 の search_capacity_exceeded は検索容量の上限を超えたエラーです。検索語や条件を絞って再検索してください。このエラーは検索が成功して 0 件だったことを意味しません。CLI では service_error として出力され、details.api_code が search_capacity_exceeded になります。MCP では search_capacity_exceeded のツールエラーを返します。

download の ID は ^[a-z0-9]{10}$ に限定し、一覧と index の不正な ID や重複は書き込み前に拒否します。出力ルートの親がリンクでも使用でき、リンク先のディレクトリの同一性を再確認します。ルート、index、一覧に含まれる成果物ツリーのリンクは --force でも拒否します。事前検査では変更のない成果物を含む全対象と index を確認し、無関係な内容は走査しません。通信エラーやマニフェストのパス・内容・IDの不備は成果物ごとの失敗として記録しますが、書き込み境界の違反を検出したら、後続の成果物と最終 index の公開を中断します。置換前のデータと index は成功後も保持し、data.backup_paths と人向け出力で案内します。復旧に失敗した場合もエラーに保存先を示します。内容を確認してから手動で削除してください。

設定保存時の init は、設定パスのリンクや差し替えを拒否します。Node のパスベース操作では、検査と操作の間の任意の同時変更まで原子的に防ぐ保証はありません。init は未知の設定キーを保持します。Git worktree と submodule でも設定は保存しますが、.git ファイル、リンク、.git の中の gitdir や commondir のファイル、安全に更新できない exclude は git_exclude_warning で手動追加する行を案内します。

Windows の短い名前など、別の綴りで指定したファイルは、保存されている本来の名前から種類と content type を決めます。列挙後に消えたファイルは changed、途中に通常のファイルを含む相対パス(例: file.txt/x)は not_found になります。share・append・update の相対パスは物理的な現在のディレクトリ内に限定され、途中のリンクも拒否されます。絶対パスの親ディレクトリは信頼しますが、選択対象とその配下のリンクは拒否します。親ディレクトリ参照(..)を含むパスは使えません。直接の絶対パスを指定してください。リンク先を選択範囲にコピーするか、リンク先の絶対パスを指定します。ドット(.)で始まる名前と除外対象は、検査の前に省きます。認証やプロジェクト検索の前に読み取りを完了し、認証の再試行では検証済みの内容を再利用します。validation_failed の details.path と details.reason(parent_traversal、link、outside_cwd、not_found、changed、unsupported_guarantee、invalid_type)を確認してください。見つからないパスは確認し、outside_cwd では絶対パスを指定し、読み取り中の変更は再試行し、保証やファイル種別の問題は個別のヒントに従います。upload_read_failed では details.errno とファイルシステムの状態・権限を確認して再試行します。POSIX では利用可能な no-follow open を使い、Windows ではハンドルの同一性を確認して lstat がリンクと判定した対象を拒否します。検査の間に差し替えて元に戻す操作や、同じファイルを同じサイズで書き換える操作は検出できない場合があります。

auth_required または token_invalid なら login を実行し直すか、有効なトークンをプロファイルに取り込みます。そのあと、同じコマンドを再実行します。unknown_option は認証・通信・書き込みの前に返されます。details.option をヒントやコマンドのヘルプに従って修正してください。invalid_expected_version では番号ではなく、share/update の出力の data.version.id、または artifacts get <target> --json の data.version_id を指定します。どちらも recovery.kind: change_input です。unsupported_node_version では Node.js を 22.19.0 以上に更新してください。人または実行環境側の対応が必要です(recovery.kind: ask_human、agent_recoverable: false、requires_human: true)。details.reason がない validation_failed は構文とオプションを確認します。target_not_found は URL または ID を解決し直します。self_upload_disabled は Google または Microsoft でログインして、同じコマンドを再実行します。network_failed は base URL を確認して、投稿先を変えずに再試行します。login --preset agent でログインして expected_version_required が返された場合は、前回成功した share または update の出力にある data.version.id を --expected-version に指定して、update または share --key を再実行します。前回の出力がない場合、単一ファイルの HTML・Markdown では artifacts get <target> --json が現在のバージョンを data.version_id として返します。静的サイトでは download <target> --json が data.version.id として返します。返された現在の内容(data.content、静的サイトではダウンロードしたファイル)を確認し、編集元の内容と異なる場合は、その現在の内容に変更を適用し直します。返された値を --expected-version に指定します。