This command is Experimental. To enable this command, run the apollo-cli configure
command and enable V2 experimental commands
.
Create a new Apollo Environment.
Copied!1
apollo-cli environment create [flags]
Flag | Use |
---|---|
--environment (string) | Environment ID prefix. A randomized suffix will be appended to create the final environmentID |
-h, --help | Show help menu for create |
--owner-team-rid (string) | RID for the team that should have ownership permissions for the new environment |
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 |