> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/sast-and-sca/cli/reference/auth.md).

# sl auth

The `auth` command authenticates the CLI with your Qwiet account and associates your applications with your organization.

## Usage <a href="#usage" id="usage"></a>

To run: `sl auth [command options]`

### Command options <a href="#command-options" id="command-options"></a>

For easy reuse in future analyses, you can store some command-related information as environment variables (we've provided the specific environment variable below). Note that the values for options set via environment variables override those set in a configuration file (which, in turn, are overridden by those specified via command-line flags).

| **Option**        | **Environment variable**         | **Description**                                                                                                                                |
| ----------------- | -------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
| `--token <token>` | `SHIFTLEFT_ACCESS_TOKEN=<token>` | The access token associated with the Qwiet account. You can obtain your access token in the [Dashboard](https://app.shiftleft.io/user/profile) |
| `--diagnostic`    | `SHIFTLEFT_DIAGNOSTIC=true`      | Allows applications to send diagnostic data back to the Qwiet and enables logging                                                              |
| `--no-diagnostic` | `SHIFTLEFT_NO_DIAGNOSTIC=true`   | **Default** Disables diagnostic data                                                                                                           |
