Skip to content

docs: add Gladia CLI page under Developer tools#127

Open
remilejeune2 wants to merge 2 commits into
mainfrom
remi/cli_doc
Open

docs: add Gladia CLI page under Developer tools#127
remilejeune2 wants to merge 2 commits into
mainfrom
remi/cli_doc

Conversation

@remilejeune2

@remilejeune2 remilejeune2 commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Introduce a new documentation section for developer tooling and document installation, usage, and CLI options for gladia-cli.

Summary by CodeRabbit

  • Documentation
    • Added a comprehensive Gladia CLI guide covering installation, setup, authentication, transcription workflows, supported commands, output formats, and advanced options.
    • Documented language hints, code switching, diarization, model selection, JSON processing, and shell tab completion.
    • Added links to API key setup, the CLI repository, and the pre-recorded speech-to-text quickstart.
    • Added the guide to the Developer Tools section of the documentation navigation.

Introduce a new documentation section for developer tooling and document installation, usage, and CLI options for gladia-cli.

Co-authored-by: Cursor <cursoragent@cursor.com>
@coderabbitai

coderabbitai Bot commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

A new Gladia CLI documentation page covers installation, API key setup, transcription commands, output formats, language options, diarization, shell completion, and next steps. The navigation adds the page under a new Developer tools group.

Changes

Gladia CLI documentation

Layer / File(s) Summary
CLI installation and authentication
chapters/developer-tools/gladia-cli.mdx
Introduces the CLI, documents macOS/Linux and Windows installation, and explains API key configuration methods and precedence.
Transcription commands and options
chapters/developer-tools/gladia-cli.mdx
Documents transcription examples, commands, output formats, language behavior, model selection, and diarization.
Completion and documentation navigation
chapters/developer-tools/gladia-cli.mdx, docs.json
Adds shell completion instructions, next-step links, and a Developer tools navigation entry.

Estimated code review effort: 2 (Simple) | ~10 minutes

Suggested reviewers: mfernandez-gladia

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly describes the main change: adding a Gladia CLI documentation page in Developer tools.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch remi/cli_doc

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@chapters/developer-tools/gladia-cli.mdx`:
- Around line 142-149: Complete the zsh setup instructions following the
completion file creation in the documented shell snippet: either add the
required fpath configuration and compinit initialization, or explicitly state
that the installer performs this setup. Ensure the instructions reference the
generated _gladia completion file so users know it will be loaded.
- Around line 47-53: Update the API-key guidance near the command examples to
warn that inline keys in shell commands can leak through history or process
arguments. Remove the literal-key examples for `gladia auth set` and
`--gladia-key`, and instead recommend `GLADIA_API_KEY` or the saved `~/.gladia`
credential path, mentioning flags only generically if needed.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 9bb20545-1d53-4c93-897b-dd385bd444c8

📥 Commits

Reviewing files that changed from the base of the PR and between d252f11 and edc7494.

📒 Files selected for processing (2)
  • chapters/developer-tools/gladia-cli.mdx
  • docs.json

Comment on lines +47 to +53
Provide your API key in one of three ways (checked in this order):

```bash
export GLADIA_API_KEY=your_key # 1. environment variable
gladia auth set your_key # 2. saved to ~/.gladia (mode 0600)
gladia transcribe meeting.wav --gladia-key your_key # 3. per-command flag
```

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔒 Security & Privacy | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Find all mentions of Gladia-related auth/key handling in docs and code.
rg -n --hidden --glob '!node_modules' --glob '!dist' --glob '!build' \
  -e 'GLADIA_API_KEY' \
  -e -- '--gladia-key' \
  -e 'gladia auth set' \
  -e 'auth set' \
  -e 'API key' \
  chapters . 2>/dev/null | sed -n '1,220p'

echo '--- FILE LIST ---'
fd -a -t f -H -I 'gladia' . | sed -n '1,120p'

Repository: gladiaio/docs

Length of output: 151


🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Inspect the target doc and nearby files.
target='chapters/developer-tools/gladia-cli.mdx'
wc -l "$target"
sed -n '1,140p' "$target"

echo '--- AST OUTLINE IF SUPPORTED ---'
ast-grep outline "$target" --view expanded || true

Repository: gladiaio/docs

Length of output: 5381


🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Look for the CLI source or reference docs mentioning prompt/secret-manager/CI injection paths.
rg -n --hidden --glob '!node_modules' --glob '!dist' --glob '!build' \
  -e 'secret manager' \
  -e 'CI injection' \
  -e 'prompt' \
  -e 'stdin' \
  -e 'env var' \
  -e 'GLADIA_API_KEY' \
  -e '--gladia-key' \
  -e 'gladia auth' \
  . 2>/dev/null | sed -n '1,260p'

Repository: gladiaio/docs

Length of output: 8794


Avoid inline API-key examples in shell commands. gladia auth set your_key and --gladia-key your_key expose secrets through shell history or process arguments; add a warning and steer users toward GLADIA_API_KEY or the saved ~/.gladia path instead.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@chapters/developer-tools/gladia-cli.mdx` around lines 47 - 53, Update the
API-key guidance near the command examples to warn that inline keys in shell
commands can leak through history or process arguments. Remove the literal-key
examples for `gladia auth set` and `--gladia-key`, and instead recommend
`GLADIA_API_KEY` or the saved `~/.gladia` credential path, mentioning flags only
generically if needed.

Comment on lines +142 to +149
# zsh
mkdir -p ~/.zsh/completions
gladia completion zsh > ~/.zsh/completions/_gladia

# fish
mkdir -p ~/.config/fish/completions
gladia completion fish > ~/.config/fish/completions/gladia.fish
```

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo '--- file excerpt ---'
nl -ba chapters/developer-tools/gladia-cli.mdx | sed -n '125,175p'

echo
echo '--- search for completion docs and zsh config mentions ---'
rg -n "gladia completion zsh|fpath|compinit|completions" chapters . -g '*.mdx' -g '*.md' -g '*.mdown' -g '*.txt' -g '*.sh' -g '*.yaml' -g '*.yml' || true

Repository: gladiaio/docs

Length of output: 212


🏁 Script executed:

#!/bin/bash
set -euo pipefail

python3 - <<'PY'
from pathlib import Path
path = Path('chapters/developer-tools/gladia-cli.mdx')
lines = path.read_text().splitlines()
for i in range(125, 176):
    if i <= len(lines):
        print(f"{i:>4}: {lines[i-1]}")
PY

echo
echo '--- repo search ---'
rg -n "gladia completion zsh|fpath|compinit|_gladia|completion fish|completion zsh" . -g '*.mdx' -g '*.md' -g '*.sh' -g '*.yml' -g '*.yaml' || true

Repository: gladiaio/docs

Length of output: 2086


Complete the zsh completion setup. The manual zsh snippet only writes _gladia; add the fpath/compinit setup or say the installer handles it, otherwise the completion file won’t be loaded.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@chapters/developer-tools/gladia-cli.mdx` around lines 142 - 149, Complete the
zsh setup instructions following the completion file creation in the documented
shell snippet: either add the required fpath configuration and compinit
initialization, or explicitly state that the installer performs this setup.
Ensure the instructions reference the generated _gladia completion file so users
know it will be loaded.

@mintlify

mintlify Bot commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
gladia 🟢 Ready View Preview Jul 10, 2026, 1:51 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant