Skip to content

Commands

Complete CLI command reference for xcsh.

xcsh provides commands organized by Cloud API domains. Each domain contains operations for managing specific resource types.

Terminal window
xcsh <domain> <operation> <resource-type> [name] [flags]
OperationDescription
listList all resources of a type
getGet details for a specific resource
createCreate a new resource from file
replaceReplace/update an existing resource
deleteDelete a resource
statusGet resource status
patchPartially update a resource
add-labelsAdd labels to a resource
remove-labelsRemove labels from a resource
FlagShortDescription
--namespace-nsTarget namespace
--output-oOutput format (json, yaml, table, text, tsv)
--file-fInput file path (YAML/JSON)
--help-hShow help for a command

xcsh supports 38+ API domains including:

  • virtual — HTTP/TCP load balancers, origin pools, routes
  • dns — DNS zones and records
  • waf — Web Application Firewall policies
  • cloud_infrastructure — AWS/Azure/GCP cloud sites
  • sites — Site management and status
  • tenant_and_identity — Namespaces, users, roles
  • ai_services — AI assistant queries and chat
  • And many more
Terminal window
# List HTTP load balancers
xcsh virtual list http_loadbalancer -ns default
# Get resource details as YAML
xcsh virtual get http_loadbalancer my-lb -ns default -o yaml
# Create from file
xcsh virtual create http_loadbalancer -ns default -f lb.yaml
# Delete a resource
xcsh virtual delete http_loadbalancer my-lb -ns default