Skip to content

For serverpod cli command, support passing configuration via args and env variables #3118

In progress

Description

@christerswahn

Problem to Solve

For some use cases it would be desirable to substitute or override the parameters in the configuration files with command line args and / or environment variables.

Proposal

Upgrade the better commands package with this functionality, and adapt serverpod CLI command to use this.

Use Case

For example, running a command to create a repair migration towards a DB instance without setting up configuration and password yaml configuration files.

Alternatives

n/a

Additional context

No response

How experienced are you with this library?

Expert - Experienced and comfortable with using this library in complex projects

Are you interested in working on a PR for this?

  • I want to work on this

Activity

  1. added
    enhancement
    on Jan 13, 2025
  2. added
    area: cli
    on Jan 13, 2025
  3. iampopal commented on Jan 26, 2025

    @iampopal

    we need this too

  4. moved this from Next 🌟 to Now 🔥 in Serverpod Frameworkson May 6, 2025
  5. moved this from Now 🔥 to Next 🌟 in Serverpod Frameworkson Jun 16, 2025
  6. moved this from Backlog 🗂️ to In Progress 🔥 in Serverpod Frameworkson Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: clienhancement

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions