This command is Experimental. To enable this command, run the apollo-cli configure
command and enable V2 experimental commands
.
Get a single Environment.
Copied!1
apollo-cli environment get [flags]
Flag | Use |
---|---|
--environment (string) | Environment name |
-h, --help | Show help for get |
Flag | Use |
---|---|
--apollo-token (string) | Bearer Token to use for authenticated endpoints |
--apollo-token-provider (string) | Specifies how the Apollo Bearer Token used for authenticated Apollo endpoint calls is provided. Valid values are "auto", "static", or "service-user". If "auto" is specified, Apollo will use either the Bearer Token provided by "apollo-token" or a Bearer Token obtained by using "apollo-client-id" and "apollo-client-secret" to generate a token depending on which set of values are set (but will error if both values are set). If "static" is specified, the token specified using "apollo-token" is used. If "service-user" is specified, the token obtained by using "apollo-client-id" and "apollo-client-secret" to generate a token is used. The default value is "auto". |
--apollo-client-id (string) | Client ID to use for generating Bearer Token |
--apollo-client-secret (string) | Client secret to use for generating Bearer Token |
--apollo-url (string) | Base URL for Apollo that is used to derive the API endpoints |