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

# Instalação

> Instale e configure a ZeroPath CLI no seu sistema

<h2 id="installation-methods">
  Métodos de Instalação
</h2>

<Tabs>
  <Tab title="macOS Intel">
    ```bash theme={null}
    wget https://github.com/ZeroPathAI/zeropath-cli/releases/latest/download/zeropath-macos -O zeropath
    chmod +x zeropath
    sudo mv zeropath /usr/local/bin/
    ```
  </Tab>

  <Tab title="macOS ARM (M1/M2)">
    ```bash theme={null}
    wget https://github.com/ZeroPathAI/zeropath-cli/releases/latest/download/zeropath-macos-arm64 -O zeropath
    chmod +x zeropath
    sudo mv zeropath /usr/local/bin/
    ```
  </Tab>

  <Tab title="Linux x64">
    ```bash theme={null}
    wget https://github.com/ZeroPathAI/zeropath-cli/releases/latest/download/zeropath-linux -O zeropath
    chmod +x zeropath
    sudo mv zeropath /usr/local/bin/
    ```
  </Tab>

  <Tab title="Windows x64">
    ```powershell theme={null}
    Invoke-WebRequest -Uri https://github.com/ZeroPathAI/zeropath-cli/releases/latest/download/zeropath-windows.exe -OutFile zeropath.exe
    move zeropath.exe "C:\Windows\System32\"
    ```
  </Tab>
</Tabs>

<Card title="Baixar a Versão Mais Recente" icon="download" href="https://github.com/ZeroPathAI/zeropath-cli/releases/latest">
  Obtenha a versão mais recente diretamente do GitHub
</Card>

<h2 id="verify-installation">
  Verificar a Instalação
</h2>

Após a instalação, confirme que a CLI está funcionando:

```bash theme={null}
# Check if installed correctly
zeropath --version

# View available commands
zeropath --help
```

<h2 id="authentication">
  Autenticação
</h2>

Conecte a CLI à sua conta ZeroPath usando credenciais de API:

```bash theme={null}
# Authenticate with your Client ID and Client Secret
zeropath auth <clientId> <clientSecret>
```

<h3 id="getting-api-credentials">
  Obtendo Credenciais de API
</h3>

1. Faça login no [ZeroPath Dashboard](https://zeropath.com/app)
2. Acesse API Settings ou Account Settings
3. Gere novas credenciais de API (Client ID e Client Secret)
4. Guarde essas credenciais com segurança

<h2 id="first-scan">
  Primeira Verificação
</h2>

Depois de autenticado, você pode começar a verificar:

```bash theme={null}
# Scan current directory and save results
zeropath scan . output.sarif

# Scan a specific directory
zeropath scan /path/to/your/project results.sarif
```

<h2 id="common-usage-patterns">
  Padrões Comuns de Uso
</h2>

<h3 id="local-development">
  Desenvolvimento Local
</h3>

```bash theme={null}
# Quick scan of current project
zeropath scan . results.sarif

# Scan specific directory
zeropath scan ./src output.sarif
```

<h3 id="ci-cd-integration">
  Integração com CI/CD
</h3>

```bash theme={null}
# Repository scanning by ID (exits 1 if issues found)
zeropath scan --repository-id <repositoryId>

# Repository scanning by URL
zeropath scan --repository-url https://github.com/owner/repo --vcs github
```

<h2 id="next-steps">
  Próximos Passos
</h2>

* [Introdução à CLI](/pt/cli/introduction) - Conheça os recursos da CLI
* [Repositório no GitHub](https://github.com/ZeroPathAI/zeropath-cli) - Código-fonte e versões mais recentes
* [Referência da API](/api-reference/introduction) - Documentação da API para uso avançado
