@radic/hosting
v1.2.16
Published
A tool to manage apache/nginx/php/mysql. Works only for specific environments. Aimed at Linux Ubuntu / Multi-php installations
Downloads
630
Maintainers
Readme
Hosting CLI tool
A tool to manage apache/nginx/php/mysql. Only works for Linux (Ubuntu/Mint).
Install
- Install package
npm install -g @radic/hosting
- Run these commands after install
hosting set editor <editorBin> hosting set mysql.username <username> hosting set mysql.password <password> hosting services scan
Commands
hosting config list # List all config [aliases: l]
hosting config open [editor] # Open configuration in editor [aliases: o]
hosting config set [key] [value] # Set config values [aliases: s]
hosting hosts add <ip> # List host entries [aliases: a]
hosting hosts list # List host entries [aliases: l]
hosting hosts open [editor] # Open hosts file in editor [aliases: o]
hosting hosts remove <host> # Remove host entry [aliases: r]
hosting mysql import <database> <filepath> # Import MySQL database [aliases: i]
hosting mysql list # List MySQL databases [aliases: l]
hosting mysql new [name] # Create new MySQL database [aliases: n]
hosting nginx disable [configfile] # Disable Nginx site [aliases: d]
hosting nginx enable [configfile] # Enable Nginx site [aliases: e]
hosting nginx list # List Nginx sites [aliases: l]
hosting nginx new [template] # Create new Nginx site [aliases: n]
hosting nginx open [configfile] [editor] # Open config file [aliases: o]
hosting nginx reload # Reload nginx [aliases: r]
hosting nginx restart # Restart nginx [aliases: rs]
hosting services restart # Restart all managed services [aliases: r]
hosting services scan # Scan for services [aliases: s]
hosting services status # Check status of managed services [aliases: st]