360 Secure SkillHub
360 安全技能中心

Zilliz Skill

该 Skill 通过 zilliz-cli 在 shell 中操作 Zilliz Cloud,覆盖集群、集合、索引、分区、数据库、向量检索与写入、用户角色与权限、备份、导入、计费、监控及项目区域等管理场景;包含安装登录前置检查、异步操作轮询和破坏性操作确认规则,并附带按领域划分的参考文件。

分类:自动化
zhanshuyou
zhanshuyou
热度 29.70
最近更新 2026-05-11 17:36:23

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add zhanshuyou/zilliz-skill
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
zilliz
description
Manage Zilliz Cloud vector databases via zilliz-cli. Use when the user wants to: (1) set up zilliz-cli (install, login, configure), (2) manage clusters (create, list, describe, suspend, resume, delete, modify), (3) manage collections, indexes, partitions, databases, or aliases, (4) perform vector operations (search, query, insert, upsert, delete, hybrid search), (5) manage users, roles, and RBAC privileges, (6) handle backups, imports, billing, monitoring, projects, or regions. Triggers on: zilliz, vector database, semantic search, RAG, embeddings, collection schema, vector index, similarity search, zilliz-cli.

Zilliz Cloud CLI Skill

Operate Zilliz Cloud through zilliz-cli. All operations are executed via shell commands.

Prerequisite Check (always run first)

Before any operation, verify in order:

python3 -m pip show zilliz-cli    # 1. CLI installed? If not: pip install --upgrade zilliz-cli
zilliz auth status                 # 2. Logged in? If not: guide user to login in their terminal
zilliz context current             # 3. Context set? (only for data-plane ops)

CRITICAL: zilliz login, zilliz configure, and zilliz auth switch require interactive input — NEVER run them in a non-interactive shell. Instruct the user to run in their own terminal. NEVER ask for API keys in chat.

Command Pattern

zilliz <resource> <action> --flag <value> [--optional-flag <value>]

All commands support --output json|table|text (default: text). Use --output json for programmatic parsing.

Cluster Type Capabilities

Feature Free Serverless Dedicated
Collection CRUD & Vector ops Yes Yes Yes
Database create/drop No No Yes
User/role management No Limited Yes
Backup management No Yes Yes
Cluster modify (CU/replica) No No Yes

Check cluster type first when a command fails with permission errors.

Reference Files

Each reference covers one resource domain with full command syntax, options, and guidance. Read the relevant reference when handling that domain:

Domain Reference When to read
Setup & auth references/setup.md Install, login, context, config, troubleshooting
Clusters references/cluster.md Create, list, describe, modify, suspend, resume, delete clusters
Collections references/collection.md Create, list, describe, drop, rename, load, release, aliases
Vectors references/vector.md Search, query, insert, upsert, get, delete, hybrid search, filters
Indexes references/index.md Create, list, describe, drop indexes
Databases references/database.md Create, list, describe, drop databases
Partitions references/partition.md Create, list, load, release, drop partitions
Users & roles references/user-role.md RBAC: users, roles, privileges (Dedicated only)
Backups references/backup.md Create, restore, export backups; manage backup policies
Import references/import.md Bulk data import from cloud storage
Billing references/billing.md Usage queries, invoices, payment methods
Monitoring references/monitoring.md Cluster status, collection stats, load states
Projects & regions references/project-region.md Projects, volumes, cloud providers, regions

Quick-Start Workflow

For new users, guide through setup in order:

  1. Install CLI: python3 -m pip install --upgrade zilliz-cli
  2. Authenticate: user runs zilliz login in their terminal
  3. Verify: zilliz auth status
  4. List clusters: zilliz cluster list
  5. Set context: zilliz context set --cluster-id <id>
  6. Verify: zilliz context current && zilliz collection list

Common Workflows

Create collection and prepare for search:

  1. zilliz collection create --name <name> --dimension <dim> — create
  2. zilliz index create --collection <name> — index (AUTOINDEX recommended)
  3. zilliz collection load --name <name> — load into memory
  4. zilliz vector search --collection <name> --data '[[...]]' — search

Status overview (read references/monitoring.md):

  1. zilliz context current --output json
  2. zilliz cluster describe --cluster-id <id> --output json
  3. zilliz database list --output json
  4. For each DB: collection list, get-stats, get-load-state, index list
  5. Present as formatted table

Async Operations

These return immediately; poll for completion:

Operation Poll command
cluster create cluster describe --cluster-id <id> until RUNNING
backup create/export/restore-* backup describe --cluster-id <id> --backup-id <bid>
import start import status --job-id <jid> --cluster-id <id>

Safety Rules

  • Confirm before destructive ops: drop collection/database, delete cluster/backup, drop user/role
  • Sensitive commands in user's terminal: zilliz login, zilliz configure, zilliz billing bind-card
  • Never expose credentials in chat or command output