Skip to main content

CLI Reference

Commands that talk to Hrida.ai accept --url and --token (or use HRIDA_AI_URL / HRIDA_AI_API_KEY, or the saved config). Add -q before any command to show errors only, e.g. hrida-oikb -q sync.

Commands​

CommandDescription
initCreate .hrida-oikb.yaml interactively
sync [SOURCE]Incremental sync. Without SOURCE, syncs every entry in .hrida-oikb.yaml
diff SOURCEShow what a sync would change
watch DIRSync a local folder whenever it changes
daemonScheduled syncs plus HTTP API. See Daemon
validateCheck .hrida-oikb.yaml
historyShow past syncs
lsList files in a Knowledge Base
statusShow Knowledge Base info and file count
resetDelete every file in a Knowledge Base
configSave or show the Hrida.ai URL and API key

Flags​

hrida-oikb init [--force]                      Overwrite an existing .hrida-oikb.yaml

hrida-oikb sync [SOURCE] --kb-id ID
    --dry-run                                  Preview without uploading
    --concurrency N                            Parallel uploads (default 1)
    --max-file-size 50mb                       Skip larger files
    --branch NAME                              Branch (GitHub, GitLab, Bitbucket)
    --path DIR                                 Subfolder within the source
    --name ENTRY                               Only this .hrida-oikb.yaml entry (name or KB ID)
    -v, --verbose                              Detailed progress

hrida-oikb diff SOURCE --kb-id ID [--branch NAME] [--path DIR]

hrida-oikb watch DIR --kb-id ID [--debounce 1.0]

hrida-oikb daemon
    --port 8080                                HTTP port
    --no-server                                Scheduler only
    --log-format json                          JSON logs (or LOG_FORMAT=json)
    --config PATH                              Config file location

hrida-oikb validate [--deep] [--config PATH]   --deep also checks URL, key and each KB

hrida-oikb history [--json] [--errors] [--limit 20]
hrida-oikb history --clear --days 30           Remove entries older than N days

hrida-oikb ls --kb-id ID
hrida-oikb status --kb-id ID
hrida-oikb reset --kb-id ID [--keep-directories]   Asks for confirmation

hrida-oikb config set url URL
hrida-oikb config set token KEY
hrida-oikb config get [KEY]
reset deletes everything

hrida-oikb reset removes all files from the Knowledge Base, not just ones OIKB uploaded. Use --keep-directories to keep the folder structure.

Environment variables​

VariablePurpose
HRIDA_AI_URLHrida.ai URL
HRIDA_AI_API_KEYHrida.ai API key
HRIDA_OIKB_API_KEY / HRIDA_OIKB_API_KEY_FILEDaemon API key (set one)
LOG_FORMATjson or text
Connector credentialsSee Connectors
Hrida.ai is proprietary software of Zlabs Innovation. See the license for terms. © 2026 Zlabs Innovation.