2bttns
  • Getting Started
    • What is 2bttns?
    • Quick Start
    • 🆕You Asked We Listened
  • HOW TO
    • Set up your Console
    • Use the API
    • Build a game
    • Manage game data
    • Integrate game via API
    • Retrieve scores via API
  • References
    • APIs
      • Authentication
      • Generate Game URL
      • Games
      • Game Objects
      • Tags
      • Players
      • Admin
      • Export/Import
    • Command Line Interface (CLI)
      • Install
      • Usage
      • Configuration
  • TUTORIALS
    • ✨Personalize profiles with 2bttns and Next.js
Powered by GitBook
On this page

Was this helpful?

  1. References
  2. Command Line Interface (CLI)

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).

PreviousUsageNextPersonalize profiles with 2bttns and Next.js

Was this helpful?