Before you start – Set the Organization for the CLI tests

If you have several Organizations in your Snyk Account, before starting to use the CLI, you should define which Snyk Organization will be used for the test count when running tests via the CLI.

Note: You can find information about your test count in the Organization Settings page -> Usage tab -> Test Usage section -> Snyk Code field:

By default, the CLI will run tests under your Preferred Organization, as defined in your Account settings:

You can change your Preferred Organization, or set another Organization for the CLI tests via the CLI.

When setting an Organization for the CLI tests you have two options:

When setting an Organization for the CLI tests, both globally and locally, you can use either the organization ID or the Organization's internal name. You can find these details on the Settings page of the required Organization on the Snyk Web UI.

Last updated

Was this helpful?

#4580: CLI: help, Ignore - support ticket 49463-add Iac examples

Change request updated