Installation
AI-First can be installed in several ways depending on your needs.
Global Installation (Recommended)
bash
npm install -g ai-firstThen run:
bash
ai-first --helpWithout Installation (npx)
bash
# Initialize
npx ai-first init
# Index
npx ai-first index
# Doctor check
npx ai-first doctorDevelopment Mode
bash
# Clone the repository
git clone https://github.com/julianperezpesce/ai-first.git
cd ai-first
# Install dependencies
npm install
# Build
npm run build
# Link for local testing
npm link
# Run
ai-first --helpRequirements
- Node.js 18+
- npm 8+ (comes with Node.js)
Optional Dependencies
For semantic search with embeddings:
bash
npm install @xenova/transformersUpdate AI-First
bash
# If installed globally
npm update -g ai-first
# Check version
ai-first --versionUninstall
bash
npm uninstall -g ai-firstTroubleshooting
Permission Errors
If you get permission errors on macOS/Linux:
bash
sudo npm install -g ai-firstOr use a version manager like nvm.
Path Issues
Make sure npm global bin is in your PATH:
bash
# Add to ~/.bashrc or ~/.zshrc
export PATH="$(npm root -g)/bin:$PATH"