Skip to content

enable environment based configuration - #64

Open
mwennrich wants to merge 1 commit into
mainfrom
env-vars
Open

mwennrich wants to merge 1 commit into
mainfrom
env-vars

Conversation

@mwennrich

Copy link
Copy Markdown

Description

Example:

before:

$ rm ~/.metal-stack/config.yaml
$ export METAL_STACK_API_URL=https://v2.metal-stack.dev
$ metalctlv2 login
Error: neither BaseURL nor METAL_APIV2_URL were given

(btw, the error message is misleading, setting METAL_APIV2_URL leads to another strange error)

with this PR:

$ rm ~/.metal-stack/config.yaml
$ export METAL_STACK_API_URL=https://v2.metal-stack.dev
$ ./cli/bin/metalctlv2-linux-amd64 login
Starting server at http://127.0.0.1:46263...

@mwennrich
mwennrich requested a review from a team as a code owner September 29, 2026 07:21
@mwennrich
mwennrich requested a review from Gerrit91 September 29, 2026 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant