When you have only your default organization, any projects you add or update by running snyk test
or snyk monitor
are created and updated under your default organization.
If a project for which you have run the Snyk CLI test
or monitor
command appears in the wrong organization, check to see if the CLI is configured with a default organization.
You can override or change the default organization when you run snyk test
or snyk monitor
.
Use --org
to override the default
The snyk test
and snyk monitor
commands support the option --org=<ORG_ID>
.
The <ORG_ID>
is the current preferred organization in your Account settings, the name displayed in the URL of your org in the snyk UI: https://app.snyk.io/org/[orgname.
For more information, see the snyk test command help or the snyk monitor command help.
Change the default organization
You can also change the default organization using the command snyk config set org=orgname
.
This ensures all newly tested and monitored projects are created under the organization specified.
More information
For more information see the article How to select the organization to use in the CLI.