append
ローカルの UTF-8 ファイルを、既存の単一 HTML または Markdown の末尾へ追記します。
npx --yes @artifactshare/cli append <artifact-id-or-url> ./section.md --json
構文
npx --yes @artifactshare/cli append <OPTIONS> <artifactIdOrUrl> <path>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost
artifacts
ファイルの一覧表示、読み取り、削除を行います。
構文
npx --yes @artifactshare/cli artifacts [COMMANDS] <OPTIONS>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost
artifacts delete
delete の別名です。ファイルを完全に削除します。
構文
npx --yes @artifactshare/cli 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 の資格情報では retain_versions・version_count・total_size_bytes も返ります。バージョン数と合計サイズの集計対象は呼び出し元が履歴で閲覧できるバージョンに限られ、静的サイトでは所有者を含め公開日時のある公開済みのバージョンだけを対象にします。publisher の資格情報には version_count と total_size_bytes を返しません。
構文
npx --yes @artifactshare/cli artifacts get <OPTIONS> <artifactIdOrUrl>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --offset · --include
--version <version> 読み取る公開済みのバージョンの ID。省略すると現在の本文を返します。
artifacts list
プロジェクトや home を含め、アクセスできるファイルを一覧表示します。--q は本文とタイトル、--query はタイトルだけを対象に検索します(絞り込み・ページ送り・0 件時の対処は「失敗と復旧」を参照)。検索フィルターを使わない通常の一覧と、通常ユーザーの資格情報による検索では、各行の retain_versions・version_count・total_size_bytes で保持設定・バージョン数・論理バイト数を確認できます。制限付き agent や bot の検索結果にはこの 3 項目を含めません。バージョン数と合計サイズの集計対象は呼び出し元が履歴で閲覧できるバージョンに限られ、静的サイトでは所有者を含め公開日時のある公開済みのバージョンだけを対象にします。publisher の資格情報では一覧を取得できません。容量を比べたいときはページを取得して手元で total_size_bytes を比較します。
構文
npx --yes @artifactshare/cli 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 を外して取り直します。
構文
npx --yes @artifactshare/cli artifacts versions <OPTIONS> <artifactIdOrUrl>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --cursor
--cursor <cursor> 前の履歴ページで返った next_cursor を指定します。最初から取得する場合は省略します。
changelog
CLI の変更履歴(リリースノート)を表示します。
構文
npx --yes @artifactshare/cli changelog <OPTIONS>オプション
--help · --version · --json
comments
ファイルに付いたコメントを操作します。
構文
npx --yes @artifactshare/cli comments [COMMANDS] <OPTIONS>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost
comments delete
コメントを削除します。
構文
npx --yes @artifactshare/cli comments delete <OPTIONS> <artifactIdOrUrl>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --thread-id · --message-id
comments edit
コメントの本文を編集します。
構文
npx --yes @artifactshare/cli 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 が返ります。
構文
npx --yes @artifactshare/cli 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
コメントや返信を投稿します。引用箇所の一致確認は投稿時には行わず、そのバージョンを共有ページで開いたときに完全一致で照合します。
構文
npx --yes @artifactshare/cli 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
解決済みのコメントスレッドを再開します。
構文
npx --yes @artifactshare/cli comments reopen <OPTIONS> <artifactIdOrUrl>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --thread-id
comments resolve
コメントスレッドを解決済みにします。
構文
npx --yes @artifactshare/cli comments resolve <OPTIONS> <artifactIdOrUrl>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --thread-id
config
ローカルの CLI 設定を確認・変更します。
構文
npx --yes @artifactshare/cli config [COMMANDS] <OPTIONS>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost
config get
user・repository・effective の各スコープで設定を読み取ります。
npx --yes @artifactshare/cli config get home_audience --scope effective --json
構文
npx --yes @artifactshare/cli config get <OPTIONS> [<key>]オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --scope
config set
user または repository のスコープに設定を保存します。
npx --yes @artifactshare/cli config set home_audience private --scope user --json
構文
npx --yes @artifactshare/cli config set <OPTIONS> <key> <value>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --scope
config unset
指定したスコープに保存されている設定を削除します。
構文
npx --yes @artifactshare/cli config unset <OPTIONS> <key>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --scope
delete
ファイルを完全に削除します。
構文
npx --yes @artifactshare/cli delete <OPTIONS> <artifactIdOrUrl>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost
doctor
トークンの保存先、認証、設定、接続状態を診断します。
構文
npx --yes @artifactshare/cli doctor <OPTIONS>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost
download
ファイルをローカルのパスへダウンロードします。
構文
npx --yes @artifactshare/cli download <OPTIONS> [<artifactIdOrUrl>]オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --project-id · --output · --force
--force 既存の出力を置き換え、復旧用のバックアップを残します。
edit
ファイルのタイトル、共有範囲(visibility)、共有先、投稿先を変更します。
構文
npx --yes @artifactshare/cli 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
利用中のエージェントを検出し、スキルをインストールして初期設定を進めます。
npx --yes @artifactshare/cli init --json
構文
npx --yes @artifactshare/cli init <OPTIONS>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --project-id · --dry-run
login
通常権限、または 1 つのプロジェクトに絞った agent 権限で CLI にログインします。
npx --yes @artifactshare/cli login --profile agent --preset agent --json
構文
npx --yes @artifactshare/cli login <OPTIONS>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --preset · --project
logout
保存済みの認証情報を失効させて削除します。
構文
npx --yes @artifactshare/cli logout <OPTIONS>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost
move
ファイルをプロジェクトまたは home へ移動します。
構文
npx --yes @artifactshare/cli move <OPTIONS> <artifactIdOrUrl>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --project-id · --home
open
Artifact Share の URL を読み取り、必要なら CLI スキルを準備します。
npx --yes @artifactshare/cli open <artifact-id-or-url> --json
構文
npx --yes @artifactshare/cli open <OPTIONS> <artifactIdOrUrl>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost
preview
ローカルのファイルを共有ページと同じ見た目で表示し、その場でコメントできます。
構文
npx --yes @artifactshare/cli preview [COMMANDS] <OPTIONS>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost
preview done
標準入力の JSON で対応結果を一括報告します(世代単位で冪等)。
構文
npx --yes @artifactshare/cli preview done <OPTIONS> [<file>]オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --stdin · --session
preview history
送信したバッチごとに、コメントとエージェントが報告する前後の文書をローカル履歴から読み取ります。
構文
npx --yes @artifactshare/cli preview history <OPTIONS> [<file>]オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --session · --batch
preview next
未処理のコメントバッチをエージェントへ返します。
構文
npx --yes @artifactshare/cli preview next <OPTIONS> [<file>]オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --wait · --session
preview reply
スレッドへ返信を追記します(スレッドの状態は変わりません)。
構文
npx --yes @artifactshare/cli 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> として起動します。
構文
npx --yes @artifactshare/cli preview start <OPTIONS> [<file>]オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --no-open
preview stop
プレビューを終了します。コメントはローカルに保存されたまま残ります。
構文
npx --yes @artifactshare/cli preview stop <OPTIONS> [<file>]オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --session · --force
profiles
名前付きの認証プロファイルを管理します。
構文
npx --yes @artifactshare/cli profiles [COMMANDS] <OPTIONS>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost
profiles delete
名前付きのプロファイルを削除します。
構文
npx --yes @artifactshare/cli profiles delete <OPTIONS>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost
profiles import-token
CI 用または手動発行のトークンをプロファイルへ取り込みます。
printf '%s' "$ARTIFACTSHARE_TOKEN" | npx --yes @artifactshare/cli profiles import-token --profile ci --json
構文
npx --yes @artifactshare/cli profiles import-token <OPTIONS>オプション
--help · --version · --json · --base-url · --profile · --allow-plaintext-token-store · --insecure-localhost · --force
profiles list
保存済みのプロファイルを一覧表示します。
構文
npx --yes @artifactshare/cli profiles list <OPTIONS>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost
profiles use
使用するプロファイルを切り替えます。
構文
npx --yes @artifactshare/cli profiles use <OPTIONS> <name>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost
projects
プロジェクトを管理します。
構文
npx --yes @artifactshare/cli projects [COMMANDS] <OPTIONS>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost
projects create
新しいプロジェクトを作成します。
構文
npx --yes @artifactshare/cli projects create <OPTIONS> <name>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --description · --visibility
projects edit
プロジェクトの詳細、共有範囲、アーカイブ状態を変更します。
構文
npx --yes @artifactshare/cli 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
現在投稿できる有効なプロジェクトを一覧表示します。
構文
npx --yes @artifactshare/cli projects list <OPTIONS>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost
resolve
URL や ID などから対象の Artifact Share 情報を解決します。
構文
npx --yes @artifactshare/cli 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 の指定も必要です(「失敗と復旧」を参照)。
npx --yes @artifactshare/cli share ./report.html --json
構文
npx --yes @artifactshare/cli 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 エージェントスキルを管理します。
構文
npx --yes @artifactshare/cli skills [COMMANDS] <OPTIONS>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost
skills ensure
検出したツールにスキルが入っていることを確認し、必要なら導入・更新します。
構文
npx --yes @artifactshare/cli skills ensure <OPTIONS>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --tool · --scope · --dry-run
skills install
指定したツールにスキルをインストールします。
構文
npx --yes @artifactshare/cli 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
スキルが入っているツールを一覧表示します。
構文
npx --yes @artifactshare/cli skills list <OPTIONS>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost
skills remove
指定したツールからインストール済みのスキルを削除します。
構文
npx --yes @artifactshare/cli skills remove <OPTIONS>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost · --tool · --scope · --dry-run
skills update
インストール済みのスキルを更新します。
構文
npx --yes @artifactshare/cli 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 に共有ページのバージョン番号(v{number})が返ります(古いサーバーでは省略される場合があります)。履歴は artifacts get --include versions で取得できます。--label が空・制御文字を含む・不正・不可視文字のみ・重複指定のいずれかだと、認証前にローカルで validation_failed になります。
npx --yes @artifactshare/cli update <artifact-id-or-url> ./report.html --expected-version <version-id> --json
構文
npx --yes @artifactshare/cli 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
現在使っているアカウントとワークスペースを表示します。
構文
npx --yes @artifactshare/cli whoami <OPTIONS>オプション
--help · --version · --json · --base-url · --token · --profile · --allow-plaintext-token-store · --insecure-localhost