How qdrant/qcloud-cli works
qcloud is the official Qdrant Cloud CLI. Users configure credentials and an account context, then invoke commands to inspect or manage cloud resources; the Quick Start demonstrates cluster creation, description, and API-key creation. The graph preserves the documented management areas and a shared configuration/API layer. Edges are limited to relationships shown by excerpts or the README; unsampled command internals and their service calls are not asserted.
Main entry points: root.go Root command · cluster Cluster operations · space Serverless spaces · state.go Shared state
Components 21
CLI entry and configuration
- Executable entry
cmd/qcloud/main.go - Root command
internal/cli/root.go - Named contexts
internal/cmd/context - Configuration
internal/state/config/config.go
Cloud resource management
- Cluster operations
internal/cmd/cluster - Backup operations
internal/cmd/backup - Hybrid cloud
internal/cmd/hybrid - Providers and packages
internal/cmd/package/package.go - Cloud regions
internal/cmd/cloudregion - Inference models
internal/cmd/inference
Accounts and access
- Account management
internal/cmd/account - IAM management
internal/cmd/iam
Serverless operations
- Serverless spaces
internal/cmd/serverless/space - Space metrics
internal/cmd/serverless/space/metrics_usage.go - Space backups
internal/cmd/serverless/space/backup.go
Shared runtime
- Shell completion
internal/cmd/completion/completion.go - Output formatting
internal/cmd/output/output.go - Shared state
internal/state/state.go - gRPC API client
internal/qcloudapi/client.go
Other components
- CLI user
- Qdrant Cloud API
Connections 26
- CLI user → Executable entry: runs commands
README.md - Executable entry → Root command: creates command
cmd/qcloud/main.go - Root command → Named contexts: registers
internal/cli/root.go - Root command → Configuration: loads config
internal/cli/root.go - Root command → Cluster operations: registers
internal/cli/root.go - Root command → Backup operations: registers
internal/cli/root.go - Root command → Hybrid cloud: registers
internal/cli/root.go - Root command → Account management: registers
internal/cli/root.go - Root command → IAM management: registers
internal/cli/root.go - Root command → Serverless spaces: registers
internal/cli/root.go - Root command → Inference models: registers
internal/cli/root.go - Root command → Cloud regions: registers
internal/cli/root.go - Root command → Providers and packages: registers
internal/cli/root.go - Named contexts → Configuration: manages contexts
internal/cmd/context/context.go - Root command → Shared state: uses shared state
internal/cli/root.go - Shared state → Configuration: reads settings
internal/state/state.go - Shared state → gRPC API client: creates client
internal/state/state.go - gRPC API client → Qdrant Cloud API: connects to
README.md - Providers and packages → gRPC API client: requests packages
internal/cmd/package/package.go - CLI user → Cluster operations: creates cluster
README.md - CLI user → Cluster operations: describes cluster
README.md - CLI user → Cluster operations: creates cluster key
README.md - Serverless spaces → Space metrics: includes metrics
- Serverless spaces → Space backups: includes backups
- Cluster operations → Shell completion: uses completions
internal/cmd/cluster/scale.go - Space metrics → Output formatting: formats results
internal/cmd/serverless/space/metrics_usage.go