box-cli
БесплатноБез исполняемых скриптовНе проверенUse the official Box CLI for Box command-line operations, reproducible shell automation, CLI authentication or troubleshooting, and bulk Box work. Do not use…
от iskysun96183 установки в других каталогахОб этом скилле
Box CLI
Use the installed Box CLI to complete and verify Box operations.
Operating workflow
Identify the requested outcome, target, and actor. If the request leaves a risky target, recipient, role, impersonated user, or batch scope ambiguous, ask one focused question before running a command.
Confirm the intended CLI environment and acting user before the operation. If the user names an environment, inspect
box configure:environments:select --helpand select that environment before checking identity:box users:get me --json --fields id,name,loginInclude the intended
--as-user <USER_ID>in the identity check when impersonation is authorized.users:get meconfirms the acting user, not the environment name. Reuse the same environment and actor controls throughout the operation and its verification; repeat the check after any authorized environment or actor change. Never switch to a more privileged identity merely to bypass an error.Resolve human-readable names to stable Box IDs before mutation. If multiple items match, present the candidates and ask the user to choose.
Prefer a dedicated CLI command. Add
--jsonfor machine-readable output and narrow--fieldsto the data needed for the task.Verify mutations with a read using the same actor. For deletes, check the parent collection or trash as appropriate; a
404alone can also mean the actor lacks access. For asynchronous operations, report pending status until completion is confirmed.Report the actor, action, relevant object IDs, verification evidence, and any unresolved failure. Include commands when they help the user reproduce the result.
Common patterns
Record box --version. Inspect command help when syntax is unfamiliar, the installed version differs from the verified version below, or a command is rejected. Resolve uncertainty before running a write.
# Identify the actor
box users:get me --json --fields id,name,login
# Inspect the root folder and a bounded set of children
box folders:get 0 --json --fields id,name
box folders:items 0 --json --fields id,type,name --max-items 20
# Search and preserve parent information for disambiguation
box search "Launch Plan" --json --fields id,type,name,parent --limit 20
# Read an item by ID
box files:get <FILE_ID> --json --fields id,name,parent,owned_by
box folders:get <FOLDER_ID> --json --fields id,name,parent,owned_by
# Create, then verify the returned folder ID
box folders:create <PARENT_FOLDER_ID> "Approved Assets" --json
box folders:get <RETURNED_FOLDER_ID> --json --fields id,name,parent
Box uses 0 as the root folder ID. A path or item name is not a stable identifier.
Use box <topic>:<command> --help to check flags and argument order in the installed version.
Setup and authentication
Only enter setup mode when the CLI is absent, authentication fails, or the user asks for it.
npm install --global @box/cli
box login -d
box login -duses the official Box CLI application for interactive content operations.- In a headless environment, have the user run
box login -d --codein their own terminal for the official CLI app, orbox login --platform-app --codefor their custom app.--codeis a boolean flag: the CLI displays an authorization URL, then prompts for the state and authorization code after the user authorizes in an external browser. Enter those values only at the local CLI prompts. - Use
box login --platform-appwhen the user needs a custom OAuth application or scopes beyond the official CLI application. - For approved server automation with JWT or Client Credentials Grant, use the current
box configure:environments:add --helpflow and protect the configuration file outside source control. - Developer tokens are for short local tests. Do not embed tokens, client secrets, private keys, or authorization codes in commands, prompts, logs, fixtures, or repository files.
After setup, verify the identity with box users:get me; do not print credential stores or raw environment configuration.
Risky and destructive work
The request must explicitly authorize the exact scope before:
- deleting or permanently deleting content;
- creating, changing, or removing collaborations or shared links;
- impersonating another user;
- changing enterprise users, groups, retention, or governance settings; or
- running a broad batch that can alter many objects.
If that authorization is absent, show the actor, target IDs, proposed role or change, and batch size, then ask for confirmation. Do not rely on CLI prompts because some destructive commands do not prompt.
Run dependent writes serially. Serialize processes sharing an OAuth environment to avoid overlapping token refreshes or environment changes. Verify using returned IDs.
Bulk operations and recovery
Use CSV or JSON input through --bulk-file-path only when the specific command supports that flag. Check the command's help and official bulk ex
Установить box-cli в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл box-cli?
Use the official Box CLI for Box command-line operations, reproducible shell automation, CLI authentication or troubleshooting, and bulk Box work. Do not use for generic shell questions, Box strategy, or application code that should use a Box SDK.
Как установить скилл box-cli?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл box-cli запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic