Authenticating
To start working with your ElectricDB CLI you need to connect it to your ElectricDB Account. That means either:
- signing up to create an account; or
- logging in to your existing account
Sign up
To create an account run:
electric auth signup
This will open a web page where you can:
- enter your name, email and password
- setup TOTP-based two-factor authentication
You will then be prompted for your credit card details. Note that while these are required to sign up, no payment will be taken during your free trial.
Once you're done signing up on the website, close the browser window and return to the command line.
Log in
If you already have a ElectricDB account, log in by running:
electric auth login
This will open a web page where you can log in with your email, password and TOTP 2fa code.
Once you're done logging in on the website, close the browser window and return to the command line.
Next step
You're now ready to create a database: