You can use environment variables in your manifest for entire or partial field values. The Forge CLI reads these values from the process environment when executing any command.
An environment variable must first be declared in environment.variables
before it can be used elsewhere in the manifest file:
1 2environment: variables: - VARIABLE - VARIABLE2
Property | Type | Required | Description |
---|---|---|---|
variables | Array<string> | No |
A list of strings, each matching the regex |
First, export your APP_ID
as an environment variable:
1 2export APP_ID=406d303d-0393-4ec4-ad7c-1435be94583a
Afterwards, you can specify it in your manifest file:
1 2app: id: "ari:cloud:ecosystem::app/${APP_ID}" environment: variables: - APP_ID
Forge CLI commands that read the manifest will convert the variable APP_ID
as follows:
1 2app: id: "ari:cloud:ecosystem::app/406d303d-0393-4ec4-ad7c-1435be94583a" environment: variables: - APP_ID
Rate this page: