From 32bc25a7dfe1b2dac51df7d1e2a2e16b03788799 Mon Sep 17 00:00:00 2001 From: Aram Petrosyan Date: Thu, 4 Jun 2026 12:22:34 +0100 Subject: [PATCH] docs(cli): document --project-tags for snyk code test Adds a `--project-tags` option section to the `snyk code test` help documentation in help/cli-commands/code-test.md, matching the wording and structure already used in iac-test.md, monitor.md, and container-monitor.md. The flag is implemented in code-client-go and is wired into the Code workflow, but was not yet surfaced in `snyk code test --help` or the CLI command docs. Help is rendered directly from this markdown file, so no other source changes are required. --- help/cli-commands/code-test.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/help/cli-commands/code-test.md b/help/cli-commands/code-test.md index 4dc5b21891..38ba06487f 100644 --- a/help/cli-commands/code-test.md +++ b/help/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.