CLI Reference¶
The stratum CLI provides terminal access to vault operations.
Installation¶
Global Options¶
| Flag | Description |
|---|---|
-p, --vault <PATH> |
Vault path (default: current directory) |
Commands¶
init¶
Initialize a new vault in the specified directory.
Creates:
- Vault directory structure
- .pkm/config.toml with defaults
- notes/welcome.md — a getting-started note
list¶
List all notes in the vault.
show¶
Display a note's content and metadata.
Shows: - Title - Path - Tags - Wiki-links - Body content
create¶
Create a new note.
Creates a .md file with frontmatter (title, creation date, tags).
search¶
Search note contents.
Returns matching notes with context snippets.
stats¶
Show vault statistics.
Displays: - Total notes - Total tags - Total wiki-links - Total file size - Vault path
graph¶
Show the knowledge graph structure.
Displays: - Node and edge counts - Orphaned notes (no connections) - Up to 20 edge samples
tags¶
Show the tag cloud.
Displays tags sorted by frequency with a visual bar chart.
sync¶
Git sync operations.
# Check sync status
stratum sync status
# Push changes
stratum sync push
# Pull changes
stratum sync pull
# Full sync
stratum sync sync
export¶
Export the vault.
ask¶
Ask an AI question about your notes.
Requires a configured LLM provider in .pkm/config.toml.
config¶
Display the current configuration.
Shows .pkm/config.toml contents.
help¶
Display help information.