For the complete documentation index, see llms.txt. This page is also available as Markdown.

COS target list

Use snyk cos target list to list all targets.

Usage

snyk cos target list [<OPTIONS>]

Description

The snyk cos target list command lists all targets.

For a list of related commands, visit the Snyk COS help, snyk cos --help.

Exit codes

Possible exit codes and their meaning:

0: success, targets retrieved 3: failure, invalid arguments

Configure the Snyk CLI

You can use environment variables to configure the Snyk CLI and set variables for connecting with the Snyk API. For more information, visit Configure the Snyk CLI.

Debug

Use the -d option to output the debug logs.

Options

--output=<FORMAT>, -o <FORMAT>

Specify the output format.

Allowed values: table, json, yaml, ids

Default: table

Example:

Last updated

Was this helpful?