Install with CLI
The fastest and easiest way to install Fleetbase is using the Fleetbase CLI tool. This method handles all the complexity of Docker setup, environment configuration, and service initialization automatically.
Prerequisites
- Node.js: Version 14 or later
- npm: Comes with Node.js
- Docker: Docker Desktop (Mac/Windows) or Docker Engine (Linux)
- Docker Compose: Version 2.0 or later (usually included with Docker Desktop)
Installation Steps
1. Install Fleetbase CLI
npm install -g @fleetbase/cli
Verify the installation:
flb --version
2. Run the Installation Command
flb install-fleetbase
The interactive installer will prompt you for:
-
Host: The IP address or hostname to bind to (default:
localhost)- Use
localhostfor local development - Use
0.0.0.0to allow external access - Use your server's IP for production
- Use
-
Environment: Choose between
developmentorproductiondevelopment: Optimized for local development with debug mode enabledproduction: Optimized for production with caching and performance features
-
Directory: Installation directory (default: current directory)
- The CLI will create a
fleetbasedirectory with all necessary files
- The CLI will create a
3. Wait for Installation
The CLI will:
- Create the installation directory
- Generate Docker Compose configuration
- Create environment files for API and Console
- Pull Docker images
- Start all services (MySQL, Redis, API, Console, SocketCluster)
- Initialize the database
This process typically takes 3-5 minutes depending on your internet connection.
4. Access Fleetbase
Once installation is complete, you'll see:
🏁 Fleetbase is up!
API → http://localhost:8000
Console → http://localhost:4200
ℹ️ Next steps:
1. Open the Console URL in your browser
2. Complete the onboarding process to create your admin account
Open your browser to http://localhost:4200 to access the Fleetbase Console.
Post-Installation
Complete Onboarding
- Open the Console at
http://localhost:4200 - Follow the onboarding wizard to:
- Create your admin account
- Set up your organization
- Configure basic settings
Configure External Services (Optional)
For production use, you'll want to configure:
- Email Service: For sending notifications and verifications
- SMS Service: For driver notifications (Twilio)
- Maps Service: For geocoding and routing (Google Maps)
- Monitoring: For error tracking (Sentry)
See the Configuration Guide for details.
Register Developer Account (For Extension Development)
If you plan to develop or publish extensions:
# Register account
flb register --host localhost:8000
# Verify email
flb verify -e your@email.com -c 123456 --host localhost:8000
# Set auth token (provided after verification)
flb set-auth flb_your_token --registry http://localhost:8000
See the CLI Documentation for more details.
Troubleshooting
Port Already in Use
If you see errors about ports already in use:
# Check what's using the ports
lsof -i :8000 # API
lsof -i :4200 # Console
lsof -i :3306 # MySQL
lsof -i :6379 # Redis
# Stop the conflicting services or choose different ports
Docker Not Running
Ensure Docker is running:
docker --version
docker compose version
If Docker isn't running, start Docker Desktop (Mac/Windows) or the Docker service (Linux):
# Linux
sudo systemctl start docker
Permission Denied
On Linux, you may need to add your user to the docker group:
sudo usermod -aG docker $USER
newgrp docker
Services Not Starting
Check the logs:
cd fleetbase # or your installation directory
docker compose logs -f
Updating Fleetbase
To update Fleetbase to the latest version:
cd fleetbase # your installation directory
docker compose pull
docker compose up -d
See the Upgrading Guide for more details.
Uninstalling
To completely remove Fleetbase:
cd fleetbase # your installation directory
docker compose down -v # -v removes volumes (databases)
cd ..
rm -rf fleetbase
Next Steps
- Configuration Guide - Configure external services
- CLI Documentation - Learn about CLI commands
- Extension Development - Build your own extensions
- API Documentation - Integrate with the Fleetbase API
Comparison with Other Installation Methods
| Method | Difficulty | Time | Best For |
|---|---|---|---|
| CLI (Recommended) | Easy | 5 min | Everyone, especially beginners |
| Docker Manual | Medium | 15 min | Advanced users who want control |
| From Source | Hard | 30 min | Developers and contributors |
The CLI method is recommended for most users as it handles all the complexity automatically while still giving you full control over the installation.