When using the CLI to monitor and test your projects, you may find that a project where you have executed the snyk monitor command is appearing in the wrong organization. It usually means that your CLI tool has been configured to default into a particular organization, so you may need to work around this issue in one of a few ways:
Using the --org argument
snyk monitor accepts the --org=name argument to allow you to indicate which org to send your project.
Note: orgname
should match the name as displayed in the URL of your org in the snyk UI: https://app.snyk.io/org/[orgname].
Read more here: https://snyk.io/docs/cli-monitor/
Changing the default Org where your projects will appear
- If you have only your default organisation, any projects you add or update by running
snyk wizard
orsnyk monitor
will be automatically associated with your default organisation. - If you have more than one organisation, you can configure which organisation newly added projects should be associated with by running
snyk config set org=orgname
.
Note: orgname
should match the name as displayed in the URL of your org in the snyk UI: https://app.snyk.io/org/[orgname].
Read more here: https://snyk.io/docs/orgs/