@radic/hosting
TypeScript icon, indicating that this package has built-in type declarations

1.2.11 • Public • Published

Hosting CLI tool

A tool to manage apache/nginx/php/mysql. Only works for Linux (Ubuntu/Mint).

Install

  1. Install package
    npm install -g @radic/hosting
  2. 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]

Package Sidebar

Install

npm i @radic/hosting

Weekly Downloads

1

Version

1.2.11

License

MIT

Unpacked Size

1.16 MB

Total Files

138

Last publish

Collaborators

  • radic