openground update command efficiently updates an existing library by comparing content hashes and only updating changed pages.
Usage
Arguments
Name of the library to update
Options
Version to update.Aliases:
-vOverride source URL. If not provided, uses the source from
~/.openground/sources.json.Aliases: -sSkip prompts.Aliases:
-yBehavior
Theupdate command is an alias for the add command when a library already exists. It performs an incremental update by:
- Extracting all pages from the source
- Comparing content hashes with existing pages in the database
- Categorizing pages as:
- Added: New pages not in the database
- Modified: Pages with different content hashes
- Deleted: Pages in the database but not in the source
- Unchanged: Pages with identical content
- Updating only the changed pages
Efficient Updates
Only pages that have been added, modified, or deleted are re-embedded and updated in the database. Unchanged pages are skipped, making updates fast and efficient.Examples
Update from sources.json
Update Specific Version
Update with Override Source
Update Without Confirmation
Output Example
When to Use Update vs Add
- Use
update: When you want to explicitly update an existing library with the latest changes - Use
add: When adding a new library for the first time, or when you want to add a new version
Related Commands
- openground add - Add or update libraries
- openground list - View installed libraries
- openground remove - Remove libraries