Skip to main content
Every command-line flag has a corresponding environment variable that you can set instead of the flag, either directly in your environment or in a dedicated configuration file. See config-path description in Global Flags and Variables and Set environment variables for details. To set a command-line flag on the endorctl scan command you can specify the flag with a leading -- for full flag names or a leading - for short flag aliases. If applicable, place input arguments after the flag and separate them with either a blank space or a = character. For example, to set the output-type specify --output-type json or -o=json. If the input argument is a list, use a , character to separate list elements, for example --languages=go,python.

Global flags and variables

The following Global flags apply to any endorctl command.

Set endorctl environment variables

To set an environment variable run the following command.
export <environment variable>=<value>
For example to set the environment variable ENDOR_TOKEN to “mytoken” run the following command.
export ENDOR_TOKEN=mytoken