Setting an Organization for a specific CLI test

You can run a specific CLI test under a different Organization than the default. When using this option, the specified Organization will override the default Organization in a specific CLI test. You can use either the ID or internal name of the organization to run this command.

To set an Organization for a specific CLI test:

  • In the terminal, after the test command enter:

--org=<ORG_ID_or_ORG_INTERNAL_NAME>

For example:

To set the Snyk Test Org as the Organization for a specific CLI test, we use the Organization internal name and enter:

snyk code test --org=snyk-xxxx-xxx 

On the results of this specific run, the internal name of the Snyk Test Org Organization appears:

Last updated

Was this helpful?

#4707: More info: Update pricing plans page

Change request updated