brainy/cli-package
David Snelling 10a76a7b69 **refactor(cli): remove unused Brainy CLI implementation**
- Deleted the entire `src/cli.ts` file, effectively removing the Brainy CLI component.
- The change streamlines the codebase by eliminating unused and redundant code related to the CLI.
- This refactor supports maintaining a cleaner and more focused project architecture.
2025-07-02 11:55:44 -07:00
..
src **refactor(cli): remove unused Brainy CLI implementation** 2025-07-02 11:55:44 -07:00
cli-wrapper.js **refactor(cli): remove unused Brainy CLI implementation** 2025-07-02 11:55:44 -07:00
package.json **refactor(cli): remove unused Brainy CLI implementation** 2025-07-02 11:55:44 -07:00
README.md **feat(cli, scripts): introduce CLI package and automated publishing process** 2025-07-02 11:32:06 -07:00
rollup.config.js **refactor(cli): remove unused Brainy CLI implementation** 2025-07-02 11:55:44 -07:00
tsconfig.json **refactor(cli): remove unused Brainy CLI implementation** 2025-07-02 11:55:44 -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

License

MIT