Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Heroku CLI

$ heroku Official High Risk
Heroku · Cloud & Infra · ISC · macos / linux / windows

Heroku CLI (heroku) manages Heroku apps, dynos, config vars, add-ons, and Postgres databases via oclif commands, supporting --json on read commands, -a (--app) scoping, and mandatory --confirm <app> validation on destructive operations.

FCRS-1.0 Score
82 /100
Good
Medium Confidence
Zero-Friction Install
brew install heroku/brew/heroku
CLI vs MCP Decision CLI Preferred vs MCP

heroku is well-known to LLMs and offers --json across app/dyno/addon reads with strong --confirm <app> safety.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 20 / 25

Consistent --json flag across info/list commands and predictable colon-delimited oclif subcommands.

  • Supports --json across apps:info, ps, releases, and addons
Trust & Safety 20 / 25

Requires typing or passing --confirm <app> to execute destructive commands like apps:destroy or pg:reset, preventing accidental wipes.

  • Mandatory --confirm <app> guard on destructive operations
Setup & Portability 13 / 15

Available via Homebrew and npm on macOS, Linux, and Windows, though Node/oclif runtime startup is slightly slower.

  • Homebrew heroku/brew/heroku and npm heroku packages
Utility & Efficiency 12 / 15

Comprehensive PaaS control including releases, rollback, config vars, and Postgres.

  • Full Heroku platform management in one CLI
Maintenance & Lineage 9 / 10

Official heroku/cli repository maintained by Heroku (Salesforce).

  • Official heroku/cli under ISC license
Docs & Verifiability 8 / 10

Thorough Heroku Dev Center command reference and --help docs.

  • Complete Dev Center CLI documentation

Security, Auth & Guardrails

Auth Modes
OAuth Browser Env API Key Config File
Credential Storage

Stores OAuth credentials in ~/.netrc (or OS keychain via heroku login), or authenticates headlessly via HEROKU_API_KEY.

Side Effects
Read-Only Local Write Remote Write Destructive Billing Impact
Cost & Quotas

CLI is free (ISC); paid Heroku dynos and add-ons incur monthly usage billing.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# Heroku CLI Agent Rules
- Always pass `-a <app>` explicitly rather than relying on git remote inference.
- Pass `--json` on `apps`, `ps`, `releases`, and `addons` read calls.
- Never pass `--confirm <app>` on `apps:destroy` or `pg:reset` without human approval.

Agent-Ready Command Recipes

Safe Read-Only Queries

Inspect Heroku app metadata as JSON
heroku apps:info -a my-app --json

Returns app region, stack, dynos, and buildpacks as structured JSON.

List running dynos in JSON
heroku ps -a my-app --json

Inspects dyno process types, sizes, and states.

Controlled Writes & Previews

Scale a web dyno explicitly
heroku ps:scale web=1 -a my-app

Targets a named app with -a and sets explicit dyno concurrency.

Strengths for Agents

  • + --confirm <app> acts as a strong guardrail against accidental app or database destruction.
  • + Consistent --json support across inspection subcommands.
  • + Supports headless CI/agent authentication via HEROKU_API_KEY.

Caveats & Pitfalls

  • ! Node.js/oclif startup latency and auto-update checks can add overhead.
  • ! Lacks a dry-run mode for config changes or scaling operations.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI