config-path description in Global flags 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
The following global flags apply to anyendorctl command. Each flag has a corresponding environment variable that you can use in place of the flag.
Environment variables that affect scan behavior
The following environment variables configure scan behavior. They do not have corresponding command-line flags. Set them in your environment, in the scan profile, or in the config file before runningendorctl. You can set them in a scan profile with additional_environment_variables so they apply automatically to every scan that uses that profile. See Configure automated scan parameters for details.