mirror of
https://github.com/writefreely/documentation.git
synced 2024-11-14 23:11:03 +00:00
Update commands doc to use commands, not flags
This commit is contained in:
parent
73af8d45ae
commit
7c9bcb0645
@ -1,6 +1,6 @@
|
|||||||
# Admin Commands
|
# Admin Commands
|
||||||
|
|
||||||
The following application flags allow administrators to perform certain actions on their instance, including installing, upgrading, or maintaining it.
|
The following application commands allow administrators to perform certain actions on their instance, including installing, upgrading, or maintaining it.
|
||||||
|
|
||||||
## Options
|
## Options
|
||||||
|
|
||||||
@ -10,16 +10,24 @@ These options can be used in conjunction with any other flags.
|
|||||||
| ---- | ----------- |
|
| ---- | ----------- |
|
||||||
| `-c [filename]` | Config file to use with any other operation |
|
| `-c [filename]` | Config file to use with any other operation |
|
||||||
| `--debug` | Output debug information in application logs |
|
| `--debug` | Output debug information in application logs |
|
||||||
|
| `-h` | Output help for any command |
|
||||||
|
|
||||||
## Setup
|
## Setup
|
||||||
|
|
||||||
Use these flags to perform certain actions as part of the setup process.
|
Use these flags to perform certain actions as part of the setup process.
|
||||||
|
|
||||||
| Flag | Description | Interactive? |
|
| Command | Description | Interactive? |
|
||||||
| ---- | ----------- | ------------ |
|
| ------- | ----------- | ------------ |
|
||||||
| `--config` | Start the configuration process | Yes |
|
| `config start` | Start the configuration process | Yes |
|
||||||
| `--gen-keys` | Generate encryption keys | No |
|
| `keys generate` | Generate encryption keys | No |
|
||||||
| `--init-db` | Initialize the database by creating the necessary tables | No |
|
| `db init` | Initialize the database by creating the necessary tables | No |
|
||||||
|
|
||||||
|
For example, run these commands in order to set up your instance:
|
||||||
|
|
||||||
|
```
|
||||||
|
writefreely config start
|
||||||
|
writefreely keys generate
|
||||||
|
```
|
||||||
|
|
||||||
### Setup options
|
### Setup options
|
||||||
|
|
||||||
@ -41,22 +49,23 @@ writefreely --config --sections="app db server"
|
|||||||
|
|
||||||
These flags assist with upgrading an instance.
|
These flags assist with upgrading an instance.
|
||||||
|
|
||||||
| Flag | Description |
|
| Command | Description |
|
||||||
| ---- | ----------- |
|
| ------- | ----------- |
|
||||||
| `--migrate` | Migrate database schema to the latest version |
|
| `db migrate` | Migrate database schema to the latest version |
|
||||||
|
|
||||||
## User administraction
|
## User administration
|
||||||
|
|
||||||
Use these flags to perform actions around users.
|
Use these flags to perform actions around users.
|
||||||
|
|
||||||
| Flag | Description | Interactive? |
|
| Command | Description | Interactive? |
|
||||||
| ---- | ----------- | ------------ |
|
| ------- | ----------- | ------------ |
|
||||||
| `--create-admin [username]:[password]` | Create an admin user in the database. Fails if admin already exists. | No |
|
| `user create --admin [username]:[password]` | Create an admin user in the database. Fails if admin already exists. | No |
|
||||||
| `--create-user [username]:[password]` | Create a regular user in the database. Fails if no admin user exists yet. | No |
|
| `user create [username]:[password]` | Create a regular user in the database. Fails if no admin user exists yet. | No |
|
||||||
| `--reset-pass [username]` | Reset the given user's password | Yes |
|
| `user reset-pass [username]` | Reset the given user's password | Yes |
|
||||||
|
| `user delete [username]` | Delete the given user, after confirming interactively | Yes |
|
||||||
|
|
||||||
## Miscellaneous
|
## Miscellaneous
|
||||||
|
|
||||||
| Flag | Description |
|
| Command | Description |
|
||||||
| ---- | ----------- |
|
| ------- | ----------- |
|
||||||
| `-v` | Print WriteFreely version information |
|
| `-v` | Print WriteFreely version information |
|
||||||
|
Loading…
Reference in New Issue
Block a user