cli-anything-tigris
它能做什么
这个技能让 AI 智能体使用 Tigris,这是一项兼容 S3 风格工具的云文件存储服务。适合把文件存放在网上、并希望用简单命令上传和下载的人。
适用场景
- ✓当你想把本地文件上传到 Tigris 存储桶的时候。
- ✓当你需要下载已存储的文件,或创建临时链接来分享它的时候。
- ✓当你想为特定存储桶创建范围受限的访问密钥的时候。
技能链接
https://github.com/HKUDS/CLI-Anything/blob/main/skills/cli-anything-tigris/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我把这份报告上传到我的 Tigris 存储桶,并生成一个可分享的临时链接。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体运行官方的 Tigris 命令行工具,你必须先登录,结果以 JSON 形式返回。它只适用于 Tigris,不适用于其他存储服务。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
cli-anything-tigris
A stateless command-line interface for Tigris
object storage. Wraps the official tigris CLI so every Tigris primitive
(snapshots, IAM, scoped credentials, OAuth) is reachable through a single
agent-friendly entry point with --json everywhere.
Scope
This harness is for the official Tigris CLI only. It shells out to the
tigris binary and assumes Tigris auth through tigris login or Tigris
access keys. It is not a generic S3 endpoint tool, and it does not manage
MinIO, Cloudflare R2, AWS S3, or arbitrary S3-compatible endpoints.
Installation
# 1. Install the underlying Tigris CLI
npm install -g @tigrisdata/cli
# or:
brew install tigrisdata/tap/tigris
# 2. Authenticate (browser OAuth)
tigris login
# 3. Install this harness
pip install cli-anything-tigris
Prerequisites:
- Python 3.10+
tigrisCLI on PATH (the binary's alias ist3)
Usage
Basic Commands
# Show help
cli-anything-tigris --help
# Start interactive REPL
cli-anything-tigris
# Whoami (JSON output for agents)
cli-anything-tigris --json auth whoami
# List buckets
cli-anything-tigris --json bucket list
# Upload a local file
cli-anything-tigris --json object put --bucket my-bucket --key path/to/file.txt --file ./local.txt
# Download an object
cli-anything-tigris --json object get --bucket my-bucket --key path/to/file.txt --output ./out.txt
# Server-side copy
cli-anything-tigris --json object cp t3://my-bucket/src.txt t3://my-bucket/dst.txt
# Take a snapshot
cli-anything-tigris --json snapshot take my-bucket --name baseline-v1
# Delete a bucket; --yes is required
cli-anything-tigris --json bucket delete --name old-bucket --yes
# Create a scoped access key for an agent run
cli-anything-tigris --json access-key create my-agent-key
cli-anything-tigris --json access-key assign tid_AaBb --bucket my-bucket --role Editor
# Rotate or delete access keys; --yes is required
cli-anything-tigris --json access-key rotate tid_AaBb --yes
cli-anything-tigris --json access-key delete tid_AaBb --yes
# Presigned download URL (1 hour)
cli-anything-tigris --json presign get --bucket my-bucket --key path/to/file.txt --expires 3600
REPL Mode
When invoked without a subcommand, the CLI enters an interactive REPL with tab-completion and history.
Command Groups
auth
OAuth-based authentication.
| Command | Description |
|---|---|
login |
Browser OAuth login (tigris login) |
logout |
Log out of current session |
whoami |
Print authenticated user / org |
bucket
Bucket CRUD.
| Command | Description |
|---|---|
list |
List all buckets |
create --name NAME |
Create a bucket |
delete --name NAME --yes |
Delete an empty bucket (--yes required) |
info NAME |
Get bucket info |
object
Object operations (wraps tigris ls/cp/rm/stat).
| Command | Description |
|---|---|
list --bucket B [--prefix P] [--limit N] |
List objects |
put --bucket B --key K (--file F | --text T) |
Upload an object |
get --bucket B --key K --output F |
Download an object |
delete --bucket B --key K |
Delete an object |
info --bucket B --key K |
Object metadata (HEAD / stat) |
cp SRC DST [-r] |
Copy. Accepts t3:// or tigris:// URIs. |
presign
Time-limited URLs.
| Command | Description |
|---|---|
get --bucket B --key K [--expires SEC] |
Presigned download URL |
put --bucket B --key K [--expires SEC] |
Presigned upload URL |
snapshot
Point-in-time bucket snapshots — a Tigris-specific primitive.
| Command | Description |
|---|---|
list BUCKET |
List snapshots for a bucket |
take BUCKET [--name N] |
Take a snapshot |
access-key
Scoped programmatic credentials — combine with snapshot for per-agent isolation.
| Command | Description |
|---|---|
list |
List all access keys |
create NAME |
Create a new access key (secret shown ONCE) |
get KEY_ID |
Show key details |
delete KEY_ID --yes |
Permanently delete a key (--yes required) |
assign KEY_ID --bucket B --role R |
Scope a key to a bucket + role |
rotate KEY_ID --yes |
Rotate a key's secret (--yes required) |
iam
Policies and organization users.
| Command | Description |
|---|---|
policy list |
List IAM policies |
policy create NAME --document FILE |
Create a policy from a JSON file |
| `use |
常见问题
我需要先设置什么?
你需要安装 Tigris CLI,通过 tigris login 命令登录,并安装 Python 3.10 或更高版本。
它可以与 Amazon S3 或 Cloudflare R2 一起使用吗?
不可以。该技能只针对 Tigris,不管理其他兼容 S3 的服务。
它支持快照吗?
支持。它包含快照命令,可通过 Tigris CLI 使用。
详情
作者的原始描述
Command-line interface for Tigris object storage — wraps the official `tigris` CLI to expose buckets, objects, presigned URLs, snapshots, IAM, and scoped access keys to AI agents. Globally distributed, S3-compatible, no egress fees.
repo: HKUDS/CLI-Anything
热度
- GitHub 星标
- 58k
- 排名
- #3249
- 许可证
- Apache-2.0
- 更新时间
- 2026/9/21
评论
- …
同一仓库的更多技能
cli-anything-3mf
58k帮你的智能体检查和修复 3D 打印文件,包括查找圆孔、调整孔径、修复网格,以及比较两个文件。
cli-anything-qgis
58k帮你的智能体在终端中打开、编辑和导出 QGIS 地图项目,包括图层、要素、打印布局和处理工具。
cli-anything-adguardhome
58k帮你的智能体管理 AdGuard Home,这是一款全网络广告拦截器,可管理过滤规则、DNS 重写、客户端和查询日志。
cli-anything-anygen
58k帮你的智能体借助 AnyGen 服务,根据文字提示生成幻灯片、文档、网站和图表。