When running commands such as snyk 'monitor' or 'test' on the CLI you should specify the organization you wish to use.
When you run commands on the CLI such as snyk monitor
and snyk test
, we will use your default organization which was created when you first registered for an account. If you want commands to run against a different organization, there are two ways to specify it:
Globally
You can run snyk config set org=orgname
. Note: orgname
should match the slug name as displayed in the URL of your org in the Snyk UI: https://snyk.io/org/[orgname]
Individually
If you would like to override this global configuration for individual runs, specify the org like so: snyk monitor --org=orgname
, snyk test --org=orgname
etc.