Installing the ANTE CLI
This guide covers how to install the ANTE CLI tool on your system.
Prerequisites
Before installing the ANTE CLI, ensure your system meets these requirements:
Required Software
Node.js: Version 24.0.0 or higher (LTS)
bash# Check Node.js version node --versionnpm: Comes with Node.js (version 8.0.0 or higher)
bash# Check npm version npm --versionDocker: Version 20.10 or higher
bash# Check Docker version docker --versionDocker Compose: Version 2.0 or higher
bash# Check Docker Compose version docker compose version
System Requirements
- Operating System: Linux, macOS, or Windows (WSL2)
- RAM: 4GB minimum, 8GB recommended
- Disk Space: 20GB minimum, 50GB recommended
- Network: Internet connection for downloading Docker images
Installing Prerequisites
If you don't have the required software, here's how to install them:
Node.js
On Ubuntu/Debian:
# Install Node.js 24 LTS
curl -fsSL https://deb.nodesource.com/setup_24.x | sudo -E bash -
sudo apt-get install -y nodejsOn macOS:
# Using Homebrew
brew install node@24On Windows (WSL2):
# Follow Ubuntu/Debian instructions inside WSLDocker
On Ubuntu/Debian:
# Install Docker
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
# Add user to docker group
sudo usermod -aG docker $USER
newgrp dockerOn macOS:
# Download and install Docker Desktop
# https://www.docker.com/products/docker-desktop/On Windows:
# Install Docker Desktop with WSL2 backend
# https://docs.docker.com/desktop/install/windows-install/Installation Methods
There are two ways to use the ANTE CLI:
Method 1: Global Installation (Recommended)
Install the CLI globally to use it from anywhere on your system.
# Install globally
npm install -g ante-erp-cli
# Verify installation
ante --versionAdvantages:
- Available from any directory
- Simpler to use
- No need to prefix with
npx
When to use:
- Long-term installations
- Regular management tasks
- Production systems
Method 2: Using npx (No Installation)
Run the CLI without installing it using npx.
# Run commands without installation
npx ante-erp-cli install
npx ante-erp-cli status
npx ante-erp-cli backupAdvantages:
- No installation required
- Always uses latest version
- Good for one-time operations
When to use:
- Trying out the CLI
- One-time installations
- Systems where you can't install global packages
Note: For regular use, global installation is recommended.
Verifying Installation
After installation, verify the CLI is working correctly:
1. Check Version
ante --version
# Should output: 1.0.x2. Display Help
ante --help
# Should display list of available commands3. Check Prerequisites
ante doctor
# Should check Docker, Node.js, and system requirementsIf all checks pass, you're ready to install ANTE ERP!
Installing ANTE ERP
Now that the CLI is installed, you can install ANTE ERP:
Interactive Installation (Recommended)
# Run the interactive installation wizard
ante installThe wizard will guide you through:
- Selecting installation directory
- Choosing installation preset (minimal, standard, enterprise)
- Configuring domain and SSL (optional)
- Confirming settings
- Automatic installation
Non-Interactive Installation
For automated deployments or scripts:
# Install with defaults
ante install --no-interactive
# Install with custom options
ante install \
--dir /opt/ante-erp \
--preset standard \
--port 8080 \
--no-interactiveInstallation with Frontend App Selection
ANTE supports multiple frontend applications. You can choose which ones to install:
Available Frontend Apps:
- Main Frontend (always installed) - Core ERP functionality
- Gate App (
--with-gate) - School attendance management - Guardian App (
--with-guardian) - Parent portal for student monitoring - Facial Recognition (
--with-facial) - Employee time tracking with face recognition - POS App (
--with-pos) - Point of Sale system
Examples:
# Install with Gate App (school attendance)
ante install --with-gate
# Install with Guardian App (parent portal)
ante install --with-guardian
# Install with Facial Recognition
ante install --with-facial
# Install all frontend apps
ante install --with-all-frontends
# Install specific combination
ante install --with-gate --with-guardian --with-facialInstallation with Domain and SSL
For production deployments with custom domain:
# Basic domain configuration
ante install \
--preset enterprise \
--frontend-domain https://erp.company.com \
--api-domain https://api.company.com
# With all frontend apps
ante install \
--preset enterprise \
--frontend-domain https://erp.company.com \
--api-domain https://api.company.com \
--with-all-frontendsNote: SSL/HTTPS configuration is done after installation using ante set-domain --ssl or ante ssl enable commands.
Post-Installation
After installation completes:
1. Save Credentials
The installation creates a file with all credentials:
# View credentials
cat ./ante-erp/installation-credentials.txt⚠️ Important: Save this file in a secure location. You'll need these credentials to access your ANTE system.
2. Verify Installation
# Check that all services are running
ante status
# Should show all services as "running" and "healthy"3. Access ANTE
Open your browser and navigate to:
- Local installation: http://localhost:8080
- Custom domain: https://erp.company.com (or your domain)
4. Create Admin Account
Follow the on-screen instructions to create your admin account.
Updating the CLI
Keep the CLI up to date to get the latest features and bug fixes:
Check for Updates
# Check if update is available
ante update-cli --checkUpdate to Latest Version
# Update the CLI
ante update-cli
# Or manually with npm
npm update -g ante-erp-cliUpdate to Specific Version
npm install -g ante-erp-cli@1.0.3Uninstalling the CLI
If you need to uninstall the CLI tool:
Global Installation
# Uninstall globally
npm uninstall -g ante-erp-cliClean Up Configuration
# Remove CLI configuration (optional)
rm -rf ~/.config/ante-cliNote: This only removes the CLI tool. To uninstall ANTE ERP itself, use:
ante uninstall # Before uninstalling the CLIInstallation Locations
CLI Binary
After global installation, the ante command is available from:
- Linux/macOS:
/usr/local/bin/anteor~/.npm/bin/ante - Windows:
%APPDATA%\npm\ante.cmd
CLI Configuration
The CLI stores its configuration in:
- Linux/macOS:
~/.config/ante-cli/ - Windows:
%APPDATA%\ante-cli\
ANTE Installation
By default, ANTE is installed to:
- Default:
./ante-erp/(in the directory where you runante install) - Custom: Specified with
--diroption
Permissions
Linux/macOS
If you encounter permission errors:
# Option 1: Fix npm permissions (recommended)
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.bashrc
source ~/.bashrc
# Then install again
npm install -g ante-erp-cli
# Option 2: Use sudo (not recommended)
sudo npm install -g ante-erp-cliDocker Permissions
The CLI needs Docker access. If you get Docker permission errors:
# Add your user to docker group
sudo usermod -aG docker $USER
newgrp docker
# Verify
docker psTroubleshooting Installation
Command Not Found
Issue: ante: command not found
Solution:
# Check if installed
npm list -g ante-erp-cli
# Reinstall if needed
npm install -g ante-erp-cli
# Check PATH
echo $PATH
# Add npm global bin to PATH
export PATH="$(npm config get prefix)/bin:$PATH"npm Permission Errors
Issue: EACCES: permission denied
Solution: Use the permission fix above or install in user directory.
Node.js Version Too Old
Issue: Error: The engine "node" is incompatible
Solution:
# Update Node.js to version 24 or higher
# On Ubuntu/Debian
curl -fsSL https://deb.nodesource.com/setup_24.x | sudo -E bash -
sudo apt-get install -y nodejs
# Verify
node --versionDocker Not Running
Issue: Cannot connect to Docker daemon
Solution:
# Start Docker service
sudo systemctl start docker
# Enable Docker to start on boot
sudo systemctl enable docker
# Verify
docker psNext Steps
Now that the CLI is installed, you can:
- Install ANTE ERP - Follow the installation steps above
- View Command Reference - Learn about all available commands
- Read Self-Hosting Guide - Complete self-hosting documentation
Additional Resources
- CLI Overview - Introduction to the ANTE CLI
- Command Reference - Complete list of commands
- Troubleshooting - Solutions to common issues
- GitHub Repository - Source code and issues
Getting Help
If you encounter issues not covered here:
- Run diagnostics:
ante doctor - Check logs:
ante logs - GitHub Issues: https://github.com/gtplusnet/ante-official/issues
- Email Support: support@ante.ph
