Skip to content

CLI Commands

uptime login

Authenticate the CLI with your Uptime Scheduler account.

Terminal window
uptimectl login

Opens a browser-based approval flow. Once approved, credentials are stored in ~/.uptime/credentials.json and reused automatically. Sessions expire after 90 days — re-run uptimectl login to refresh.


uptime resources

Open an interactive table of all discovered resources across your connected AWS accounts.

Terminal window
uptimectl resources

Columns

ColumnDescription
Resource IDAWS resource ID or ARN
TypeEC2, RDS, ECS, NAT, etc.
EnvValue of the uptime:env tag, or if unset
RegionAWS region
Full CostAlways-on monthly cost (rate × 730 hrs)
Sched. CostMonthly cost when following the assigned schedule
StatusActive or Idle
Last Seen ActiveTimestamp of the last recorded state change

Keys

KeyAction
/ or j / kNavigate rows
EnterOpen resource detail panel
q / EscQuit

uptime report

Print a cost savings summary grouped by resource type, then open a browser-based report.

Terminal window
uptimectl report # print summary to terminal
uptimectl report --open # print summary and open web report

Output includes

  • Total resources scanned
  • Number of idle resources
  • Potential monthly savings if schedules are followed
  • Breakdown table by resource type

uptime schedules

List all schedules and the resources assigned to them.

Terminal window
uptimectl schedules

Displays each unique schedule (e.g. 9-17 mon-fri) alongside the resources it controls, their current state, region, and timezone.


uptimectl start

Start resources immediately, bypassing the schedule.

Terminal window
# Start all resources in one or more environments
uptimectl start --env production
uptimectl start --env staging --env dev
# Start a specific resource by ID
uptimectl start --resource i-0c9e318a81b68f747

Flags

FlagDescription
--env <name>Environment name (matches the uptime:env tag). Repeatable.
--resource <id>AWS resource ID or ARN

uptime stop

Stop resources immediately, bypassing the schedule.

Terminal window
# Stop all resources in an environment
uptimectl stop --env staging
# Stop a specific resource
uptimectl stop --resource i-0c9e318a81b68f747

Flags

FlagDescription
--env <name>Environment name (matches the uptime:env tag). Repeatable.
--resource <id>AWS resource ID or ARN

Global flags

FlagDescription
--versionPrint the CLI version and exit
--helpShow help for any command