Push remote environment variables from a file using CLI


https://www.checklyhq.com/docs/cli/using-environment-variables/#managing-remote-environment-variables-using-the-cli

Looking at this page above, I noticed that you can only add checkly environment variables via checkly cli in a manual single use way. Would it be possible to create a feature to be able to read in the variables from a file and add any missing or changed variables to checkly remote env?


Almost like an inverse of running "npx checkly env pull .env.prod"
​and do it as a push

This way we can sync the passwords we use locally in our environment files with checkly remote more easily and accurately


example of current method to add env variable to remote:
"npx checkly env add MY_PASSWORD 123test --locked"

Suggested command
"npx checkly env push --env-file="./.env.prod"

Please authenticate to join the conversation.

Upvoters
Status

In Review

Board

πŸ’‘ Feature Request

Tags

CLI

Date

Over 1 year ago

Author

Ryan O'Gorman

Subscribe to post

Get notified by email when there are changes.