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

Add a command to get environment variables #1767

Merged
merged 2 commits into from
Mar 24, 2025
Merged

Conversation

andreia-oca
Copy link
Member

@andreia-oca andreia-oca commented Mar 21, 2025

Pull Request Template

Type of change

  • πŸ• New feature
  • πŸ› Bug Fix
  • πŸ”₯ Breaking change
  • πŸ§‘β€πŸ’» Improvement
  • πŸ“ Documentation Update

Description

This PR introduces genezio getenv - a useful command to reveal env vars values.

This command doesn't require a genezio.yaml to work. It can be used as following:

genezio getenv --projectName <name>
genezio getenv --projectName <name> --format env > .env
genezio getenv --projectName <name> --format json | jq
GENEZIO_TOKEN=<token> genezio getenv --projectName

Checklist

  • My code follows the contributor guidelines of this project;
  • I have updated the documentation;
  • I have added tests;
  • New and existing unit tests pass locally with my changes;

@andreia-oca andreia-oca requested a review from cristim67 March 21, 2025 14:31
@andreia-oca andreia-oca force-pushed the add-get-env-vars-endpoint branch from 20fe732 to 9100911 Compare March 24, 2025 10:39
@andreia-oca andreia-oca enabled auto-merge March 24, 2025 10:39
@andreia-oca andreia-oca merged commit 22f712d into dev Mar 24, 2025
5 checks passed
@andreia-oca andreia-oca deleted the add-get-env-vars-endpoint branch March 24, 2025 10:40
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.

3 participants