aboutsummaryrefslogtreecommitdiffhomepage
path: root/support/doc/tools.md
diff options
context:
space:
mode:
Diffstat (limited to 'support/doc/tools.md')
-rw-r--r--support/doc/tools.md9
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
233To 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
232If you want to interact with the application libraries and objects even when PeerTube is not running, there is a REPL for that. 241If you want to interact with the application libraries and objects even when PeerTube is not running, there is a REPL for that.