shuo-docs/Usage.md

118 lines
1.2 KiB
Markdown

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
```