mirror of
https://gitea.com/gitea/docs.git
synced 2026-07-21 18:27:41 +00:00
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
This commit is contained in:
@@ -64,6 +64,13 @@ Admin operations:
|
|||||||
- `--password value`, `-p value`: New password. Required.
|
- `--password value`, `-p value`: New password. Required.
|
||||||
- Examples:
|
- Examples:
|
||||||
- `gitea admin change-password --username myname --password asecurepassword`
|
- `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
|
#### cert
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user