How stackitcloud/stackit-cli works
STACKIT CLI is a Cobra-based command-line client for managing STACKIT cloud resources and services. A typical workflow starts with a user invoking a command; the CLI initializes configuration and shared command parameters, routes the request to a service command, configures an authenticated API client, and communicates with STACKIT. The tree and README show broad resource-management capabilities, including servers, networking, databases, DNS, Kubernetes, and object storage. Some command implementations were not sampled, so subsystem coverage reflects documented capabilities; only directly supported wiring is shown.
Main entry points: root.go Command router · generic_client.go API client setup · server Server and IaaS · postgresflex Managed databases
Components 14
CLI entry and settings
- Process setup
main.go - Command router
internal/cmd/root.go - CLI configuration
internal/cmd/config
Identity and shared clients
- Authentication commands
internal/cmd/auth/activate-service-account/activate_service_account.go - Credential storage
internal/pkg/auth/storage.go - API client setup
internal/pkg/generic-client/generic_client.go
Infrastructure management
- Server and IaaS
internal/cmd/server - Network resources
internal/cmd/network-area - Kubernetes engine
internal/cmd/ske
Cloud services
- DNS resources
internal/cmd/dns - Managed databases
internal/cmd/postgresflex - Object storage
internal/cmd/object-storage
Other components
- CLI user
- STACKIT services
Connections 21
- CLI user → Process setup: runs command
- Process setup → Command router: executes CLI
main.go - Command router → CLI configuration: routes commands
internal/cmd/root.go - Command router → Authentication commands: routes commands
internal/cmd/root.go - Command router → Server and IaaS: routes commands
internal/cmd/root.go - Command router → Network resources: routes commands
internal/cmd/root.go - Command router → Kubernetes engine: routes commands
internal/cmd/root.go - Command router → DNS resources: routes commands
internal/cmd/root.go - Command router → Managed databases: routes commands
internal/cmd/root.go - Command router → Object storage: routes commands
internal/cmd/root.go - Authentication commands → Credential storage: stores credentials
- Server and IaaS → API client setup: configures API
- Managed databases → API client setup: configures API
- API client setup → Credential storage: loads credentials
- API client setup → STACKIT services: configures SDK access
- Server and IaaS → STACKIT services: manages resources
- Network resources → STACKIT services: manages resources
- Kubernetes engine → STACKIT services: manages clusters
- DNS resources → STACKIT services: manages DNS
- Managed databases → STACKIT services: manages databases
- Object storage → STACKIT services: manages storage