Skip to main content

Advanced Commands

These are low-level commands that most users don’t need. The openground add command handles extraction and embedding automatically. Use these only for debugging or custom workflows.
These commands are for advanced users. Most users should use openground add which handles extraction and embedding in one step.

version

Display the installed OpenGround version.
Output:
Use this to verify your installation or when reporting issues.

extract-sitemap

Extract documentation from a sitemap without embedding it.

Options

string
required
Root sitemap URL to crawl.Aliases: -s Default: None
string
Name of the library/framework for this documentation.Aliases: -l Default: default
string
Keyword filter applied to sitemap URLs. Can be specified multiple times.Aliases: -f Example: -f docs -f /blog
integer
Maximum number of concurrent requests.Aliases: -c Default: From config (default: 10) Min: 1
boolean
Trim query parameters from sitemap URLs to avoid duplicates.Default: false

Example

This extracts pages but doesn’t embed them. Follow up with openground embed to generate embeddings.

extract-git

Extract documentation from a git repository without embedding it.

Options

string
required
Git repository URL.Aliases: -r
string
required
Path to documentation within the repo. Specify multiple times for multiple paths.Aliases: -d Example: -d docs/ -d wiki/ Note: Use / for the whole repo
string
Name of the library/framework for this documentation.Aliases: -l Default: default
string
Version of the library to extract. Corresponds to a git tag.Aliases: -v Default: latest

Example

This clones the repo (using sparse checkout), extracts documentation, but doesn’t embed it.

embed

Generate embeddings for extracted documentation and store in LanceDB.

Arguments

string
required
Library name to embed from raw_data/.

Options

string
Version of the library to embed.Aliases: -v Default: latest

Example

The embed command reads from ~/.openground/raw_data/{library}/{version}/ and generates embeddings using your configured embedding backend.

Use Cases

Debugging Extraction Issues

If openground add fails during extraction, you can use extract-sitemap or extract-git to isolate the problem:

Re-embedding with Different Settings

If you want to re-embed existing raw data with different embedding settings:
Changing embedding backends makes existing databases incompatible. You’ll need to re-embed all your documentation.

Custom Extraction Pipeline

For advanced workflows with custom processing between extraction and embedding:

add

The recommended command that handles extraction and embedding

list-raw-libraries

View extracted but not yet embedded libraries

Configuration

Configure embedding backend and other settings

Embedding Backends

Learn about different embedding backends