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

# Quickstart

> Install the CLI and extract your first PDF in under a minute.

## Install

```bash theme={null}
npm install -g @okrapdf/cli
```

## Authenticate

```bash theme={null}
# Environment variable (recommended for CI)
export OKRA_API_KEY=okra_YOUR_KEY

# Or store locally
okra auth set-key $OKRA_API_KEY

# Interactive login
okra auth login
```

## Extract a PDF

```bash theme={null}
okra extract ./report.pdf
```

That's it. OkraPDF uploads the file, runs OCR, detects tables and figures, and prints the results.

## Ask a question

```bash theme={null}
okra chat "What is the total revenue?" --doc <jobId>
```

Chat with an extracted document — or skip `--doc` for general questions.

## What's next

<CardGroup cols={2}>
  <Card title="Extract" icon="file-pdf" href="/cli/extract">
    Full extraction options and flags
  </Card>

  <Card title="Chat" icon="message" href="/cli/chat">
    Interactive document chat sessions
  </Card>

  <Card title="Jobs" icon="list-check" href="/cli/jobs">
    Job management and export
  </Card>

  <Card title="Elements" icon="crop" href="/cli/entities">
    Export tables and crop figures/images
  </Card>
</CardGroup>
