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:
# 1. Install or update the CLI
curl -fsSL https://raw.githubusercontent.com/zilliztech/zilliz-cli/master/install.sh | bash
# 2. Logged in? If not: guide user to login in their terminal
zilliz auth status
# 3. Context set? (only for data-plane ops)
zilliz context current
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; create Vector Lake |
| On-demand clusters |
references/on-demand-cluster.md |
Create, list, describe, delete on-demand (Vector Lake) clusters with auto-suspend TTL |
| Collections |
references/collection.md |
Create, list, describe, drop, rename, load, release, aliases, per-collection metrics |
| External collections |
references/external-collection.md |
Trigger, describe, list refresh jobs for Vector Lake-backed collections |
| 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) |
| Access control |
references/acl.md |
Cloud-level RBAC: custom org/project roles, policies, member and SCIM group grants |
| Backups |
references/backup.md |
Create, restore, export backups; manage backup policies |
| Import |
references/import.md |
Bulk data import from cloud storage; manage import stages |
| Billing |
references/billing.md |
Usage queries, invoices, payment methods |
| Monitoring |
references/monitoring.md |
Cluster status, collection stats, load states, cluster and per-collection time-series metrics |
| Projects & regions |
references/project-region.md |
Projects, volumes, cloud providers, regions |
| PrivateLink |
references/privatelink.md |
Endpoint services, project endpoints, whitelist management |
| Jobs |
references/job.md |
Track async job status, wait for completion |
| Diagnose |
references/diagnose.md |
Read-only health diagnosis for clusters and collections (slow, stuck, errors, quota) |
Quick-Start Workflow
For new users, guide through setup in order:
- Install CLI:
curl -fsSL https://raw.githubusercontent.com/zilliztech/zilliz-cli/master/install.sh | bash
- Authenticate: user runs
zilliz login in their terminal
- Verify:
zilliz auth status
- List clusters:
zilliz cluster list
- Set context:
zilliz context set --cluster-id <id>
- Verify:
zilliz context current && zilliz collection list
Common Workflows
Create collection and prepare for search:
zilliz collection create --name <name> --dimension <dim> — create
zilliz index create --collection <name> — index (AUTOINDEX recommended)
zilliz collection load --name <name> — load into memory
zilliz vector search --collection <name> --data '[[...]]' — search
Status overview (read references/monitoring.md):
zilliz context current --output json
zilliz cluster describe --cluster-id <id> --output json
zilliz database list --output json
- For each DB:
collection list, get-stats, get-load-state, index list
- Present as formatted table
Async Operations
These return immediately with a jobId; track with job describe (see references/job.md):
| Operation |
Poll command |
cluster create |
cluster describe --cluster-id <id> until RUNNING |
backup create/export/restore-* |
job describe --job-id <jid> or backup describe |
import start |
job describe --job-id <jid> |
| Any async op with jobId |
job describe --job-id <jid> --wait |
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
1---2name: zilliz3description: 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 database users, roles, and RBAC privileges, or cloud-level access control (org/project roles, member and group grants), (6) handle backups, imports, billing, monitoring, projects, regions, or async jobs. Triggers on: zilliz, vector database, semantic search, RAG, embeddings, collection schema, vector index, similarity search, zilliz-cli.4---56# Zilliz Cloud CLI Skill78Operate Zilliz Cloud through `zilliz-cli`. All operations are executed via shell commands.910## Prerequisite Check (always run first)1112Before any operation, verify in order:1314```bash15# 1. Install or update the CLI16curl -fsSL https://raw.githubusercontent.com/zilliztech/zilliz-cli/master/install.sh | bash1718# 2. Logged in? If not: guide user to login in their terminal19zilliz auth status2021# 3. Context set? (only for data-plane ops)22zilliz context current23```2425**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.2627## Command Pattern2829```30zilliz <resource> <action> --flag <value> [--optional-flag <value>]31```3233All commands support `--output json|table|text` (default: `text`). Use `--output json` for programmatic parsing.3435## Cluster Type Capabilities3637| Feature | Free | Serverless | Dedicated |38| ---------------------------- | ---- | ---------- | --------- |39| Collection CRUD & Vector ops | Yes | Yes | Yes |40| Database create/drop | No | No | Yes |41| User/role management | No | Limited | Yes |42| Backup management | No | Yes | Yes |43| Cluster modify (CU/replica) | No | No | Yes |4445Check cluster type first when a command fails with permission errors.4647## Reference Files4849Each reference covers one resource domain with full command syntax, options, and guidance. Read the relevant reference when handling that domain:5051| Domain | Reference | When to read |52| ------------------ | ------------------------------------------------------------ | ------------------------------------------------------------------ |53| Setup & auth | [references/setup.md](references/setup.md) | Install, login, context, config, troubleshooting |54| Clusters | [references/cluster.md](references/cluster.md) | Create, list, describe, modify, suspend, resume, delete clusters; create Vector Lake |55| On-demand clusters | [references/on-demand-cluster.md](references/on-demand-cluster.md) | Create, list, describe, delete on-demand (Vector Lake) clusters with auto-suspend TTL |56| Collections | [references/collection.md](references/collection.md) | Create, list, describe, drop, rename, load, release, aliases, per-collection metrics |57| External collections | [references/external-collection.md](references/external-collection.md) | Trigger, describe, list refresh jobs for Vector Lake-backed collections |58| Vectors | [references/vector.md](references/vector.md) | Search, query, insert, upsert, get, delete, hybrid search, filters |59| Indexes | [references/index.md](references/index.md) | Create, list, describe, drop indexes |60| Databases | [references/database.md](references/database.md) | Create, list, describe, drop databases |61| Partitions | [references/partition.md](references/partition.md) | Create, list, load, release, drop partitions |62| Users & roles | [references/user-role.md](references/user-role.md) | RBAC: users, roles, privileges (Dedicated only) |63| Access control | [references/acl.md](references/acl.md) | Cloud-level RBAC: custom org/project roles, policies, member and SCIM group grants |64| Backups | [references/backup.md](references/backup.md) | Create, restore, export backups; manage backup policies |65| Import | [references/import.md](references/import.md) | Bulk data import from cloud storage; manage import stages |66| Billing | [references/billing.md](references/billing.md) | Usage queries, invoices, payment methods |67| Monitoring | [references/monitoring.md](references/monitoring.md) | Cluster status, collection stats, load states, cluster and per-collection time-series metrics |68| Projects & regions | [references/project-region.md](references/project-region.md) | Projects, volumes, cloud providers, regions |69| PrivateLink | [references/privatelink.md](references/privatelink.md) | Endpoint services, project endpoints, whitelist management |70| Jobs | [references/job.md](references/job.md) | Track async job status, wait for completion |71| Diagnose | [references/diagnose.md](references/diagnose.md) | Read-only health diagnosis for clusters and collections (slow, stuck, errors, quota) |7273## Quick-Start Workflow7475For new users, guide through setup in order:76771. Install CLI: `curl -fsSL https://raw.githubusercontent.com/zilliztech/zilliz-cli/master/install.sh | bash`782. Authenticate: user runs `zilliz login` in their terminal793. Verify: `zilliz auth status`804. List clusters: `zilliz cluster list`815. Set context: `zilliz context set --cluster-id <id>`826. Verify: `zilliz context current && zilliz collection list`8384## Common Workflows8586**Create collection and prepare for search:**87881. `zilliz collection create --name <name> --dimension <dim>` — create892. `zilliz index create --collection <name>` — index (AUTOINDEX recommended)903. `zilliz collection load --name <name>` — load into memory914. `zilliz vector search --collection <name> --data '[[...]]'` — search9293**Status overview** (read [references/monitoring.md](references/monitoring.md)):94951. `zilliz context current --output json`962. `zilliz cluster describe --cluster-id <id> --output json`973. `zilliz database list --output json`984. For each DB: `collection list`, `get-stats`, `get-load-state`, `index list`995. Present as formatted table100101## Async Operations102103These return immediately with a `jobId`; track with `job describe` (see [references/job.md](references/job.md)):104105| Operation | Poll command |106| -------------------------------- | -------------------------------------------------- |107| `cluster create` | `cluster describe --cluster-id <id>` until RUNNING |108| `backup create/export/restore-*` | `job describe --job-id <jid>` or `backup describe` |109| `import start` | `job describe --job-id <jid>` |110| Any async op with jobId | `job describe --job-id <jid> --wait` |111112## Safety Rules113114- **Confirm before destructive ops:** drop collection/database, delete cluster/backup, drop user/role115- **Sensitive commands in user's terminal:** `zilliz login`, `zilliz configure`, `zilliz billing bind-card`116- **Never expose credentials** in chat or command output