> 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/policy.md).

# sl policy

The `policy` command allows you to manage your custom policies.

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

To run: `sl policy [command options]`

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

| **Option**   | **Arguments**                                           | **Description**                                                                                                         |
| ------------ | ------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
| `assignment` |                                                         | Manage default policies assigned                                                                                        |
| `create`     | \`\[default                                             | no-dictionary] \[]\`                                                                                                    |
| `info`       | `[<policy-label>[:<policy-tag>]]`                       | Return policy metadata. If you include `--public`, Qwiet will fetch information about the policy from the public domain |
| `pull`       | `<policy-label>[:<policy-tag>] [<path-to-policy-file>]` | Pull a policy from the Qwiet repository                                                                                 |
| `push`       | `<policy-label>[:<policy-tag>] <path-to-policy-file>`   | Push a policy to the Qwiet repository                                                                                   |
| `validate`   | `<path-to-policy>`                                      | Validate the syntax/semantics of a policy                                                                               |

> Please note that `sl policy assignment` accepts additional options.

### Options for `sl policy assignment` <a href="#options-for-sl-policy-assignment" id="options-for-sl-policy-assignment"></a>

| **Option** | **Arguments**                   | **Parameters**               | **Description**                                                                                                                                                                                                                                              |
| ---------- | ------------------------------- | ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `list`     |                                 |                              | List all policy assignments                                                                                                                                                                                                                                  |
| `remove`   |                                 | `[--project <project-name>]` | Remove the default policy for your organization or project                                                                                                                                                                                                   |
| `set`      | `<policy-label>[:<policy-tag>]` | `[--project <project-name>]` | Specify the default policy used by Qwiet AI by Harness; the optional `--project` parameter allows you to set policies on a per-project basis. If the `--project` parameter is missing, Qwiet applies the policy globally to your organization's applications |
