Skip to content

CLI Commands

uptime login

Authenticate the CLI with your Uptime Scheduler account.

Terminal window
uptime 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 uptime login to refresh.


uptime resources

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

Terminal window
uptime 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
uptime report # print summary to terminal
uptime 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
uptime schedules

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


uptime start

Start resources immediately, bypassing the schedule.

Terminal window
# Start all resources in one or more environments
uptime start --env production
uptime start --env staging --env dev
# Start a specific resource by ID
uptime 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
uptime stop --env staging
# Stop a specific resource
uptime 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