Skip to main content

Synopsis

List environments for an org. By default, all environments are returned in one response. When —page or —page-limit is set, the results are paginated and the response includes pagination metadata. The list can be filtered by name, type, space and tags, and sorted with —sort and —sort-direction.

Flags

Flags inherited from parent commands

JSON output

With --output json, this command prints the response of the List environments API operation as the server returned it. The shape follows the server’s published API spec, not the CLI version.

Live Example

To view a live example of ‘kosli list environments’ you can run the command below (for the cyber-dojo demo organization).

Examples Use Cases

These examples all assume that the flags --api-token, --org, --host, (and --flow, --trail when required), are set/provided.
Last modified on December 3, 2026