> ## Documentation Index
> Fetch the complete documentation index at: https://docs.qlty.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# Getting Started with the Qlty CLI

### 1. Install the CLI

First, install our CLI onto your local machine:

```shell macOS & Linux lines theme={"system"}
curl https://qlty.sh | sh
```

```shell Windows lines theme={"system"}
powershell -c "iwr https://qlty.sh | iex"
```

[curl https://qlty.sh | sh](https://demo.arcade.software/pdnImPNfyJblLkMTw5o5?embed\&show_copy_link=true)

Qlty CLI supports macOS and Linux on X64 and ARM64, with Windows support in development.

> [accordion] Alternative: Installing with verification
>
> We provide GitHub attestations powered by Sigstore that allow you to verify the authenticity of the Qlty CLI before installing it. The check uses the [GitHub CLI (`gh`)](https://cli.github.com/manual/installation) 2.67.0 or later and doesn't depend on your machine's certificate store.
>
> Follow the steps in [Integrity Verification](https://docs.qlty.sh/cli/integrity-verification.md) to download a release, verify it and install it.

### 2. Initialize your repository

From your Git repository, run:

```shell bash lines theme={"system"}

qlty init

```

[qlty init](https://demo.arcade.software/wIIO4wY9U47bKAij79rG?embed\&show_copy_link=true)

This will generate a baseline configuration based on the file types within your project and store it as `.qlty/qlty.toml` in your repository.

You can find more plugins with `qlty plugins list` and enable them with `qlty plugins enable [plugin]`.

### 3. Identify code smells and review quality metrics

Check the code quality (for [supported programming languages](https://docs.qlty.sh/languages.md)):

```bash Scan for code smells like duplication lines theme={"system"}
qlty smells --all
```

```bash Review a summary of quality metrics lines theme={"system"}
qlty metrics --all --max-depth=2 --sort complexity --limit 10
```

[qlty smells remix/app/.server/jobs](https://demo.arcade.software/NHZHtbmkgrJxpbuJOb4E?embed\&show_copy_link=true)

### 4. Lint your project

```bash Run linters on changed files on your current branch lines theme={"system"}
qlty check
```

[qlty check remix/app/.server/jobs](https://demo.arcade.software/jj69R7wlgRGgEL6urQJr?embed\&show_copy_link=true)

```bash Run linters on all files lines theme={"system"}
qlty check --all
```

```bash Run only the shellcheck linter on all files lines theme={"system"}
qlty check --all --filter=shellcheck
```

```bash Run linters on the web/ folder lines theme={"system"}
qlty check web/
```

### 5. Auto-format your code

```bash Auto-format changed files on your current branch lines theme={"system"}
qlty fmt
```

[Arcade Flow (Thu Jul 11 2024)](https://demo.arcade.software/QXbWdDfpOFn67JHQuNE3?embed\&show_copy_link=true)

```bash Auto-format files in a directory lines theme={"system"}
qlty fmt web/
```

## Getting help

* **Learn more:** Run `qlty` for a summary of the most commonly used commands and `qlty --help` for a full list.
  * Appending `--help` to any command will provide detailed information about that command.
* **Join the community:** [Chat with us](https://qlty.sh/discord) on Discord
* **Get community support:** [Open an issue or discussion](https://github.com/qltysh/codeclimate/issues/new/choose) on GitHub

## Next steps

* [Exclude irrelevant files](https://docs.qlty.sh/cli/excluding-files.md) in your repository
* Refer to the [Analysis Configuration](https://docs.qlty.sh/cli/analysis-configuration.md) guide
* Explore the 40+ linters and security scanners [available as plugins](https://docs.qlty.sh/plugins.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.