Command overview

This documentation is part of the Manage services with the CLI guide. You can view the complete guide here: Install and use the Stackhero CLI to manage your stacks and services from the command line, scripts, CI, and AI agents.

To see the full list of available commands, run stackhero --help. For details about a specific command, try stackhero COMMAND --help.

Some commonly used commands include:

  • Organizations: organizations-list
  • Stacks: stacks-list (add --organization to show the stacks of a specific organization), stack-create, stack-rename, stack-delete
  • Services: services-list (add --stack to show the services of a stack), service-get, service-add, service-wait-for, service-logs, service-metrics, service-rename, service-restart, service-delete
  • Configuration: service-configuration-get, service-configuration-set, service-configuration-example
  • Firewall: service-firewall-get, service-firewall-set
  • Version updates: service-updates-list, service-update
  • Backups: service-backups-list, service-backup-rollback
  • Store: services-store-list, instances-store-list, regions-list
  • Upgrades: service-upgrade-instances-store-list, service-upgrade-instance
  • Account: login, logout, whoami
  • Maintenance: self-update

Commands that restart, update, restore, or delete something require confirmation. In scripts, add --confirm to skip the prompt.