COS target add
Use snyk cos target add to create a target from a configuration file.
Usage
snyk cos target add [<OPTIONS>]
Description
The snyk cos target add command creates a target from a YAML configuration file.
For a sample configuration file you can copy and adapt, visit COS target template
For a list of related commands, visit the Snyk COS help, snyk cos --help.
Exit codes
Possible exit codes and their meaning:
0: target created successfully 2: failure, primary URL unreachable 3: failure, configuration file not found
Configure the Snyk CLI
You can use environment variables to configure the Snyk CLI and set variables to connect to the Snyk API. For more information, visit Configure the Snyk CLI.
Debug
Use the -d option to output the debug logs.
Options
--config=<CONFIG>
Required. Specify the path to the target YAML configuration file.
Example:
Last updated
Was this helpful?

