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

feat(variable): Allow updating variables from .env file #104

Merged

Conversation

pan93412
Copy link
Member

@pan93412 pan93412 commented Aug 2, 2024

Description (required)

Add a new command: variable env

$ zeabur variable env --help
overwrite variables from a .env file

Usage:
  zeabur variable env [flags]

Flags:
      --env-id string   Environment ID of service
  -f, --file string     Path to the .env file (default ".env")
  -h, --help            help for env
      --id string       Service ID
  -n, --name string     Service name

Global Flags:
      --auto_check_update    automatically check update (default true)
      --auto_refresh_token   automatically refresh token when it's expired, only works when the token is from browser(OAuth2) (default true)
      --debug                Enable debug logging
  -i, --interactive          use interactive mode (default true)

The service variables are overridden with the content of the provided .env file.

Related issues & labels (optional)

  • Closes ZEA-3754
  • Suggested label: enhancement

@pan93412 pan93412 self-assigned this Aug 2, 2024
@pan93412 pan93412 marked this pull request as draft August 2, 2024 06:21
@pan93412 pan93412 force-pushed the pan93412/zea-3754-cli-allow-pushing-env-files-to-a-service branch from 6a1c0b9 to 6a2c9e6 Compare August 2, 2024 06:22
@pan93412 pan93412 marked this pull request as ready for review August 2, 2024 06:25
@pan93412 pan93412 requested a review from yuaanlin August 2, 2024 06:25
@MichaelYuhe MichaelYuhe merged commit 98ba157 into main Aug 2, 2024
2 checks passed
@MichaelYuhe MichaelYuhe deleted the pan93412/zea-3754-cli-allow-pushing-env-files-to-a-service branch August 2, 2024 08:41
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.

2 participants