brainy/cli-package
David Snelling cac58ac0b2 **feat(cli): add local testing script for CLI and update versions**
- Introduced `scripts/test-cli-locally.js` to streamline local testing of the CLI package before publishing.
   - Builds main and CLI packages, creates local tarballs, and installs the CLI package globally for testing.
   - Ensures version synchronization between main and CLI packages during testing.
- Updated `cli-package/package.json` version to `0.9.23` and synchronized `@soulcraft/brainy` dependency to `0.9.22`.
- Patched `TextEncoder` fallback for Node.js v24 in `cli-wrapper.js` to ensure overall CLI compatibility.
- Added new `test-cli` npm script to `package.json`.

This update simplifies the CLI local testing process, maintains version alignment, and improves readiness for Node.js v24.
2025-07-02 12:54:50 -07:00
..
src **chore(version): bump version to 0.9.18 and update build configurations** 2025-07-02 12:15:35 -07:00
cli-wrapper.js **feat(cli): add local testing script for CLI and update versions** 2025-07-02 12:54:50 -07:00
package-lock.json **feat(cli): add local testing script for CLI and update versions** 2025-07-02 12:54:50 -07:00
package.json **feat(cli): add local testing script for CLI and update versions** 2025-07-02 12:54:50 -07:00
README.md **docs: add comprehensive developer guide and update npm version** 2025-07-02 12:54:38 -07:00
rollup.config.js **refactor(cli): remove unused Brainy CLI implementation** 2025-07-02 11:55:44 -07:00
tsconfig.json **chore(version): bump version to 0.9.18 and update build configurations** 2025-07-02 12:15:35 -07:00
types.d.ts **chore(version): bump version to 0.9.18 and update build configurations** 2025-07-02 12:15:35 -07:00

@soulcraft/brainy-cli

Command-line interface for the Brainy vector graph database.

Installation

# Install globally
npm install -g @soulcraft/brainy-cli

Usage

Once installed, you can use the brainy command from anywhere:

# Show help
brainy --help

# Initialize a new database
brainy init

# Add data
brainy add "Cats are independent pets" '{"noun":"Thing","category":"animal"}'

# Search
brainy search "feline pets" --limit 5

# Add relationships
brainy addVerb id1 id2 RelatedTo '{"description":"Both are pets"}'

# Visualize the graph
brainy visualize
brainy visualize --root <id> --depth 3

# Generate random test data
brainy generate-random-graph --noun-count 20 --verb-count 30 --clear

Features

  • Full access to all Brainy database functionality from the command line
  • Autocomplete support for commands and options
  • Visualization of graph data
  • Import/export capabilities
  • Augmentation pipeline testing

Requirements

  • Node.js >= 24.0.0

Changelog

0.9.23

  • Fixed compatibility with Node.js v24 by adding support for the new TextEncoder global object

License

MIT