feat: expose premium trial form via CLI (#15054)

This PR closes https://github.com/coder/coder/issues/14856
This commit is contained in:
Joobi S B
2024-10-29 18:32:20 +05:30
committed by GitHub
parent 78ff375fed
commit 7982ad7659
6 changed files with 233 additions and 9 deletions

View File

@ -164,7 +164,7 @@ fatal() {
if [ ! -f "${PROJECT_ROOT}/.coderv2/developsh-did-first-setup" ]; then
# Try to create the initial admin user.
if "${CODER_DEV_SHIM}" login http://127.0.0.1:3000 --first-user-username=admin --first-user-email=admin@coder.com --first-user-password="${password}" --first-user-full-name="Admin User" --first-user-trial=true; then
if "${CODER_DEV_SHIM}" login http://127.0.0.1:3000 --first-user-username=admin --first-user-email=admin@coder.com --first-user-password="${password}" --first-user-full-name="Admin User" --first-user-trial=false; then
# Only create this file if an admin user was successfully
# created, otherwise we won't retry on a later attempt.
touch "${PROJECT_ROOT}/.coderv2/developsh-did-first-setup"