.env File Support for kraft cloud deploy Command
#1739
Unanswered
guillempuche
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently,
kraft cloud deploydoes not support the--env-fileflag or accept a standard.envfile for injecting multiple environment variables. Instead, users must manually supply each variable by using the-e KEY=VALUEflag multiple times, which is cumbersome for projects with many configs.How it’s done now:
kraft cloud deploy \ --kraftfile infrastructure/kraftcloud/caddy/Kraftfile \ -M 1G \ -e KEY1=VALUE1 \ -e KEY2=VALUE2 \ .Alternatively, you can export your
.envfile into your shell environment before running the command:However, both methods lack the simplicity and cleanliness of passing a file directly.
Idea:
Add a
--env-file <path>flag tokraft cloud deploy, similar to Compose and Docker, to streamline multi-variable workflows and align UX across CLI commands.kraft cloud deploy \ --kraftfile infrastructure/kraftcloud/caddy/Kraftfile \ --env-file infrastructure/kraftcloud/.env \ -M 1G \ .Benefits:
Beta Was this translation helpful? Give feedback.
All reactions