-
Notifications
You must be signed in to change notification settings - Fork 4k
Closed
Labels
type:enhancementRequests for feature enhancements or new featuresRequests for feature enhancements or new features
Description
Problem
I'd like to be able to set Streamlit CLI options using environment variables. I'm running Streamlit in containers, and it would be handier to set things like the server port as an environment variable than having to edit the command.
Solution
Since Streamlit uses Click for CLI handling, the most straightforward solution is to set the auto_envvar_prefix argument when invoking the main entrypoint. I suggest STREAMLIT as the prefix.
Additional context
auto_envvar_prefix is documented under Values from Environment Variables in the Click documentation.
markopy
Metadata
Metadata
Assignees
Labels
type:enhancementRequests for feature enhancements or new featuresRequests for feature enhancements or new features