1.2.11 • Published 4 months ago
@radic/hosting v1.2.11
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]
1.2.9
4 months ago
1.2.10
4 months ago
1.2.11
4 months ago
1.2.8
4 months ago
1.2.7
4 months ago
1.2.6
4 months ago
1.2.5
4 months ago
1.2.0
4 months ago
1.1.1
4 months ago
1.1.0
4 months ago
1.0.1
4 months ago
1.2.4
4 months ago
1.2.3
4 months ago
1.2.2
4 months ago
1.1.3
4 months ago
1.2.1
4 months ago
1.1.2
4 months ago
1.0.3
2 years ago
1.0.2
2 years ago