Skip to main content

/install Command

Install or reinstall AIKit globally.

Usage

# Install globally
/install

# Reinstall (update)
/install --force

# Install from local source
cd /path/to/aikit
npm link

Arguments

ArgumentTypeRequiredDefaultDescription
--forceflagNofalseForce reinstall
--no-depsflagNofalseSkip dependencies
--verboseflagNofalseVerbose output

Installation Methods

# Install from npm registry
npm install -g @tdsoft-tech/aikit

# Verify installation
aikit --version

# Show installed location
npm list -g @tdsoft-tech/aikit

Local Source Install

# Clone repository
git clone https://github.com/tdsoft-tech/aikit.git
cd aikit

# Install dependencies
npm install

# Build project
npm run build

# Link globally
npm link

# Verify installation
aikit --version

Reinstallation

# Force reinstall (use if issues)
/install --force

# Same as:
npm uninstall -g @tdsoft-tech/aikit
npm install -g @tdsoft-tech/aikit

Installation Process

1. Download Package

Downloads from npm registry:

# Download and install
npm install -g @tdsoft-tech/aikit

# Output:
added 1 package in 3s
@aikit 0.1.17

# Installed location:
/usr/local/lib/node_modules/@tdsoft-tech/aikit

2. Setup Configuration

Initializes AIKit configuration:

# Initialize global config
aikit init --global

# Creates:
# ~/.config/aikit/aikit.json
# ~/.config/aikit/skills/
# ~/.config/aikit/commands/
# ~/.config/aikit/tools/

3. Verification

Verifies installation:

# Check version
aikit --version

# Check status
aikit status

# List skills
aikit skills list

# List commands
aikit commands list

Post-Installation

First Run

# First run sets up everything
aikit init --global

# Verify all components
aikit status

# Test basic command
aikit help

Updating

# Update to latest version
npm update -g @tdsoft-tech/aikit

# Reinstall if issues
/install --force

Troubleshooting

Installation Fails

# Check npm permissions
npm config get prefix

# Fix permissions if needed
sudo npm install -g @tdsoft-tech/aikit

# Or use sudo with install
sudo npm install -g @tdsoft-tech/aikit

Permission Denied (Linux/macOS)

# Check npm prefix
npm config get prefix

# Expected output: /usr/local or /home/user/.npm-global

# If different:
npm config set prefix '~/.npm-global'
export PATH="$PATH:$HOME/.npm-global/bin:$PATH"
npm install -g @tdsoft-tech/aikit

Command Not Found

# Verify PATH
echo $PATH | grep -q "aikit"

# If not found, add to PATH:
export PATH="$PATH:/usr/local/lib/node_modules/@tdsoft-tech/aikit/bin"

# Refresh shell:
source ~/.bashrc  # or
source ~/.zshrc

Windows Installation

On Windows, npm may require elevated privileges:

# Run as administrator
# Right-click Command Prompt
# "Run as administrator"

# Then install:
npm install -g @tdsoft-tech/aikit

Verification

After installation, verify:

# Check version
aikit --version

# Should show: v0.1.17

# Check help
aikit help

# Should show available commands

# Check status
aikit status

# Should show configuration loaded