Advanced Commands
These are low-level commands that most users don’t need. Theopenground add command handles extraction and embedding automatically. Use these only for debugging or custom workflows.
version
Display the installed OpenGround version.extract-sitemap
Extract documentation from a sitemap without embedding it.Options
Root sitemap URL to crawl.Aliases:
-s
Default: NoneName of the library/framework for this documentation.Aliases:
-l
Default: defaultKeyword filter applied to sitemap URLs. Can be specified multiple times.Aliases:
-f
Example: -f docs -f /blogMaximum number of concurrent requests.Aliases:
-c
Default: From config (default: 10)
Min: 1Trim query parameters from sitemap URLs to avoid duplicates.Default:
falseExample
openground embed to generate embeddings.
extract-git
Extract documentation from a git repository without embedding it.Options
Git repository URL.Aliases:
-rPath to documentation within the repo. Specify multiple times for multiple paths.Aliases:
-d
Example: -d docs/ -d wiki/
Note: Use / for the whole repoName of the library/framework for this documentation.Aliases:
-l
Default: defaultVersion of the library to extract. Corresponds to a git tag.Aliases:
-v
Default: latestExample
embed
Generate embeddings for extracted documentation and store in LanceDB.Arguments
Library name to embed from raw_data/.
Options
Version of the library to embed.Aliases:
-v
Default: latestExample
The
embed command reads from ~/.openground/raw_data/{library}/{version}/ and generates embeddings using your configured embedding backend.Use Cases
Debugging Extraction Issues
Ifopenground add fails during extraction, you can use extract-sitemap or extract-git to isolate the problem: