Skip to content

Command Reference

shark-cli organises commands by OpenStack service. Every command supports --help for inline documentation.

shark --help              # List all command groups
shark server --help       # List all server sub-commands
shark server create --help  # Detailed help for a specific command

Command Groups

Group Commands Description
server 28 Compute instances — full lifecycle
flavor 1 List available flavors
image 11 Glance image management
network 21 Networks, subnets, ports & routers
keypair 5 SSH key pair management
volume 13 Block storage volumes & snapshots
security-group 7 Security groups & rules
floating-ip 6 Floating IP allocation & association
loadbalancer 18 Load balancers, listeners, pools, members & health monitors
secret 8 Secrets & containers (Barbican)
cluster 10 Kubernetes clusters & templates (Magnum)
metric 8 Metrics, measures & resources (Gnocchi)
catalog 1 Service endpoint discovery

Common Patterns

Confirmation prompts

Destructive commands (delete, remove) ask for confirmation. Skip with -y:

shark server delete <id> -y
shark loadbalancer delete <id> --cascade -y

Output format

All commands output rich, coloured tables. Pipe to less -R for paging:

shark server list | less -R