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

# Quickstart

> Get to a first successful gitquarry command quickly, then move from native search into explicit discovery.

# Quickstart

This is the fastest path to a first useful run.

## 1. Authenticate

Interactive:

```bash theme={null}
gitquarry auth login
```

Non-interactive:

```bash theme={null}
printf '%s' "$GITHUB_TOKEN" | gitquarry auth login --token-stdin
```

## 2. Run a Plain Search

```bash theme={null}
gitquarry search "rust cli"
```

This is the native path. It stays close to GitHub repository search behavior.

## 3. Add Structured Filters

```bash theme={null}
gitquarry search "rust cli" --language rust --topic cli --sort stars
```

Structured flags append constraints. If you manually include a raw GitHub qualifier in the query and also pass an overlapping structured flag, gitquarry stops with a conflict error instead of guessing.

## 4. Inspect One Repository

```bash theme={null}
gitquarry inspect rust-lang/rust
gitquarry inspect rust-lang/rust --readme --format json
```

## 5. Turn On Discover Mode

```bash theme={null}
gitquarry search "release automation" \
  --mode discover \
  --rank blended \
  --readme \
  --explain
```

This is the enhanced path:

* broader candidate collection
* metadata enrichment
* optional README scoring
* explicit reranking

## 6. Use Structured Output

```bash theme={null}
gitquarry search "rust cli" --format json
gitquarry search "rust cli" --format compact
gitquarry inspect rust-lang/rust --format csv
```

If you are scripting around gitquarry, read the [Output Contract](/reference/output-contract) next.
