You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit adds a new 'install-fleetbase' command to the CLI that automates
the Fleetbase Docker installation process.
## Features
- Interactive prompts for host, environment, and directory
- Command-line options for non-interactive usage
- Automatic APP_KEY generation using crypto
- Creates docker-compose.override.yml with environment configuration
- Creates console/fleetbase.config.json with API and SocketCluster settings
- Starts Docker containers and waits for database readiness
- Runs deployment script automatically
- Provides clear status messages and error handling
## Usage
Interactive mode:
flb install-fleetbase
Non-interactive mode:
flb install-fleetbase --host localhost --environment development --directory ./fleetbase
## Options
--host <host> Host or IP address to bind to (default: localhost)
--environment <env> Environment: development or production (default: development)
--directory <directory> Installation directory (default: current directory)
## Implementation
The command replicates the functionality of scripts/docker-install.sh but
provides a better user experience through:
- Interactive prompts with validation
- Clear progress indicators
- Better error messages
- Cross-platform compatibility (Node.js vs Bash)
- Integration with the CLI ecosystem
## Benefits
- Easier onboarding for new users
- Consistent installation experience
- No need to navigate to scripts directory
- Better error handling and validation
- Works on Windows, macOS, and Linux
0 commit comments