diff --git a/developer-tools/snyk-cli/commands/code-test.md b/developer-tools/snyk-cli/commands/code-test.md index 905356a65c56..b6b77afeef7a 100644 --- a/developer-tools/snyk-cli/commands/code-test.md +++ b/developer-tools/snyk-cli/commands/code-test.md @@ -63,6 +63,18 @@ Example of setting to the latest Git tag: `snyk code test --report --target-reference="$(git describe --tags --abbrev=0)"` +### `--project-tags=[,]...>` + +This can be used in combination with the `--report` option. + +Set the project tags to one or more values (comma-separated key value pairs with an "=" separator). + +Example: `--project-tags=department=finance,team=alpha` + +To clear the project tags set `--project-tags=` + +For more information including allowable characters see [Project tags](https://docs.snyk.io/snyk-platform-administration/snyk-projects/project-tags) + ### `--remote-repo-url=` Set or override the remote URL for the repository. diff --git a/docs/developer-tools/snyk-cli/commands/code-test.md b/docs/developer-tools/snyk-cli/commands/code-test.md index 905356a65c56..b6b77afeef7a 100644 --- a/docs/developer-tools/snyk-cli/commands/code-test.md +++ b/docs/developer-tools/snyk-cli/commands/code-test.md @@ -63,6 +63,18 @@ Example of setting to the latest Git tag: `snyk code test --report --target-reference="$(git describe --tags --abbrev=0)"` +### `--project-tags=[,]...>` + +This can be used in combination with the `--report` option. + +Set the project tags to one or more values (comma-separated key value pairs with an "=" separator). + +Example: `--project-tags=department=finance,team=alpha` + +To clear the project tags set `--project-tags=` + +For more information including allowable characters see [Project tags](https://docs.snyk.io/snyk-platform-administration/snyk-projects/project-tags) + ### `--remote-repo-url=` Set or override the remote URL for the repository.