Cli helper to help in IaC provisioning through the Console pipelines
The mipy cli makes use of a configmap file as this one:
{
"basePath": "string",
"templates": [
{
"type": "enum",
"id": "string",
"cicdProvider": "string", // for now only "azure" is supported
"cicdProviderBaseUrl": "string",
"azureOrganization": "string",
"azureProject": "string"
}
],
"logLevel": "string"
}
mipy version
mipy help
flags are:
- get
- set [PATH]
- --help
mipy config set mipy.json
flags are:
- --environment (-e): required
- --forward-env (-f): Forward environment to pipeline as ENVIRONMENT_TO_DEPLOY variable
- --cr-list
- --parallel
- --error-code
- --debug
- --dry-run
When using the --forward-env
(or -f
) flag, the environment value specified with --environment
will be passed as an environment variable named ENVIRONMENT_TO_DEPLOY
to the pipeline execution. This is useful when your pipeline needs to know which environment it's deploying to.
Example:
mipy launch -e production -f -u myuser -p mypassword
This will set ENVIRONMENT_TO_DEPLOY=production
as a variable in the pipeline run.