Skip to content

Environment shortcut . doesn't work with variable:create #187

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
arnested opened this issue Jun 19, 2024 · 1 comment
Closed

Environment shortcut . doesn't work with variable:create #187

arnested opened this issue Jun 19, 2024 · 1 comment
Labels

Comments

@arnested
Copy link

When trying to set a variable in the default environment, the shortcut . is not recognized.

Using main works, though. But the shortcut is nicer when scripting across projects where the default environment could vary.

$ platform variable:create --level=environment --environment=. --name=env:FOO --value=bar
Selecting default environment (indicated by .)
Selected environment: main (type: production)


  [InvalidValueException]
  . is not one of: main, plausible, pr-110, pr-122, pr-65

I'm using 5.0.14.

@akalipetis akalipetis added the CLI label Jul 2, 2024 — with Linear
@linear linear bot closed this as not planned Won't fix, can't repro, duplicate, stale Jan 2, 2025
@arnested
Copy link
Author

@linear closed this as not planned

Hmm… Most commands do accept . as a shorthand. It's even documented on https://docs.platform.sh/administration/cli/reference.html:

--environment (-e) (expects a value) The environment ID. Use “.” to select the project’s default environment.

So even if it's not planned, please reconsider and reopen so the variable:create command will adhere to the documentation and work as we are used to from other CLI commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants