Skip to the guide

Command reference

Command directory

Find every registered CLI command, its flags, defaults and detailed reference page.

Use explicit glob commands for shell work and scripts. Run bare glob for the full-screen terminal interface. This directory lists the registered command surface and links to the detailed behaviour and examples.

glob --help
glob notes edit --help
glob version --json

--help or -h shows usage at each level. glob --version prints the CLI version; glob version also reports the output protocol version. Place --json and other options on the final command: glob notes list --json.

In the tables, store options means both --store <directory> and --json. JSON means --json without --store. Help is available throughout. Angle brackets mark a required value; square brackets mark an optional argument. Omit the brackets themselves when typing commands.

Status and configuration

Invocation Options and defaults Detail
glob version JSON CLI and protocol versions.
glob status Store options Store location and existence, effective server and stored-session presence.
glob doctor Store options; --rebuild-projection Open or create the store and report its health; details below.
glob config or glob config show JSON Display saved values and effective server.
glob config set <key> <value> JSON Save server, output or workspace.
glob server or glob server show JSON Display the effective server and its source.
glob server set <url> JSON Save the account service URL.

See configuration for precedence, paths and the limits of the saved output and workspace values.

Store health with doctor

glob doctor
glob doctor --store "$HOME/glob-work" --json

doctor opens the selected store and creates it when absent. Its success message confirms that it could open the store; it does not test hosted sign-in or sync.

The JSON result contains store_directory, mode, schema_version, configurations, record_counts and store_files. Each file entry has name and bytes.

On Linux, schema_version and the configuration are sqlite, and the count is knowledge_records. On macOS, the command reports the platform's store schema, configurations and counts for records, links, temporal events, commitments and chat messages. These differences reflect what the diagnostic can inspect on each platform.

glob doctor --rebuild-projection --json

On Linux, --rebuild-projection reconstructs the readable record view from stored documents. It returns store_directory and rebuilt_records. Use it when documents are present but their record listings need rebuilding. It does not fetch missing data from the account service. On macOS this option returns UNAVAILABLE: projection rebuild is only available for package-backed stores.

Sign-in and Ask Glob

Invocation Options Detail
glob login --email, --password-stdin, --stdin, --token, --web, --portal, --public-username; JSON Choose one sign-in method.
glob logout JSON Remove the stored account session.
glob ask <prompt> --model <id>; JSON Send one hosted AI prompt; default submitted model glob-gpt-4o-mini.

See sign in and Ask Glob for accepted combinations and examples. Login has no default interactive method: choose its flags explicitly.

All commands in this table accept store options.

Invocation Additional options and defaults
glob capture <text> --tag <tags>
glob notes or glob notes list --limit <number> (50); --include-tasks
glob notes show <id> None
glob notes search <query> --limit <number> (50)
glob notes new --title <text>, --body <text>, --tag <tags>
glob notes edit <id> --title <text>, --body <text>, --tag <replacement-tags>
glob notes archive <id> None
glob notes delete <id> Required --yes
glob tasks or glob tasks list --all; --limit <number> (100)
glob tasks add <title> --tag <tags>
glob tasks done <id> None
glob tasks reopen <id> None
glob search <query> --limit <number> (50); same search as notes search
glob link create <source> <target> --label <text> (empty by default)
glob link list <id> None

The tag option accepts multiple values up to the next option and can be repeated. See notes, tasks and links for ordering, task-list windows, tag replacement and search differences.

Views, pins and projects

All accept store options and require the Linux store.

Invocation Additional options
glob list --tasks
glob switch [id] --root; choose ID or --root
glob new <title> --task
glob pin <id> None
glob unpin <id> None
glob pinned None
glob project <id> Required --title <text>

Read views, pins and projects before choosing between glob new and glob notes new.

Temporal ledger

glob temporal
glob temporal ledger --limit 20 --json

glob temporal defaults to ledger. It reads the selected store's temporal event ledger, newest first. Options are --limit <number> (default 50), --store <directory> and --json.

Human output shows the occurrence time, kind and title. JSON returns an array containing id, kind, domain, title and occurred_at. An empty store reports no events. This is a read command for available events, rather than a scheduler or a command for adding events.

Portable transfer

Invocation Options Detail
glob export Required --to <path>; store options Linux: portable JSON; a directory also gets Markdown.
glob import <path> Store options Add separate copies from portable files or older Markdown.

Read export and import for the complete format, safe-copy policy and legacy compatibility.

API keys and sync identities

These commands accept JSON. Only the commands shown with a store option accept --store.

Invocation Additional options
glob keys or glob keys list None
glob keys create [name] --agent-nickname, --agent-username, --reach, --container-id, --write, --preset, --scope-json, --expiry, --store
glob keys rotate [id] --passphrase-stdin, --store
glob keys revoke <id> Required --yes; --store
glob keys freeze-all Required --yes
glob keys unfreeze-all Required --yes
glob keys identity Linux: --generation <number>
glob keys recovery Linux: --passphrase-stdin

rotate <id> rotates an API key. Without an ID it rotates the sync identity on Linux. readonly and readwrite are the only presets. See keys and recovery for required identity details, scope examples and the one-time output.

Linux sync and sharing

All commands in this table accept store options.

Invocation Additional options and defaults
glob sync or glob sync now --passphrase-stdin
glob sync watch --passphrase-stdin; --wait-timeout <seconds> (10, accepted range 1–60); --max-windows <number>
glob sync status None
glob sync reset --yes to skip the confirmation prompt
glob share grant <project-uuid> --passphrase-stdin

Read sync and sharing for passphrase precedence, partial failures and reset behaviour. These commands are absent from the macOS CLI.

Linux proposal review

Proposals are suggested graph changes for you to inspect and approve in the store where they would be applied.

glob patches list
glob patches show "$proposal_id"
glob patches apply "$proposal_id" --yes
glob patches reject "$proposal_id"
Invocation Options Behaviour
glob patches or glob patches list --store, --json Pending proposals first, then resolved proposals. JSON is a raw array.
glob patches show <id> --store Status and full text preview; created-ID mapping when available.
glob patches apply <id> --store, required --yes Recheck and apply a pending proposal, then mark it applied.
glob patches reject <id> --store Mark a pending proposal rejected.

Only list accepts --json. Each JSON row has id, status, title and operations; the operation count is a string. Human markers are ● pending, ✓ applied and ✗ rejected.

show, apply and reject require a complete proposal UUID. Missing IDs report no proposal …; malformed IDs report id must be a UUID. A proposal already resolved cannot be applied or rejected again and reports proposal is already ….

Apply without --yes asks you to rerun after reviewing glob patches show. The review commands use text errors rather than the standard JSON error envelope. They do not require an account sign-in just to inspect the local proposals.

Linux relay

glob relay-node accepts --server, --api-key, --key-id, --scope-json, --device-id, --label, --passphrase-stdin, --once, --poll-max and --store. It does not accept --json.

Read running a relay for setup, examples and how the relay relates to sync. The command is absent from macOS.