Skip to main content

StatusCake CLI

cakectl is the StatusCake command-line tool. It creates, inspects and manages your monitoring from the terminal, so checks can be scripted, reviewed in a pull request or fixed at 3am without opening a browser. It works in the way that kubectl does for Kubernetes or gcloud does for Google Cloud: each kind of resource is a command, and each command has the same handful of verbs.

Terminal
$ cakectl uptime list --status down
$ cakectl uptime describe 123
$ cakectl uptime update 123 --paused
info

cakectl is available for Linux, macOS, FreeBSD and Windows.

What it is for​

  • Answering questions quickly. Which checks are down? When did this one last fail? Is a maintenance window active?
  • Making changes in a hurry. Pause a check, silence a tag, or change who is alerted, with one command.
  • Scripting and automation. Output can be printed as JSON or YAML, and every command that changes something can read its settings from a file, so shell scripts and CI jobs can use it without parsing text.
  • Moving configuration around. Describe a resource as YAML, edit it, and apply it back.

Choosing between tools​

cakectl manages monitoring imperatively: you tell it what to do. If you want monitoring to be described declaratively and kept in version control, with changes planned and reviewed before they are applied, use the Terraform provider instead. If you are writing software that manages monitoring, use an SDK.

Commands​

Resources are grouped by what they do.

GroupCommandManages
MonitoringuptimeUptime checks.
pagespeedPagespeed checks.
sslSSL certificate checks.
heartbeatHeartbeat checks.
Alertingcontact-groupWho is alerted.
maintenance-windowWhen alerts are silenced.
ReferencelocationsThe places checks can run from.
SetupauthSaving your API token.
configViewing and changing settings.

Each resource has the verbs list, describe, create, update and delete. Uptime and pagespeed checks also have history, and uptime checks have periods and alerts too. Run cakectl --help to see every command, and cakectl <command> --help for the flags and examples of any one of them.

How these guides are organised​

GuideWhat it covers
InstallationGetting cakectl onto your machine.
AuthenticationGiving it an API token.
ConfigurationSettings, the config file and shell completion.
Managing ResourcesCreating, updating and deleting, with flags or files.
Uptime ChecksEvery kind of uptime check, with examples.
Other ChecksPagespeed, SSL and heartbeat checks.
AlertingContact groups and maintenance windows.
Reading ResultsHistory, downtime and alerts.
ScriptingOutput formats, automation and CI.
TroubleshootingFixing common problems.

Next Steps​

Install cakectl.