# Before you start – Set the Organization for the CLI tests

If you have several Organizations in your Snyk Account, before starting to use the CLI, you should define which Snyk Organization will be used for the test count when running tests via the CLI.

**Note**: You can find information about your test count in the Organization **Settings** page -> **Usage** tab -> **Test Usage** section -> **Snyk Code** field:

![](https://2533899886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MdwVZ6HOZriajCf5nXH%2Fuploads%2FLCcxNUlrcIDBzgKKHGiq%2Fsnyk-code-usage.png?alt=media\&token=e5d5a26b-6d6c-49ec-a138-6bae138f2cfe)

By default, the CLI will run tests under your **Preferred Organization**, as defined in your **Account settings:**

![](https://2533899886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MdwVZ6HOZriajCf5nXH%2Fuploads%2Flwp6o3zqVXB7IQBkISB7%2Fsnyk-pref-org.png?alt=media\&token=426caaa4-0d11-4ca1-9493-d3c39af66d32)

You can [change your **Preferred Organization**](https://docs.snyk.io/features/user-and-group-management/managing-groups-and-organizations/manage-snyk-organizations#setting-your-preferred-organization), or set another Organization for the CLI tests via the CLI.

When setting an Organization for the CLI tests you have two options:

* [Set a default Organization globally for all CLI tests](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-the-default-organization-for-all-cli-tests).
* [Set an Organization locally for a specific CLI test](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).

When setting an Organization for the CLI tests, both globally and locally, you can use either the organization ID or the Organization's internal name. You can [find these details on the **Settings** page of the required Organization on the Snyk Web UI](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).
