offen / offen

Offen Fair Web Analytics

Home Page:https://www.offen.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Missing required parameters to create initial account, use the -help flag for reference on parameters

ushby opened this issue · comments

When trying to run the offen setup that if I am correct, configures things by asking for prompts.. I get : "FATA[0006] Missing required parameters to create initial account, use the -help flag for reference on parameters".

How can we fix this ?

Thank you !

offen setup does not work with prompts (this is only used for the password), but expects all needed parameters to be given when executed. offen setup -help prints:

"setup" is used to populate a fresh Offen instance with user(s) and account(s).
In the most basic case, you are likely going to create a single user and an
account will then use the UI to add more users create additional accounts.

A basic example for setting up a new instance looks like:

$ offen setup -name "My New Account" -email me@mydomain.org -populate

The command will then prompt for a password to use. Passing -populate will
create potentially missing secrets in your envfile. Do not pass the flag if you
plan to do this yourself.

If you do not want to use the CLI, you can also create an initial account and
user by visting "/setup/" in your browser while the Offen instance is running.

Usage of "setup":
  -email string
        the email address used for login
  -envfile string
        the env file to use
  -force
        allow setup to delete existing data
  -forceid string
        force usage of given valid UUID as account ID (this is meant to be used in tests or similar - you probably do not want to use this)
  -name string
        the account name
  -password string
        the password used for login (must be at least 8 characters long)
  -populate
        in case required secrets are missing from the configuration, create and persist them in the target env file
  -source string
        a configuration file (this is an experimental feature - do not use it if you are not sure)

If you prefer an interactive setup, you can use the browser based procedure served at /setup.

Oh wow, very good, I didn't know that this is how it can be done, thank you for this valuable information, and sorry for taking the time !