diff options
author | Chocobozzz <me@florianbigard.com> | 2019-04-15 09:54:09 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-04-15 09:57:24 +0200 |
commit | 31b48aad478506d4214586f02792816efa968e4b (patch) | |
tree | ab45ca655b3cf33d2dbcca1a9997a9675c1e9bd4 | |
parent | 28e0e40d2b301f109a4dd20a5be1f0b58e8201ad (diff) | |
download | PeerTube-31b48aad478506d4214586f02792816efa968e4b.tar.gz PeerTube-31b48aad478506d4214586f02792816efa968e4b.tar.zst PeerTube-31b48aad478506d4214586f02792816efa968e4b.zip |
Add change user password from CLI documentation
-rw-r--r-- | support/doc/tools.md | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/support/doc/tools.md b/support/doc/tools.md index 1a9ba7d2b..2ca1d508b 100644 --- a/support/doc/tools.md +++ b/support/doc/tools.md | |||
@@ -18,6 +18,7 @@ | |||
18 | - [prune-storage.js](#prune-storagejs) | 18 | - [prune-storage.js](#prune-storagejs) |
19 | - [optimize-old-videos.js](#optimize-old-videosjs) | 19 | - [optimize-old-videos.js](#optimize-old-videosjs) |
20 | - [update-host.js](#update-hostjs) | 20 | - [update-host.js](#update-hostjs) |
21 | - [reset-password.js](#reset-passwordjs) | ||
21 | - [REPL (Read Eval Print Loop)](#repl-read-eval-print-loop) | 22 | - [REPL (Read Eval Print Loop)](#repl-read-eval-print-loop) |
22 | - [.help](#help) | 23 | - [.help](#help) |
23 | - [Lodash example](#lodash-example) | 24 | - [Lodash example](#lodash-example) |
@@ -227,6 +228,14 @@ to run: | |||
227 | $ sudo -u peertube NODE_CONFIG_DIR=/var/www/peertube/config NODE_ENV=production npm run update-host | 228 | $ sudo -u peertube NODE_CONFIG_DIR=/var/www/peertube/config NODE_ENV=production npm run update-host |
228 | ``` | 229 | ``` |
229 | 230 | ||
231 | ### reset-password.js | ||
232 | |||
233 | To reset a user password from CLI, run: | ||
234 | |||
235 | ``` | ||
236 | $ sudo -u peertube NODE_CONFIG_DIR=/var/www/peertube/config NODE_ENV=production npm run reset-password -- -u target_username | ||
237 | ``` | ||
238 | |||
230 | ### REPL ([Read Eval Print Loop](https://nodejs.org/docs/latest-v8.x/api/repl.html)) | 239 | ### REPL ([Read Eval Print Loop](https://nodejs.org/docs/latest-v8.x/api/repl.html)) |
231 | 240 | ||
232 | If you want to interact with the application libraries and objects even when PeerTube is not running, there is a REPL for that. | 241 | If you want to interact with the application libraries and objects even when PeerTube is not running, there is a REPL for that. |