Configuration

Connect CLI to your database

Set, retrieve, or clear CLI configuration values to streamline your workflow.

2bttns-cli config set <key> <value>
2bttns-cli config get <key>
2bttns-cli config clear <key>

Precedence

The CLI prioritizes configuration values in the following order:

  1. Command line arguments (e.g., --db-url)

  2. Config file (set using 2bttns-cli config set <key> <value>)

Note:

Use the --ignore-config flag to bypass the config values and favor environment variables. This is particularly useful if you prefer relying on environment variables over existing config.

Example:

2bttns-cli admin create --ignore-config

  1. Environment variables are considered (e.g., DATABASE_URL, NEXTAUTH_SECRET).

Was this helpful?