← 返回命令列表

Linux command

gitea 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Start Gitea server

gitea

Start with config

gitea --config [/etc/gitea/app.ini]

Generate secret key

gitea generate secret INTERNAL_TOKEN

Create admin user

gitea admin user create --username [admin] --password [password] --email [admin@example.com] --admin

Web command

gitea web

说明

gitea is a self-hosted Git service written in Go. It provides GitHub-like functionality including repositories, issues, pull requests, and CI/CD, all packaged in a single binary. Gitea is lightweight and fast, suitable for personal or small team use. It supports OAuth, LDAP, and various database backends for enterprise deployments.

参数

web
Start web server.
admin
Admin operations.
generate
Generate tokens/keys.
dump
Backup repository.
--config _FILE_
Configuration file.
--port _PORT_
Server port.
--help
Display help information.

FAQ

What is the gitea command used for?

gitea is a self-hosted Git service written in Go. It provides GitHub-like functionality including repositories, issues, pull requests, and CI/CD, all packaged in a single binary. Gitea is lightweight and fast, suitable for personal or small team use. It supports OAuth, LDAP, and various database backends for enterprise deployments.

How do I run a basic gitea example?

Run `gitea` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does web do in gitea?

Start web server.