Installation Guide
This document provides comprehensive installation instructions for Terminal Jarvis across different platforms and use cases.
Recommended: Pre-configured Development Environment
For the best Terminal Jarvis experience, especially for development and testing AI tools:
GitHub Codespaces (Cloud Development)
# Click "Code" → "Codespaces" → "Create codespace" on the repository
# Or use the direct link: https://github.com/codespaces/new?template_repository=BA-CalderonMorales/terminal-jarvis
Advantages:
- Instant Setup: Complete environment ready in 60 seconds
- Zero Dependencies: No local software installation required
- Consistent Experience: Same environment across all platforms
- Pre-configured Tools: Rust 1.87, Node.js 20, GitHub CLI, AI tools ready
- Built-in Debugging: Full debugging setup with LLDB and VS Code integration
VS Code Dev Containers (Local Docker)
# Prerequisites: Docker Desktop + VS Code + Remote-Containers extension
# 1. Clone the repository
# 2. Open in VS Code
# 3. Click "Reopen in Container" when prompted
Advantages:
- Consistent environment across team members
- All dependencies pre-installed
- Isolated from host system
Quick Installation
Terminal Jarvis is available through three official distribution channels:
1. NPM Installation (Recommended for Most Users)
# Try it instantly with npx (no installation required)
npx terminal-jarvis
# Install latest version globally
npm install -g terminal-jarvis
# Install stable version (recommended for production)
npm install -g terminal-jarvis@stable
# Install beta version (for testing new features)
npm install -g terminal-jarvis@beta
2. Rust Crate Installation (For Rust Developers)
# Install directly via Cargo
cargo install terminal-jarvis
# Verify installation
terminal-jarvis --help
3. Homebrew Installation (macOS/Linux Package Manager)
# Add the Terminal Jarvis tap
brew tap ba-calderonmorales/terminal-jarvis
# Install Terminal Jarvis
brew install terminal-jarvis
# Verify installation
terminal-jarvis --version
Distribution Channel Comparison
Method | Best For | Pros | Cons |
---|---|---|---|
NPM | Node.js users, quick testing | Instant with npx, multiple release channels | Requires Node.js |
Cargo | Rust developers | Native Rust toolchain integration | Requires Rust toolchain |
Homebrew | macOS/Linux system package users | System package manager integration | Limited to macOS/Linux |
NPM Distribution Channels
- Latest (
terminal-jarvis
): Most recently published version - Stable (
terminal-jarvis@stable
): Production-ready, thoroughly tested releases - Beta (
terminal-jarvis@beta
): Preview versions with experimental features
Platform-Specific Instructions
macOS Prerequisites
Important
macOS users must install Rust before using Terminal Jarvis.
# 1. Install Rust via rustup
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
# 2. Reload your shell environment
source ~/.cargo/env
# 3. Install Terminal Jarvis
npm install -g terminal-jarvis
# 4. Verify installation
terminal-jarvis --help
Linux
# Most Linux distributions work out-of-the-box
npm install -g terminal-jarvis
# If you encounter issues, install Node.js first:
# Ubuntu/Debian:
sudo apt update && sudo apt install nodejs npm
# CentOS/RHEL/Fedora:
sudo dnf install nodejs npm
Windows
# Install via NPM (works with PowerShell, Command Prompt, and WSL)
npm install -g terminal-jarvis
# For WSL users, follow Linux instructions
Building from Source
Prerequisites
- Rust 1.70 or later
- Node.js and NPM
- Git
Steps
# 1. Clone the repository
git clone https://github.com/BA-CalderonMorales/terminal-jarvis.git
cd terminal-jarvis
# 2. Build the Rust application
cargo build --release
# 3. Install globally (optional)
cargo install --path .
# 4. Test the installation
terminal-jarvis --help
Requirements and Dependencies
Required
- Node.js and NPM: Required for most AI coding tools
- Internet connection: For package updates and installations
Optional
- Rust toolchain: Only required for building from source or on macOS
gh
CLI: Optional, for template management features- Modern terminal: For best visual experience (Unicode and color support)
Troubleshooting Installation
Common Issues
"command not found" after NPM install
# Check if NPM global bin is in your PATH
npm config get prefix
# Add to your shell profile (~/.bashrc, ~/.zshrc, etc.)
export PATH="$(npm config get prefix)/bin:$PATH"
# Reload your shell
source ~/.bashrc # or ~/.zshrc
Permission errors on macOS/Linux
# Option 1: Use npx instead
npx terminal-jarvis
# Option 2: Configure NPM to use a different directory
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.bashrc
source ~/.bashrc
Rust-related errors on macOS
# Ensure Rust is properly installed
rustc --version
# If not found, reinstall Rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source ~/.cargo/env
Verification Steps
# Check version
terminal-jarvis --version
# Test basic functionality
terminal-jarvis --help
# Launch interactive mode
terminal-jarvis
Uninstallation
NPM Installation
Source Installation
Package Information
NPM Package Details:
- Size: ~1.2MB compressed / ~2.9MB unpacked
- Contents: Pre-compiled binaries, TypeScript wrapper
- Dependencies: Zero runtime dependencies
- Platforms: Cross-platform support (Windows, macOS, Linux)
- Testing: All tools undergo comprehensive integration testing
- Current Version: See the README badges or run
terminal-jarvis --version
- Known Issues: See Known Limitations for detailed information
Note
The current NPM version includes full binary functionality with the complete T.JARVIS interface. No additional installation required!
Next Steps
After installation, check out:
- Usage Guide - Learn how to use Terminal Jarvis effectively
- Configuration Guide - Customize Terminal Jarvis behavior
- AI Tools Guide - Explore all supported AI coding tools