Skip to main content

list-environments

List environments with the Unkey API CLI
1 min read

List the environments configured for an app.

Usage#

Flags#

--projectstringrequired#

Project identifier or slug.

--appstringrequired#

Application identifier or slug.

Global Flags#

FlagTypeDescription
--root-keystringOverride root key ($UNKEY_ROOT_KEY)
--api-urlstringOverride API base URL (default: https://api.unkey.com)
--configstringPath to config file (default: ~/.unkey/config.toml)
--outputstringOutput format - use json for raw JSON
--bodystringSend this JSON string as the request body. You cannot combine it with request-building flags.

Examples#

See the List environments API reference.