CLI Reference

Powerful, scriptable access to the Aevum Encyclopedia. Search, fetch, export, and contribute to verified knowledge directly from your terminal.

v2.4.1 • ● Stable

Installation

Install ae-cli via your preferred package manager. Compatible with macOS, Linux, and Windows (via WSL).

Node.js / npm
npm install -g @aevum/cli
Python / pip
pip install aevum-cli
Go
go install github.com/aevum/cli@latest
Homebrew
brew install aevum/tap/ae
bash
$ ae --version Aevum CLI v2.4.1 (Built for Encyclopedia API v3)

Quick Start

Authenticate once, then start querying the knowledge graph instantly.

bash
$ ae auth login # Opens browser for OAuth2. Token saved to ~/.aevum/config $ ae search "quantum entanglement" --limit 5 # Returns structured JSON with titles, snippets, and graph IDs

Command Reference

ae init

Initializes a local Aevum project with configuration defaults and offline cache directory.

Usage: ae init [project-name] [options]
FlagTypeDescription
--templatestringStarter template: research, education, api
--cache-dirstringCustom directory for offline article cache (default: .aevum_cache)
bash
$ ae init quantum-physics-research --template research ✓ Project scaffolded at ./quantum-physics-research ✓ Cache initialized (0 MB)
\n

ae fetch

Retrieves full article content, metadata, and linked knowledge nodes by ID or slug.

Usage: ae fetch <id|slug> [options]
FlagTypeDescription
--include-graphbooleanAttach related knowledge graph nodes
--cachebooleanSave to local offline cache
--formatstringhtml, markdown, pdf, json
bash
$ ae fetch ae-quantum-computing-101 --include-graph --format pdf ✓ Downloaded: quantum-computing-101.pdf ✓ Graph nodes: 14 related concepts cached

ae export

Exports search results, cached articles, or knowledge graphs for offline analysis or LLM training.

Usage: ae export <source> [options]
FlagTypeDescription
--deststringOutput directory or file path
--formatstringjsonl, csv, wikitext, parquet
--strip-metadatabooleanRemove editorial tags and revision history

ae sync

Synchronizes local cache with the latest verified encyclopedia updates. Resolves conflicts using version vectors.

Usage: ae sync [options]
FlagTypeDescription
--dry-runbooleanPreview changes without writing
--forcebooleanOverwrite local modifications
--scopestringall, recent, favorites

Authentication

CLI authentication uses OAuth2 with refresh tokens. Tokens are stored encrypted in ~/.aevum/credentials.

bash
$ ae auth login # Interactive browser flow $ ae auth token --set ae_live_xK9... # CI/CD environments $ ae auth whoami # Verify current session

For headless servers, set the AEVUM_TOKEN environment variable or use --token flag globally.

Configuration

Manage global and project-level settings. Configuration is stored in ~/.aevum/config.json or .aevumrc.

Usage: ae config [get|set|delete] <key> [value]
bash
$ ae config set default.lang en $ ae config set api.timeout 15000 $ ae config get cache.enabled true
KeyDefaultDescription
default.langenPreferred content language
api.timeout10000Request timeout in ms
cache.enabledtrueEnable local offline caching
output.pagerfalsePipe long outputs to system pager

Environment Variables

Override config and auth behavior via environment variables. Useful for Docker and CI pipelines.

VariableDescription
AEVUM_TOKENAPI authentication token
AEVUM_API_BASECustom API endpoint (default: https://api.aevum.enc)
AEVUM_CACHE_DIROverride default cache location
AEVUM_LOG_LEVELdebug, info, warn, error
AEVUM_NO_COLORDisable terminal coloring (set to 1)

Exit Codes

CodeMeaning
0Success
1General error / invalid command
401Authentication failed or token expired
429Rate limit exceeded (exponential backoff applied)
500+Remote API error (retry with --retry 3)