mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08: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.
 | 
			
		||||
        - 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
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user