1.1.0 • Published 6 months ago

@clowzed/sero v1.1.0

Weekly downloads
-
License
ISC
Repository
github
Last release
6 months ago

Sero server managing tool

This is a cli tool for managing sites hosted with sero server

Installation

npm i -g @clowzed/sero

Usage

Run sero --help to see help messages

Usage: sero [options] [command]

Options:
  -l, --level <level>                 set log level
  -h, --help                          display help for command

Commands:
  init     [directory]                Create default sero.toml in the specified directory
  enable   [directory]                Enable site from specified directory
  disable  [directory]                Disable site from specified directory
  teardown [directory]                Delete site. Subdomain wil be freed
  register [directory]                Register user from sero.toml
  download [directory] [destination]  Download site from specified directory
  upload   [directory]                Upload site from specified directory
  help     [command]                  display help for command

Features

  • Custom 404.html will be returned if requested page was not found
  • Custom 503.html new
  • Enable and disable site new (503 status will be returned with 503.html if provided)
  • Download site new new
  • Teardown site

Explanation

  1. Create a directory for your site and cd into it
mkdir /mysite
cd /mysite
  1. Initialize sero.toml
sero init
  1. Modify sero.toml the way you want
  2. Upload your site to sero server
sero upload
  1. If you want to disable site without freeing subdomain
sero disable

This will return 503 Status Code and your 503.html if you created it

  1. To enable site
sero enable
  1. If you want to download site back as zip file
sero download
  1. If you do not like your site anymore
sero teardown