sincecutoff.com
← all changes

heroku config:get --json distinguishes unset and empty config vars

Introduced 2026-02-10 · score 0.97

HOW TO USE IT

When checking whether an app config var is unset or set to an empty string, run `heroku config:get <KEY> --app <APP> --json`. The JSON output distinguishes unset (`null`) from empty string (`""`).

heroku config:get <KEY> --app <APP> --json

WHY THIS HELPS

When checking whether a Heroku app config var is unset or set to an empty string, request structured output.

BEFORE THIS CHANGE

Previously, `heroku config:get KEY` returned empty output for both unset and empty-string config vars, so they could not be distinguished.

REQUIREMENTS AND LIMITATIONS

  • Version: v10.17.0
  • KEY (required): Name of the config var key.
  • --app=<value> (required): App to run the command against.
  • --json: Output in JSON format; unset is `null` and an empty string is `""`.

FIRST-PARTY EVIDENCE

Check the installed version and the source before using it. Entry JSON

Report a problem with this card