Skip to content

Admin: add `src admin create` command

Erik Seliger requested to merge jdp/create-admin-user into main

Created by: jdpleiness

Add src admin create command to setup an initial admin account on a new deployment of Sourcegraph. This is mainly useful for CI pipelines and integration testing purposes in which a Sourcegraph deployment will be deployed in an automated way.

This functionality was previously tied to the experimental src validate command but was removed.

Test plan

Locally tested changes using latest Sourcegraph Helm install.

ran go test ./... - all tests passing ran staticcheck ./... - no issues found in new code

Merge request reports

Loading