Manage services from the CLI
List, inspect, and retire the databases and caches running on your servers — straight from the terminal.
Manage services from the CLI
Services are the databases and caches running on your servers — MySQL, PostgreSQL, MariaDB, Valkey, and the like. You can list them, inspect one in detail, and retire one you no longer need, all from the terminal.
List the services on a server
strackt service:list --server stk-abc12345
You'll see each service on that server with its type and current state. Narrow the list to one kind with --type:
strackt service:list --server stk-abc12345 --type valkey
Listing is per-server, so --server is required. Run it in a script or pass --json to get machine-readable output.
Inspect one service
strackt service:get --service 746e5d20-710a-4da2-b71f-52f83e14f001
This shows the full picture: the service's state, which server it's on, what's currently using it, the data it holds, and — if it can't be removed yet — exactly what's standing in the way. Reach for this when a service looks stuck, or before you retire one.
If you leave off --service in an interactive terminal, the CLI walks you through picking a server and then the service. In scripts, pass --service directly.
Retire a service
strackt service:retire --service 746e5d20-710a-4da2-b71f-52f83e14f001
Retiring removes the service from its server. It's destructive, so in a terminal the CLI asks you to confirm first. Skip the prompt when you're scripting:
strackt service:retire --service 746e5d20-710a-4da2-b71f-52f83e14f001 --force
A service is only retired once it is safe to remove: nothing depends on it and no work is in flight. If retirement is refused, inspect the blockers with strackt service:get --service <service>.
Retirement runs in the background. The command returns as soon as it's accepted and the service moves to retiring. The retire answers with an operation; follow it with strackt op:watch <operation>, or add --wait to the retire command. Use service:get to inspect the service.
What you need
- A token with service permission. If your token was created before service management was available, you'll get a permission error — create a fresh one with
strackt auth:tokenand try again. - The server's identifier for
service:list(for examplestk-abc12345), or a service's id forservice:get/service:retire.service:listgives you the ids.
Good to know
- Listing is server-scoped. There's no single fleet-wide list yet — point
service:listat one server at a time. - Retirement is asynchronous.
service:retirehands the work off and returns; follow the returned operation withstrackt op:watch <operation>to see how it ends.
Was this helpful?