shuo-docs/Usage.md

1.2 KiB

Once you've installed Shou, go ahead and run:

$ shuo --help

This will give you an overiew of the commands you can use.

start

Start the Shou server.

Example:

$ shuo start --port 80 --private

Options:

  • -p, --port
  • -h, --host
  • --public
  • --private

config

Open the configuration file.

Example:

$ shuo config

list

List all existing users.

Example:

$ shuo list

add <name> [<password>]

Add a new user.

Example:

$ shuo add john

remove <name>

Remove an existing user.

Example:

$ shuo remove john

reset <name>

Reset user password.

Example:

$ shuo reset john

edit <name>

Edit user configuration file.

Example:

$ shuo edit john

Options

--home

Set the home path. This is the location where Shou will look for the config.js and the users/ folder.

Example:

$ shuo --home /app add <user>  # add user to /app/users
$ shuo --home /app             # start server with /app/config.js

--help

Output usage information.

Example:

$ shuo --help

--version

Output the version number.

Example:

$ shuo --version