Gitea provides a sub-command gitea migrate to initialize the database, after which you can use the admin CLI commands to add users like normal.
gitea migrate