# 🚀 How to Run AgentDB CLI ## Quick Commands (from ANY directory): ### Option 1: Change to the correct directory first ```bash cd /workspaces/agentic-flow/agentic-flow node dist/agentdb/cli/agentdb-cli.js --help ``` ### Option 2: Use the launcher script (from anywhere) ```bash /workspaces/agentic-flow/agentic-flow/run-agentdb.sh --help ``` ### Option 3: Create a global alias (add to ~/.bashrc) ```bash alias agentdb-new='node /workspaces/agentic-flow/agentic-flow/dist/agentdb/cli/agentdb-cli.js' # Then use: agentdb-new --help ``` ## Current Directory Issue You tried to run from: `/workspaces/agentic-flow/packages/agentdb` But the CLI is in: `/workspaces/agentic-flow/agentic-flow` The `packages/agentdb` directory is the OLD AgentDB package. The NEW CLI with frontier features is in the `agentic-flow` subdirectory. ## Quick Test ```bash # From anywhere: cd /workspaces/agentic-flow/agentic-flow node dist/agentdb/cli/agentdb-cli.js --help # Should show: # █▀█ █▀▀ █▀▀ █▄░█ ▀█▀ █▀▄ █▄▄ # █▀█ █▄█ ██▄ █░▀█ ░█░ █▄▀ █▄█ # # AgentDB CLI - Frontier Memory Features ``` ## Run the Test Suite ```bash cd /workspaces/agentic-flow/agentic-flow ./scripts/test-agentdb.sh ``` ## Directory Structure ``` /workspaces/agentic-flow/ ├── agentic-flow/ ← NEW CLI IS HERE │ ├── dist/ │ │ └── agentdb/ │ │ └── cli/ │ │ └── agentdb-cli.js ← THIS IS THE NEW CLI │ ├── scripts/ │ │ └── test-agentdb.sh │ └── run-agentdb.sh ← USE THIS LAUNCHER │ └── packages/ └── agentdb/ ← OLD PACKAGE (ignore) ```