Skip to main content

ionic-cloud environment unset

[ionic-cloud, environment, unset]

Remove key/value pairs from an existing environment in Appflow

ionic-cloud environment unset [flags]

Examples

ionic-cloud environment unset --app-id=a1234bc --name="My Env" --env="VERSION" --env="ENVIRONMENT" --secret="KEY"

Flags

NameTypeDefaultDescription
--app-id [required]stringAppflow app id
--name [required]stringAppflow environment name
--envstring[][]Name of the variable to remove
--secretstring[][]Name of the secret to remove

Global Flags

NameTypeDefaultDescription
-h, --helpbooleanfalsePrint help information for command
--configstringIonic Cloud config file (.ionic-cloud.yaml by default)
--jsonbooleanfalseFor commands with output, shortcut to print as JSON
--outputstring"text"For commands with output, print as [json] or human readable [text]
--tokenstringIonic authorization token

Outputs

NameTypeDescription
namestringThe name of an Environment you've created in Appflow.
variables (optional)object[]The combined list of all environment variables used for a build.
.namestringThe key of the environment variable.
.valuestringThe value of the environment variable.
secrets (optional)object[]The combined list of all environment secrets used for a build. The key values are not downloaded; the key names are just displayed for reference.
.namestringThe key of the secret.
{
"name": "Test Environment",
"variables": [
{
"name": "myvar",
"value": "myvalue"
}
],
"secrets": [
{
"name": "mysecret"
}
]
}