Skip to main content

cairn-cli

A thin command-line interface over cairn-core. Standard-library only.

uvx cairn --workspace ~/Documents/notes ls

Commands

cairn [--workspace DIR] [--json] <command>

  ls [path]                  list a directory
  tree [path]                show the file tree
  read <path>                print a file (flattened .uni text)
  create <path> [content]    create a file ('-' reads stdin)
  mkdir <path>               create a folder
  mv <path> <target_dir>     move a file/folder
  rename <path> <new_name>   rename in place
  rm <path>                  delete
  edit <path> <old> <new>    replace a unique occurrence
  import <path> [--all]      convert docx/pdf/pptx/csv/xlsx/md into .uni
  grep <pattern> [path]      search file contents
  find <query> [path]        search file names
  tag <path> [tags...]       get (no args) or set tags
  tags                       show the workspace tag tree
  retrieve <query> [-k N]    find relevant documents

  serve [--host H --port N]  run the local HTTP API (contract for the web UI)
  mcp                        run the MCP server (stdio) for Claude Code / Codex

--json makes any command emit machine-readable JSON.

Examples

export CAIRN_WORKSPACE=~/Documents/notes
cairn tree
echo "meeting notes" | cairn create inbox/2026-07-16.uni -
cairn tag inbox/2026-07-16.uni meetings q3
cairn retrieve "budget planning" -k 5
cairn serve            # http://127.0.0.1:4177/api/health

Three faces, one core

cairn (this CLI), cairn-mcp-server (the MCP server), and the planned web UI are all thin adapters over cairn-core, so they can never drift. Use the CLI for scripting, mcp inside Claude Code / Codex, and serve to back the web UI.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cairn_cli-0.3.1.tar.gz (77.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cairn_cli-0.3.1-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

File details

Details for the file cairn_cli-0.3.1.tar.gz.

File metadata

  • Download URL: cairn_cli-0.3.1.tar.gz
  • Upload date:
  • Size: 77.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for cairn_cli-0.3.1.tar.gz
Algorithm Hash digest
SHA256 1f18b6d8852e1fc3e784cfe478b0169eae9fd8f5a4ad1ab7551a8fb64371ea3f
MD5 a16bc8d912aa1a4676b163881af5561e
BLAKE2b-256 5aa810374ae2e8a43363e0633bbbf10719845a96b94932d84aa6407cd490e4b2

See more details on using hashes here.

File details

Details for the file cairn_cli-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: cairn_cli-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 14.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for cairn_cli-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4bcff7da5f732b6de039dd2b3338c7c983ff48402ec40f8b982fc0fb6f04c5f9
MD5 20f78cc7d81005a362031d27804929f5
BLAKE2b-256 941e9424fdb1b1f0b640300b7e65de3764b62b41787672a914cd603b10c867ac

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 files

0.2.1

2 files

0.2.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page