Skip to main content

tos-cli

Use tos-cli for ByteCloud TOS object storage work. Trigger this skill when a user asks an AI agent to inspect, configure, list, upload, download, sync, delete, presign, diagnose, or automate ByteCloud TOS resources with the tos-cli command-line tool.

소스 정보

저장소
volcengine/ve-storage-uni-cli
최근 소스 활동
2026년 8월 14일 09:59
감지된 SKILL.md 언어
영어
스타
7
포크
1

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
3 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
tos-cli
description
Use tos-cli for ByteCloud TOS object storage work. Trigger this skill when a user asks an AI agent to inspect, configure, list, upload, download, sync, delete, presign, diagnose, or automate ByteCloud TOS resources with the tos-cli command-line tool.
# tos-cli Use the `tos-cli` binary for ByteCloud TOS object storage. Check availability with `tos-cli --version` before planning commands, and use the first matching executable on `PATH` unless the user provides an explicit path. Do not run storage operations if the binary is missing. ## CLI installation If `tos-cli --version` fails and the user wants installation help, suggest one of these installation methods: ```bash cargo install tos-cli npm install -g tos-cli pip install tos-cli brew tap volcengine/ve-storage-uni-cli https://github.com/volcengine/ve-storage-uni-cli brew install tos-cli winget install tos-cli curl -fsSL https://github.com/volcengine/ve-storage-uni-cli/releases/latest/download/install.sh | sh -s -- tos-cli ``` Read `references/safety.md` before commands that write, delete, move, overwrite, sync, change config, or expose signed URLs. ## Discovery ```bash tos-cli capabilities --view compact --output json tos-cli doctor --output json tos-cli config show --output json ``` ## Connection configuration `tos-cli config init` does not choose a region, endpoint, or PSM. Configure an endpoint explicitly; a recognizable endpoint may supply the signing region, while a custom endpoint also needs an explicit region. For ByteTOS PSM mode, configure both region and PSM and do not configure endpoint. ```bash tos-cli config set access_key_id <byte-tos-access-key> tos-cli config set secret_access_key <byte-tos-secret-key> tos-cli config set endpoint https://your-bytetos-endpoint.example.com tos-cli config set region cn-beijing # Alternative PSM mode in another profile (no endpoint in that profile): tos-cli config set psm-profile.region cn-beijing tos-cli config set psm-profile.psm toutiao.tos.tosapi ``` Bare AK/SK keys are stored under the active profile's `[profile.tos]` credentials section, independently from `ve-tos-cli` credentials. ## Common Commands ```bash tos-cli ls tos://bucket/prefix/ --output json tos-cli stat tos://bucket/key --output json tos-cli cp ./file.txt tos://bucket/file.txt --dry-run tos-cli sync ./dir tos://bucket/prefix/ --dry-run tos-cli presign tos://bucket/key --expires 3600 --output json ``` Use `tos-cli <command> --help` when flags are uncertain.
GitHub에서 보기