summaryrefslogtreecommitdiffstats
path: root/docs/content/doc/usage
diff options
context:
space:
mode:
authortechknowlogick <techknowlogick@users.noreply.github.com>2018-05-16 21:35:07 -0400
committerBo-Yi Wu <appleboy.tw@gmail.com>2018-05-17 09:35:07 +0800
commit8176345c0ed7f947d9748a9b1774ad00f5199281 (patch)
tree3f0d9d6b11e98c5a41c5e7fbbcf5b79435be5ca8 /docs/content/doc/usage
parentecfc401eaa707914d487574134fcd9e3bbeac60d (diff)
downloadgitea-8176345c0ed7f947d9748a9b1774ad00f5199281.tar.gz
gitea-8176345c0ed7f947d9748a9b1774ad00f5199281.zip
Add cli commands to regen hooks & keys (#3979)
* Add cli commands to regen hooks & keys * make fmt * Allow passing path to config as an option * add docs
Diffstat (limited to 'docs/content/doc/usage')
-rw-r--r--docs/content/doc/usage/command-line.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/content/doc/usage/command-line.md b/docs/content/doc/usage/command-line.md
index cf6feeaf5e..9c16d49049 100644
--- a/docs/content/doc/usage/command-line.md
+++ b/docs/content/doc/usage/command-line.md
@@ -64,6 +64,13 @@ Admin operations:
- `--password value`, `-p value`: New password. Required.
- Examples:
- `gitea admin change-password --username myname --password asecurepassword`
+ - `regenerate`
+ - Options:
+ - `hooks`: Regenerate git-hooks for all repositories
+ - `keys`: Regenerate authorized_keys file
+ - Examples:
+ - `gitea admin regenerate hooks`
+ - `gitea admin regenerate keys`
#### cert