# Setting an Organization for a specific CLI test

You can run a specific CLI test under a different Organization than the default. When using this option, the specified Organization will override the default Organization in a specific CLI test. You can use either the [ID or internal name of the organization](https://docs.snyk.io/~/changes/m2hJeDrttXy2N83AnRjM/scan-application-code/snyk-code/cli-for-snyk-code/before-you-start-set-the-organization-for-the-cli-tests/finding-the-snyk-id-and-internal-name-of-an-organization) to run this command.

**To set an Organization for a specific CLI test:**

* In the terminal, after the `test` command enter:

```
--org=<ORG_ID_or_ORG_INTERNAL_NAME>
```

For example:

To set the Snyk Test Org as the Organization for a specific CLI test, we use the Organization internal name and enter:

```
snyk code test --org=snyk-xxxx-xxx 
```

![](https://2533899886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MdwVZ6HOZriajCf5nXH%2Fuploads%2F9fhIlMgqFqmtMu2r8sl3%2FSnyk%20Code%20-%20CLI%20-%20Organization%20-%20Specific%20test%20Settings%20-%20command%20-%202.png?alt=media\&token=c29fdffb-d081-482b-80da-68ed89edbe44)

On the results of this specific run, the internal name of the Snyk Test Org Organization appears:

![](https://2533899886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MdwVZ6HOZriajCf5nXH%2Fuploads%2FcEikBGvBvFMmfVfsj8BL%2FSnyk%20Code%20-%20CLI%20-%20Organization%20-%20Specific%20test%20Settings%20-%20Results%20-%202.png?alt=media\&token=61b182a5-0560-468b-b6be-51d40af681e2)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.snyk.io/~/changes/m2hJeDrttXy2N83AnRjM/scan-application-code/snyk-code/cli-for-snyk-code/before-you-start-set-the-organization-for-the-cli-tests/setting-an-organization-for-a-specific-cli-test.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
