This is an open-source community project. This code is developed in the open with input from the community through issues and PRs.
- As a community project, all requests, feedback, and issues are managed through Github issues.
- Snyk techincal support will not handle cases related to this tool and will redirect you back to this process
- Pull Requests are encouraged to submit changes, which the author will review.
- This repository is not affiliated with Snyk and its a community side project. Any issues, please look for the author of this repository.
snyk-rest-cli helps you to call the REST API and provide you functionalities that the REST API doesn't provide.
npm i snyk-rest-cli -g
Check if you have install correctly by running:
snyk-rest-cli -v
- GET all organizations in a group
- GET all integrations for all organizations in a group.
- GET all issue count for all organizations in a group.
- Delete empty targets
- Every command requires these 2 flag --snyk_token=<
SnykToken/ServiceToken
> and --api_version=<The requested version of the endpoint to process the request
> - Look at the available commands below and add the required flags for the command to work
Give you the list of commands available for this CLI
Note: The help on the docs site is the same as the --help
in the CLI.
Give you the version of the CLI
Get all orgs for the specify group.
--group_id
: Your group id
Get all integrations for all orgs in the specified group.
--group_id
: Your group id
--source_types
: if you want to check if all of the orgs in a group have integrated a certain integration, use this flag. (can only specify 1 type of integration!)
Get all targets in a group, check if the target is empty, if true, delete it.
--group_id
: Your group id
Get all organizations in a group and check their snyk code settings, set all to enable / disable
--group_id
: Your group id--sast_enabled
: Enable / Disable Snyk Code
Get all issues counts for all organizations in a group for all severity.
--group_id
: Your group id