@seed-hypermedia/cli
v0.2.36
Published
Command-line interface for Seed Hypermedia
Readme
Seed Hypermedia CLI
seed-cli reads and writes the Hypermedia network from a terminal: documents, comments, contacts, capabilities, keys,
and whole spaces as folders of markdown. It signs locally with an Ed25519 key you hold and talks to any Seed site over
HTTPS. It needs no daemon of its own.
Package: @seed-hypermedia/cli License: MIT Requires: Node.js >= 18. The package provides two identical
binaries, seed-cli and seed-hypermedia.
Install
npx -y @seed-hypermedia/cli --help # run without installing
npm install -g @seed-hypermedia/cli # or installQuick start
seed-cli key generate -n main --show-mnemonic # a key in the OS keyring; keep the words
seed-cli document create -f note.md -p notes/first # publish a markdown file into your own space
seed-cli document get hm://<your-account>/notes/first # read it back as markdown with block ids
seed-cli document update hm://<your-account>/notes/first -f note.md # publish only the changed blocks
seed-cli search "first note"
seed-cli key list # keys in the Seed app's vault and in the keyringEvery write takes -k <key>; without it the default key signs. Writing into a space you do not own takes -a <uid> and
a capability from its owner. seed-cli <group> --help lists a group's subcommands.
Documentation
The reference lives in the Seed docs, published from the hypermedia/ folder of this repository:
- CLI reference: every command, flag, environment variable, and the output conventions
- Keys: the vault, the keyring,
.hmkey.jsonfiles, headless machines and bot keys - Publish a folder: the
spacecommands and the lossless markdown dialect - Seed API and SDK: what the CLI calls and builds on
- The Seed CLI: the contributor's map of this package
Development
cd frontend/apps/cli
bun run src/index.ts --help # run from source
pnpm build # bundle into dist/ for Node
pnpm typecheck
pnpm test # fixture suite against a real daemon and web server
pnpm test:unit # unit testsFrom the repository root, ./dev install-cli builds the CLI and links it into ~/.local/bin. Releases are automatic:
the publish-client workflow publishes a new patch version to npm when the CLI's sources change on main, so the
version in package.json is not the published version.
