Install from URL or Path
How to install pair's Knowledge Base from a custom URL, local path, or in offline environments.
This guide explains how to install pair's Knowledge Base from sources other than the default GitHub release — including custom URLs, local paths, and fully offline environments.
Default Behavior
By default, pair install auto-downloads the KB from the latest GitHub release. You only need this guide if you need to:
- Use a custom mirror or internal artifact server
- Install from a local directory or ZIP file
- Work in an air-gapped or network-restricted environment
Install from a Remote URL
Provide any HTTP/HTTPS URL pointing to a KB ZIP package:
The CLI downloads the package, validates its integrity (SHA-256 checksum), and installs all registries.
Custom Mirrors
If your organization hosts KB artifacts on an internal server:
Install from a Local Path
Point --source to a local directory or ZIP file:
When to Use Local Paths
- Development: Install from the monorepo dataset during KB development
- Testing: Validate a KB package before publishing
- Distribution: Install from a USB drive or shared network folder
Offline Installation
For air-gapped or network-restricted environments, combine --offline with --source:
The --offline flag tells the CLI to skip any network requests. It requires --source pointing to a local path.
Step-by-Step Offline Workflow
- On an internet-connected machine, download the KB package:
-
Transfer the ZIP file to the offline machine (USB, secure file transfer, etc.)
-
On the offline machine, extract and install:
Constraints
--source | --offline | Valid? | Behavior |
|---|---|---|---|
| Not provided | No | Yes | Auto-download from GitHub |
| Not provided | Yes | No | Error: requires --source |
https://... | No | Yes | Download from URL |
https://... | Yes | No | Error: cannot use URL |
./local-path | No | Yes | Use local path |
./local-path | Yes | Yes | Use local path (offline) |
Verifying Packages
Always verify a KB package before installing from an untrusted source:
The verification checks SHA-256 checksum, package structure, and manifest validity.
Updating from Custom Sources
The update command accepts the same --source and --offline flags:
Related
- CLI Commands Reference — Full
installandupdatesyntax - KB Source Resolution Spec — Technical spec for resolution algorithm
- Troubleshooting — Common installation issues