Site Administration option is not visible

I have deployed Gitea on K8s. and i am able to create the first user via command line.

/app/gitea/gitea admin user create --username gitadmin --password gitadmin --email git@git.com -c /data/gitea/conf/app.ini

As per my understanding the first user you create in gitea would be your admin user. In that case an admin user should be able to see an option ‘Site Administration’. Here am not able to see the ‘Site Administration’ option. (User created via command line).

If i create the user via UI, am able to see the ‘Site Administration’ option. I have attached the snapshots.

Kindly help on this on how i can get ‘Site Administration’ option even on CLI user creation. Thanks much!!


1 Like

You are missing the --admin flag.

yeah… i was missing it and i thought admin is mentioned in the command and it should take care, i was wrong.

/app/gitea/gitea admin user create --admin --username gitadmin --password gitadmin --email git@git.com -c /data/gitea/conf/app.ini

i added --admin flag and it worked.

Thanks much @dachary :slight_smile:

1 Like