From 3e26aa940e110e3c4daf61cd36b6fa4848283980 Mon Sep 17 00:00:00 2001 From: Aram Petrosyan Date: Thu, 4 Jun 2026 14:10:32 +0100 Subject: [PATCH] docs(cli): document --project-tags for snyk code test Adds a `--project-tags` option section to the `snyk code test` command reference, matching the wording already used for `snyk monitor`, `snyk container monitor`, and `snyk iac test`. The flag is implemented in the CLI (wired through code-client-go) but was not yet documented for `snyk code test`. The CLI repo's help/cli-commands content is synced from this user-docs source, so this change keeps both in sync. --- developer-tools/snyk-cli/commands/code-test.md | 12 ++++++++++++ docs/developer-tools/snyk-cli/commands/code-test.md | 12 ++++++++++++ 2 files changed, 24 insertions(+) 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.