Commands
Complete CLI command reference for xcsh.
Overview
Section titled “Overview”xcsh provides commands organized by Cloud API domains. Each domain contains operations for managing specific resource types.
Command Syntax
Section titled “Command Syntax”xcsh <domain> <operation> <resource-type> [name] [flags]Common Operations
Section titled “Common Operations”| Operation | Description |
|---|---|
list | List all resources of a type |
get | Get details for a specific resource |
create | Create a new resource from file |
replace | Replace/update an existing resource |
delete | Delete a resource |
status | Get resource status |
patch | Partially update a resource |
add-labels | Add labels to a resource |
remove-labels | Remove labels from a resource |
Global Flags
Section titled “Global Flags”| Flag | Short | Description |
|---|---|---|
--namespace | -ns | Target namespace |
--output | -o | Output format (json, yaml, table, text, tsv) |
--file | -f | Input file path (YAML/JSON) |
--help | -h | Show help for a command |
Domains
Section titled “Domains”xcsh supports 38+ API domains including:
virtual— HTTP/TCP load balancers, origin pools, routesdns— DNS zones and recordswaf— Web Application Firewall policiescloud_infrastructure— AWS/Azure/GCP cloud sitessites— Site management and statustenant_and_identity— Namespaces, users, rolesai_services— AI assistant queries and chat- And many more
Examples
Section titled “Examples”# List HTTP load balancersxcsh virtual list http_loadbalancer -ns default
# Get resource details as YAMLxcsh virtual get http_loadbalancer my-lb -ns default -o yaml
# Create from filexcsh virtual create http_loadbalancer -ns default -f lb.yaml
# Delete a resourcexcsh virtual delete http_loadbalancer my-lb -ns default