About
A variable file is a configuration file that stores environment variables in a yaml format.
Example
Below is a simple example of configuration that define the variable:
- named log-level
- with the value warning
log-level: "warning"
Location and specification
- user: The user variable file is a variable file that stores variable for the logged operating system user.
- project: The project variable file used in a project run.
- command line: you can specify a command line variable file at the command line.
- dotenv: With the dotenv variable file you can add project variable that are not in your source version control system.
Management
Manually
You can edit/create the files manually. If you want to encrypt it manually, see vault encrypt
Command
You can add, remove and list a variable via the following command:
The file edited is the file given with the --vars option.
By default, the file edited is:
- if in a project: the project variable file
- if not: the user file