Skip to main content

Install Logto

Interactive

Run the command below to proceed an interactive installation in your terminal:

logto init

Options and silent installation

Alternatively, you can add any of the options below (all optional) to skip some questions:

OptionDescription
--db-urlThe Postgres URL to Logto database.
-p, --pathPath to your Logto instance, must be a non-existing path.
--ssSkip Logto database seeding.
--disable-admin-pwned-password-check, --dapcSeed the admin tenant with the Have I Been Pwned (HIBP) password breach check disabled, for air-gapped or offline deployments. See Seed for air-gapped or offline deployments.

Run logto init --help for full help info.

Here's an example for performing a silent installation (e.g., in CI):

logto init -p ./logto --db-url postgresql://your-postgres-dsn:5432/logto --oc

It will do the following things in order:

  1. Download and extract Logto into ./logto
  2. Try to init and seed database with URL postgresql://your-postgres-dsn:5432/logto
  3. Add Logto official connectors to ./logto/packages/core/connectors