Fusionaly Manager
Command-line tool for managing your Fusionaly installation
Fusionaly Manager is a command-line tool that simplifies installation, updates, and maintenance of your Fusionaly instance. It works with both Free and Pro editions.
Features
Section titled “Features”- One-command installation - Set up Fusionaly with SSL certificates and reverse proxy
- Automatic updates - Keep your installation up to date via cron jobs
- Database backups - Daily, weekly, and monthly automated backups
- Easy maintenance - Reload configuration, restore backups, change passwords
Installation
Section titled “Installation”Download and run the installer:
curl -fsSL https://fusionaly.com/install | shThe installer will:
- Prompt for your domain name
- Configure SSL certificates via Let’s Encrypt
- Set up Caddy as a reverse proxy
- Pull and start the Docker containers
- Configure automatic updates and backups
Commands
Section titled “Commands”install
Section titled “install”Install Fusionaly on a fresh server:
fusionaly installupdate
Section titled “update”Update to the latest version:
fusionaly updateThis command:
- Backs up your database
- Pulls the latest Docker image
- Restarts containers with zero downtime
- Updates the manager binary if needed
reload
Section titled “reload”Reload containers with the current configuration (without backup):
fusionaly reloadUseful after manually editing the .env file.
restore-db
Section titled “restore-db”Interactively restore from a backup:
fusionaly restore-dbLists available backups and prompts you to select one.
change-admin-password
Section titled “change-admin-password”Change the admin user password:
fusionaly change-admin-passwordupdate-license-key
Section titled “update-license-key”Update your license key:
fusionaly update-license-key [key]version
Section titled “version”Show the manager version:
fusionaly versionConfiguration
Section titled “Configuration”Configuration is stored in /opt/fusionaly/.env:
FUSIONALY_DOMAIN=analytics.example.comAPP_IMAGE=karloscodes/fusionaly-pro:latestCADDY_IMAGE=caddy:2.7-alpineINSTALL_DIR=/opt/fusionalyBACKUP_PATH=/opt/fusionaly/storage/backupsVERSION=1.0.0FUSIONALY_PRIVATE_KEY=your-private-keyFUSIONALY_LICENSE_KEY=your-license-keyupgrade
Section titled “upgrade”Upgrade from Free to Pro edition:
fusionaly upgradeThis command backs up your database, switches to the Pro Docker image, and restarts the containers. After upgrading, visit your dashboard to enter your license key.
Backup System
Section titled “Backup System”The manager automatically creates backups on a schedule:
- Daily backups - Every night, retained for 7 days
- Weekly backups - Every Sunday, retained for 14 days
- Monthly backups - First of each month, retained for 90 days
Backups are stored in /opt/fusionaly/storage/backups/.
Manual Backup
Section titled “Manual Backup”The update command creates a backup before updating. For manual backups, you can use sqlite3 directly:
sqlite3 /opt/fusionaly/storage/fusionaly-production.db ".backup /path/to/backup.db"Directory Structure
Section titled “Directory Structure”/opt/fusionaly/├── .env # Configuration├── storage/│ ├── fusionaly-production.db # SQLite database│ └── backups/ # Automated backups└── logs/ # Application logsView application logs:
docker logs fusionaly-appView Caddy (reverse proxy) logs:
docker logs fusionaly-caddyTroubleshooting
Section titled “Troubleshooting”Container not starting
Section titled “Container not starting”Check Docker logs:
docker logs fusionaly-appSSL certificate issues
Section titled “SSL certificate issues”Ensure your DNS is pointing to the server and ports 80/443 are open:
curl -I https://your-domain.comDatabase locked
Section titled “Database locked”If you see database lock errors, ensure only one instance is running:
docker ps | grep fusionalyUninstalling
Section titled “Uninstalling”To completely remove Fusionaly:
# Stop and remove containersdocker stop fusionaly-app fusionaly-caddydocker rm fusionaly-app fusionaly-caddy
# Remove data (WARNING: destroys all analytics data)rm -rf /opt/fusionaly
# Remove the manager binaryrm /usr/local/bin/fusionaly