`--config, -c`: Set custom config file _(default: `{WorkPath}/custom/conf/app.ini`)_
`--custom-path, -C`: Set custom path _(default: `{WorkPath}/custom`)_
`--debug`:
`--enable-pprof`:
`--help, -h`: show help
`--work-path, -w`: Set Forgejo's working path (defaults to the Forgejo's binary directory)
#### help, h
Shows a list of commands or help for one command
`--config, -c`: Set custom config file _(default: `{WorkPath}/custom/conf/app.ini`)_
`--custom-path, -C`: Set custom path _(default: `{WorkPath}/custom`)_
`--help, -h`: show help
`--work-path, -w`: Set Forgejo's working path (defaults to the Forgejo's binary directory)
### hook
Delegate commands to corresponding Git hooks
`--config, -c`: Set custom config file _(default: `{WorkPath}/custom/conf/app.ini`)_
`--custom-path, -C`: Set custom path _(default: `{WorkPath}/custom`)_
`--help, -h`: show help
`--work-path, -w`: Set Forgejo's working path (defaults to the Forgejo's binary directory)
#### pre-receive
Delegate pre-receive Git hook
`--config, -c`: Set custom config file _(default: `{WorkPath}/custom/conf/app.ini`)_
`--custom-path, -C`: Set custom path _(default: `{WorkPath}/custom`)_
`--debug`:
`--help, -h`: show help
`--work-path, -w`: Set Forgejo's working path (defaults to the Forgejo's binary directory)
##### help, h
Shows a list of commands or help for one command
`--config, -c`: Set custom config file _(default: `{WorkPath}/custom/conf/app.ini`)_
`--custom-path, -C`: Set custom path _(default: `{WorkPath}/custom`)_
`--help, -h`: show help
`--work-path, -w`: Set Forgejo's working path (defaults to the Forgejo's binary directory)
#### update
Delegate update Git hook
`--config, -c`: Set custom config file _(default: `{WorkPath}/custom/conf/app.ini`)_
`--custom-path, -C`: Set custom path _(default: `{WorkPath}/custom`)_
`--debug`:
`--help, -h`: show help
`--work-path, -w`: Set Forgejo's working path (defaults to the Forgejo's binary directory)
##### help, h
Shows a list of commands or help for one command
`--config, -c`: Set custom config file _(default: `{WorkPath}/custom/conf/app.ini`)_
`--custom-path, -C`: Set custom path _(default: `{WorkPath}/custom`)_
`--help, -h`: show help
`--work-path, -w`: Set Forgejo's working path (defaults to the Forgejo's binary directory)
#### post-receive
Delegate post-receive Git hook
`--config, -c`: Set custom config file _(default: `{WorkPath}/custom/conf/app.ini`)_
`--custom-path, -C`: Set custom path _(default: `{WorkPath}/custom`)_
`--debug`:
`--help, -h`: show help
`--work-path, -w`: Set Forgejo's working path (defaults to the Forgejo's binary directory)
##### help, h
Shows a list of commands or help for one command
`--config, -c`: Set custom config file _(default: `{WorkPath}/custom/conf/app.ini`)_
`--custom-path, -C`: Set custom path _(default: `{WorkPath}/custom`)_
`--help, -h`: show help
`--work-path, -w`: Set Forgejo's working path (defaults to the Forgejo's binary directory)
#### proc-receive
Delegate proc-receive Git hook
`--config, -c`: Set custom config file _(default: `{WorkPath}/custom/conf/app.ini`)_
`--custom-path, -C`: Set custom path _(default: `{WorkPath}/custom`)_
`--debug`:
`--help, -h`: show help
`--work-path, -w`: Set Forgejo's working path (defaults to the Forgejo's binary directory)
##### help, h
Shows a list of commands or help for one command
`--config, -c`: Set custom config file _(default: `{WorkPath}/custom/conf/app.ini`)_
`--custom-path, -C`: Set custom path _(default: `{WorkPath}/custom`)_
`--help, -h`: show help
`--work-path, -w`: Set Forgejo's working path (defaults to the Forgejo's binary directory)
#### help, h
Shows a list of commands or help for one command
`--config, -c`: Set custom config file _(default: `{WorkPath}/custom/conf/app.ini`)_
`--custom-path, -C`: Set custom path _(default: `{WorkPath}/custom`)_
`--help, -h`: show help
`--work-path, -w`: Set Forgejo's working path (defaults to the Forgejo's binary directory)
### dump
Dump Forgejo files and database
`--config, -c`: Set custom config file _(default: `{WorkPath}/custom/conf/app.ini`)_
`--custom-path, -C`: Set custom path _(default: `{WorkPath}/custom`)_
`--database, -d`: Specify the database SQL syntax
`--file, -f`: Name of the dump file which will be created. Supply '-' for stdout. See type for available types. _(default: `forgejo-dump-1693311145.zip`)_
`--help, -h`: show help
`--quiet, -q`: Only display warnings and errors
`--skip-attachment-data`: Skip attachment data
`--skip-custom-dir`: Skip custom directory
`--skip-index`: Skip bleve index data
`--skip-lfs-data`: Skip LFS data
`--skip-log, -L`: Skip the log dumping
`--skip-package-data`: Skip package data
`--skip-repository, -R`: Skip the repository dumping
`--tempdir, -t`: Temporary dir path _(default: `/var/folders/xj/1byxn7qs2tbgspdl9m2839tm0000gn/T/`)_
`--admin-filter`: An LDAP filter specifying if a user should be given administrator privileges.
`--allow-deactivate-all`: Allow empty search results to deactivate all users.
`--avatar-attribute`: The attribute of the user’s LDAP record containing the user’s avatar.
`--config, -c`: Set custom config file _(default: `{WorkPath}/custom/conf/app.ini`)_
`--custom-path, -C`: Set custom path _(default: `{WorkPath}/custom`)_
`--email-attribute`: The attribute of the user’s LDAP record containing the user’s email address.
`--firstname-attribute`: The attribute of the user’s LDAP record containing the user’s first name.
`--help, -h`: show help
`--host`: The address where the LDAP server can be reached.
`--id`: ID of authentication source _(default: `0`)_
`--name`: Authentication name.
`--not-active`: Deactivate the authentication source.
`--port`: The port to use when connecting to the LDAP server. _(default: `0`)_
`--public-ssh-key-attribute`: The attribute of the user’s LDAP record containing the user’s public ssh key.
`--restricted-filter`: An LDAP filter specifying if a user should be given restricted status.
`--security-protocol`: Security protocol name.
`--skip-local-2fa`: Set to true to skip local 2fa for users authenticated by this source
`--skip-tls-verify`: Disable TLS verification.
`--surname-attribute`: The attribute of the user’s LDAP record containing the user’s surname.
`--user-dn`: The user’s DN.
`--user-filter`: An LDAP filter declaring how to find the user record that is attempting to authenticate.
`--user-search-base`: The LDAP base at which user accounts will be searched for.
`--username-attribute`: The attribute of the user’s LDAP record containing the user name.
`--work-path, -w`: Set Forgejo's working path (defaults to the Forgejo's binary directory)
###### help, h
Shows a list of commands or help for one command
`--config, -c`: Set custom config file _(default: `{WorkPath}/custom/conf/app.ini`)_
`--custom-path, -C`: Set custom path _(default: `{WorkPath}/custom`)_
`--help, -h`: show help
`--work-path, -w`: Set Forgejo's working path (defaults to the Forgejo's binary directory)
##### add-smtp
Add new SMTP authentication source
`--active`: This Authentication Source is Activated.
`--allowed-domains`: Leave empty to allow all domains. Separate multiple domains with a comma (',')
`--auth-type`: SMTP Authentication Type (PLAIN/LOGIN/CRAM-MD5) default PLAIN _(default: `PLAIN`)_
`--config, -c`: Set custom config file _(default: `{WorkPath}/custom/conf/app.ini`)_
`--custom-path, -C`: Set custom path _(default: `{WorkPath}/custom`)_
`--disable-helo`: Disable SMTP helo.
`--force-smtps`: SMTPS is always used on port 465. Set this to force SMTPS on other ports.
`--helo-hostname`: Hostname sent with HELO. Leave blank to send current hostname
`--help, -h`: show help
`--host`: SMTP Host
`--name`: Application Name
`--port`: SMTP Port _(default: `0`)_
`--skip-local-2fa`: Skip 2FA to log on.
`--skip-verify`: Skip TLS verify.
`--work-path, -w`: Set Forgejo's working path (defaults to the Forgejo's binary directory)
###### help, h
Shows a list of commands or help for one command
`--config, -c`: Set custom config file _(default: `{WorkPath}/custom/conf/app.ini`)_
`--custom-path, -C`: Set custom path _(default: `{WorkPath}/custom`)_
`--help, -h`: show help
`--work-path, -w`: Set Forgejo's working path (defaults to the Forgejo's binary directory)
##### update-smtp
Update existing SMTP authentication source
`--active`: This Authentication Source is Activated.
`--allowed-domains`: Leave empty to allow all domains. Separate multiple domains with a comma (',')
`--auth-type`: SMTP Authentication Type (PLAIN/LOGIN/CRAM-MD5) default PLAIN _(default: `PLAIN`)_
`--config, -c`: Set custom config file _(default: `{WorkPath}/custom/conf/app.ini`)_
`--custom-path, -C`: Set custom path _(default: `{WorkPath}/custom`)_
`--disable-helo`: Disable SMTP helo.
`--force-smtps`: SMTPS is always used on port 465. Set this to force SMTPS on other ports.
`--helo-hostname`: Hostname sent with HELO. Leave blank to send current hostname
`--help, -h`: show help
`--host`: SMTP Host
`--id`: ID of authentication source _(default: `0`)_
`--name`: Application Name
`--port`: SMTP Port _(default: `0`)_
`--skip-local-2fa`: Skip 2FA to log on.
`--skip-verify`: Skip TLS verify.
`--work-path, -w`: Set Forgejo's working path (defaults to the Forgejo's binary directory)
###### help, h
Shows a list of commands or help for one command
`--config, -c`: Set custom config file _(default: `{WorkPath}/custom/conf/app.ini`)_
`--custom-path, -C`: Set custom path _(default: `{WorkPath}/custom`)_
`--help, -h`: show help
`--work-path, -w`: Set Forgejo's working path (defaults to the Forgejo's binary directory)
##### list
List auth sources
`--config, -c`: Set custom config file _(default: `{WorkPath}/custom/conf/app.ini`)_
`--custom-path, -C`: Set custom path _(default: `{WorkPath}/custom`)_
`--help, -h`: show help
`--min-width`: Minimal cell width including any padding for the formatted table _(default: `0`)_
`--pad-char`: ASCII char used for padding if padchar == '\\t', the Writer will assume that the width of a '\\t' in the formatted output is tabwidth, and cells are left-aligned independent of align*left (for correct-looking results, tabwidth must correspond to the tab width in the viewer displaying the result) *(default: ` `)\_
`--padding`: padding added to a cell before computing its width _(default: `0`)_
`--tab-width`: width of tab characters in formatted table (equivalent number of spaces) _(default: `0`)_
`--vertical-bars`: Set to true to print vertical bars between columns
`--work-path, -w`: Set Forgejo's working path (defaults to the Forgejo's binary directory)
###### help, h
Shows a list of commands or help for one command
`--config, -c`: Set custom config file _(default: `{WorkPath}/custom/conf/app.ini`)_
`--custom-path, -C`: Set custom path _(default: `{WorkPath}/custom`)_
`--help, -h`: show help
`--work-path, -w`: Set Forgejo's working path (defaults to the Forgejo's binary directory)
##### delete
Delete specific auth source
`--config, -c`: Set custom config file _(default: `{WorkPath}/custom/conf/app.ini`)_
`--custom-path, -C`: Set custom path _(default: `{WorkPath}/custom`)_
`--help, -h`: show help
`--id`: ID of authentication source _(default: `0`)_
`--work-path, -w`: Set Forgejo's working path (defaults to the Forgejo's binary directory)
###### help, h
Shows a list of commands or help for one command
`--config, -c`: Set custom config file _(default: `{WorkPath}/custom/conf/app.ini`)_
`--custom-path, -C`: Set custom path _(default: `{WorkPath}/custom`)_
`--help, -h`: show help
`--work-path, -w`: Set Forgejo's working path (defaults to the Forgejo's binary directory)
##### help, h
Shows a list of commands or help for one command
`--config, -c`: Set custom config file _(default: `{WorkPath}/custom/conf/app.ini`)_
`--custom-path, -C`: Set custom path _(default: `{WorkPath}/custom`)_
`--help, -h`: show help
`--work-path, -w`: Set Forgejo's working path (defaults to the Forgejo's binary directory)
#### sendmail
Send a message to all users
`--config, -c`: Set custom config file _(default: `{WorkPath}/custom/conf/app.ini`)_
`--content`: a content of a message
`--custom-path, -C`: Set custom path _(default: `{WorkPath}/custom`)_
`--force, -f`: A flag to bypass a confirmation step
`--help, -h`: show help
`--title`: a title of a message
`--work-path, -w`: Set Forgejo's working path (defaults to the Forgejo's binary directory)
##### help, h
Shows a list of commands or help for one command
`--config, -c`: Set custom config file _(default: `{WorkPath}/custom/conf/app.ini`)_
`--custom-path, -C`: Set custom path _(default: `{WorkPath}/custom`)_
`--help, -h`: show help
`--work-path, -w`: Set Forgejo's working path (defaults to the Forgejo's binary directory)
#### help, h
Shows a list of commands or help for one command
`--config, -c`: Set custom config file _(default: `{WorkPath}/custom/conf/app.ini`)_
`--custom-path, -C`: Set custom path _(default: `{WorkPath}/custom`)_
`--help, -h`: show help
`--work-path, -w`: Set Forgejo's working path (defaults to the Forgejo's binary directory)
### migrate
Migrate the database
`--config, -c`: Set custom config file _(default: `{WorkPath}/custom/conf/app.ini`)_
`--custom-path, -C`: Set custom path _(default: `{WorkPath}/custom`)_
`--help, -h`: show help
`--work-path, -w`: Set Forgejo's working path (defaults to the Forgejo's binary directory)
#### help, h
Shows a list of commands or help for one command
`--config, -c`: Set custom config file _(default: `{WorkPath}/custom/conf/app.ini`)_
`--custom-path, -C`: Set custom path _(default: `{WorkPath}/custom`)_
`--help, -h`: show help
`--work-path, -w`: Set Forgejo's working path (defaults to the Forgejo's binary directory)
### keys
This command queries the Forgejo database to get the authorized command for a given ssh key fingerprint
`--config, -c`: Set custom config file _(default: `{WorkPath}/custom/conf/app.ini`)_
`--content, -k`: Base64 encoded content of the SSH key provided to the SSH Server (requires type to be provided too)
`--custom-path, -C`: Set custom path _(default: `{WorkPath}/custom`)_
`--expected, -e`: Expected user for whom provide key commands _(default: `git`)_
`--help, -h`: show help
`--type, -t`: Type of the SSH key provided to the SSH Server (requires content to be provided too)
`--username, -u`: Username trying to log in by SSH
`--work-path, -w`: Set Forgejo's working path (defaults to the Forgejo's binary directory)
#### help, h
Shows a list of commands or help for one command
`--config, -c`: Set custom config file _(default: `{WorkPath}/custom/conf/app.ini`)_
`--custom-path, -C`: Set custom path _(default: `{WorkPath}/custom`)_
`--help, -h`: show help
`--work-path, -w`: Set Forgejo's working path (defaults to the Forgejo's binary directory)
### doctor
Diagnose and optionally fix problems
`--config, -c`: Set custom config file _(default: `{WorkPath}/custom/conf/app.ini`)_
`--custom-path, -C`: Set custom path _(default: `{WorkPath}/custom`)_
`--help, -h`: show help
`--work-path, -w`: Set Forgejo's working path (defaults to the Forgejo's binary directory)
#### check
Diagnose and optionally fix problems
`--all`: Run all the available checks
`--color, -H`: Use color for outputted information
`--config, -c`: Set custom config file _(default: `{WorkPath}/custom/conf/app.ini`)_
`--custom-path, -C`: Set custom path _(default: `{WorkPath}/custom`)_
`--default`: Run the default checks (if neither --run or --all is set, this is the default behaviour)
`--fix`: Automatically fix what we can
`--help, -h`: show help
`--list`: List the available checks
`--log-file`: Name of the log file (no verbose log output by default). Set to "-" to output to stdout
`--run`: Run the provided checks - (if --default is set, the default checks will also run)
`--work-path, -w`: Set Forgejo's working path (defaults to the Forgejo's binary directory)
##### help, h
Shows a list of commands or help for one command
`--config, -c`: Set custom config file _(default: `{WorkPath}/custom/conf/app.ini`)_
`--custom-path, -C`: Set custom path _(default: `{WorkPath}/custom`)_
`--help, -h`: show help
`--work-path, -w`: Set Forgejo's working path (defaults to the Forgejo's binary directory)
#### recreate-table
Recreate tables from XORM definitions and copy the data.
`--config, -c`: Set custom config file _(default: `{WorkPath}/custom/conf/app.ini`)_
`--custom-path, -C`: Set custom path _(default: `{WorkPath}/custom`)_
`--debug`: Print SQL commands sent
`--help, -h`: show help
`--work-path, -w`: Set Forgejo's working path (defaults to the Forgejo's binary directory)
##### help, h
Shows a list of commands or help for one command
`--config, -c`: Set custom config file _(default: `{WorkPath}/custom/conf/app.ini`)_
`--custom-path, -C`: Set custom path _(default: `{WorkPath}/custom`)_
`--help, -h`: show help
`--work-path, -w`: Set Forgejo's working path (defaults to the Forgejo's binary directory)
#### convert
Convert the database
`--config, -c`: Set custom config file _(default: `{WorkPath}/custom/conf/app.ini`)_
`--custom-path, -C`: Set custom path _(default: `{WorkPath}/custom`)_
`--help, -h`: show help
`--work-path, -w`: Set Forgejo's working path (defaults to the Forgejo's binary directory)
##### help, h
Shows a list of commands or help for one command
`--config, -c`: Set custom config file _(default: `{WorkPath}/custom/conf/app.ini`)_
`--custom-path, -C`: Set custom path _(default: `{WorkPath}/custom`)_
`--help, -h`: show help
`--work-path, -w`: Set Forgejo's working path (defaults to the Forgejo's binary directory)
#### help, h
Shows a list of commands or help for one command
`--config, -c`: Set custom config file _(default: `{WorkPath}/custom/conf/app.ini`)_
`--custom-path, -C`: Set custom path _(default: `{WorkPath}/custom`)_
`--help, -h`: show help
`--work-path, -w`: Set Forgejo's working path (defaults to the Forgejo's binary directory)
### manager
Manage the running gitea process
`--config, -c`: Set custom config file _(default: `{WorkPath}/custom/conf/app.ini`)_
`--custom-path, -C`: Set custom path _(default: `{WorkPath}/custom`)_
`--help, -h`: show help
`--work-path, -w`: Set Forgejo's working path (defaults to the Forgejo's binary directory)
#### shutdown
Gracefully shutdown the running process
`--config, -c`: Set custom config file _(default: `{WorkPath}/custom/conf/app.ini`)_
`--custom-path, -C`: Set custom path _(default: `{WorkPath}/custom`)_
`--debug`:
`--help, -h`: show help
`--work-path, -w`: Set Forgejo's working path (defaults to the Forgejo's binary directory)
##### help, h
Shows a list of commands or help for one command
`--config, -c`: Set custom config file _(default: `{WorkPath}/custom/conf/app.ini`)_
`--custom-path, -C`: Set custom path _(default: `{WorkPath}/custom`)_
`--help, -h`: show help
`--work-path, -w`: Set Forgejo's working path (defaults to the Forgejo's binary directory)
#### restart
Gracefully restart the running process - (not implemented for windows servers)
`--config, -c`: Set custom config file _(default: `{WorkPath}/custom/conf/app.ini`)_
`--custom-path, -C`: Set custom path _(default: `{WorkPath}/custom`)_
`--debug`:
`--help, -h`: show help
`--work-path, -w`: Set Forgejo's working path (defaults to the Forgejo's binary directory)
##### help, h
Shows a list of commands or help for one command
`--config, -c`: Set custom config file _(default: `{WorkPath}/custom/conf/app.ini`)_
`--custom-path, -C`: Set custom path _(default: `{WorkPath}/custom`)_
`--help, -h`: show help
`--work-path, -w`: Set Forgejo's working path (defaults to the Forgejo's binary directory)
#### reload-templates
Reload template files in the running process
`--config, -c`: Set custom config file _(default: `{WorkPath}/custom/conf/app.ini`)_
`--custom-path, -C`: Set custom path _(default: `{WorkPath}/custom`)_
`--debug`:
`--help, -h`: show help
`--work-path, -w`: Set Forgejo's working path (defaults to the Forgejo's binary directory)
##### help, h
Shows a list of commands or help for one command
`--config, -c`: Set custom config file _(default: `{WorkPath}/custom/conf/app.ini`)_
`--custom-path, -C`: Set custom path _(default: `{WorkPath}/custom`)_
`--help, -h`: show help
`--work-path, -w`: Set Forgejo's working path (defaults to the Forgejo's binary directory)
#### flush-queues
Flush queues in the running process
`--config, -c`: Set custom config file _(default: `{WorkPath}/custom/conf/app.ini`)_
`--custom-path, -C`: Set custom path _(default: `{WorkPath}/custom`)_
`--debug`:
`--help, -h`: show help
`--non-blocking`: Set to true to not wait for flush to complete before returning
`--timeout`: Timeout for the flushing process _(default: `0s`)_
`--work-path, -w`: Set Forgejo's working path (defaults to the Forgejo's binary directory)
##### help, h
Shows a list of commands or help for one command
`--config, -c`: Set custom config file _(default: `{WorkPath}/custom/conf/app.ini`)_
`--custom-path, -C`: Set custom path _(default: `{WorkPath}/custom`)_
`--help, -h`: show help
`--work-path, -w`: Set Forgejo's working path (defaults to the Forgejo's binary directory)
#### logging
Adjust logging commands
`--config, -c`: Set custom config file _(default: `{WorkPath}/custom/conf/app.ini`)_
`--custom-path, -C`: Set custom path _(default: `{WorkPath}/custom`)_
`--help, -h`: show help
`--work-path, -w`: Set Forgejo's working path (defaults to the Forgejo's binary directory)
##### pause
Pause logging (Forgejo will buffer logs up to a certain point and will drop them after that point)
`--config, -c`: Set custom config file _(default: `{WorkPath}/custom/conf/app.ini`)_
`--custom-path, -C`: Set custom path _(default: `{WorkPath}/custom`)_
`--debug`:
`--help, -h`: show help
`--work-path, -w`: Set Forgejo's working path (defaults to the Forgejo's binary directory)
###### help, h
Shows a list of commands or help for one command
`--config, -c`: Set custom config file _(default: `{WorkPath}/custom/conf/app.ini`)_
`--custom-path, -C`: Set custom path _(default: `{WorkPath}/custom`)_
`--help, -h`: show help
`--work-path, -w`: Set Forgejo's working path (defaults to the Forgejo's binary directory)
##### resume
Resume logging
`--config, -c`: Set custom config file _(default: `{WorkPath}/custom/conf/app.ini`)_
`--custom-path, -C`: Set custom path _(default: `{WorkPath}/custom`)_
`--debug`:
`--help, -h`: show help
`--work-path, -w`: Set Forgejo's working path (defaults to the Forgejo's binary directory)
###### help, h
Shows a list of commands or help for one command
`--config, -c`: Set custom config file _(default: `{WorkPath}/custom/conf/app.ini`)_
`--custom-path, -C`: Set custom path _(default: `{WorkPath}/custom`)_
`--help, -h`: show help
`--work-path, -w`: Set Forgejo's working path (defaults to the Forgejo's binary directory)
##### release-and-reopen
Cause Forgejo to release and re-open files used for logging
`--config, -c`: Set custom config file _(default: `{WorkPath}/custom/conf/app.ini`)_
`--custom-path, -C`: Set custom path _(default: `{WorkPath}/custom`)_
`--debug`:
`--help, -h`: show help
`--work-path, -w`: Set Forgejo's working path (defaults to the Forgejo's binary directory)
###### help, h
Shows a list of commands or help for one command
`--config, -c`: Set custom config file _(default: `{WorkPath}/custom/conf/app.ini`)_
`--custom-path, -C`: Set custom path _(default: `{WorkPath}/custom`)_
`--help, -h`: show help
`--work-path, -w`: Set Forgejo's working path (defaults to the Forgejo's binary directory)
##### remove
Remove a logger
`--config, -c`: Set custom config file _(default: `{WorkPath}/custom/conf/app.ini`)_
`--custom-path, -C`: Set custom path _(default: `{WorkPath}/custom`)_
`--debug`:
`--help, -h`: show help
`--logger`: Logger name - will default to "default"
`--work-path, -w`: Set Forgejo's working path (defaults to the Forgejo's binary directory)
###### help, h
Shows a list of commands or help for one command
`--config, -c`: Set custom config file _(default: `{WorkPath}/custom/conf/app.ini`)_
`--custom-path, -C`: Set custom path _(default: `{WorkPath}/custom`)_
`--help, -h`: show help
`--work-path, -w`: Set Forgejo's working path (defaults to the Forgejo's binary directory)
##### add
Add a logger
`--config, -c`: Set custom config file _(default: `{WorkPath}/custom/conf/app.ini`)_
`--custom-path, -C`: Set custom path _(default: `{WorkPath}/custom`)_
`--help, -h`: show help
`--work-path, -w`: Set Forgejo's working path (defaults to the Forgejo's binary directory)
###### file
Add a file logger
`--color`: Use color in the logs
`--compress, -z`: Compress rotated logs
`--compression-level, -Z`: Compression level to use _(default: `0`)_
`--config, -c`: Set custom config file _(default: `{WorkPath}/custom/conf/app.ini`)_
`--custom-path, -C`: Set custom path _(default: `{WorkPath}/custom`)_
`--daily, -d`: Rotate logs daily
`--debug`:
`--expression, -e`: Matching expression for the logger
`--filename, -f`: Filename for the logger - this must be set.
`--flags, -F`: Flags for the logger
`--help, -h`: show help
`--level`: Logging level for the new logger
`--logger`: Logger name - will default to "default"
`--max-days, -D`: Maximum number of daily logs to keep _(default: `0`)_
`--max-size, -s`: Maximum size in bytes before rotation _(default: `0`)_