Skip to content
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

env commands #15431

Merged
merged 2 commits into from
Jul 27, 2024
Merged

env commands #15431

merged 2 commits into from
Jul 27, 2024

Conversation

brandonkelly
Copy link
Member

Description

Adds env, env/set, and env/remove commands, for managing environment variables in the .env file.

env can output the current value of an environment variable (as returned by craft\helpers\App::env() – so possibly normalized to a boolean or integer), or it can act as a shortcut for env/set if an equal sign is included in the name parameter.

Example env command output

@brandonkelly brandonkelly merged commit d4a48f8 into 4.11 Jul 27, 2024
@brandonkelly brandonkelly deleted the feature/env branch July 27, 2024 02:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant