Skip to main content

list-environment-variables

List environment variables with the Unkey API CLI
1 min read

List an environment's variables with cursor-based pagination.

Usage#

Flags#

--projectstringrequired#

Project identifier or slug.

--appstringrequired#

Application identifier or slug.

--environmentstringrequired#

Environment identifier or slug.

--limitinteger#

Maximum variables to return per page. The default is 100.

--cursorstring#

Pagination cursor from a previous response.

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 environment variables API reference.