Skip to content

Environment Variables

An environment variable (also known as an env var) is a value that lives outside of your Python code, in the operating system, and can be read by your application and other programs.

Typer can use environment variables as alternative values for command-line parameters. You will learn how in CLI Arguments with Environment Variables.

Learn More

Read the Environment Variables guide for a detailed, cross-platform explanation, including how to create and read environment variables and how the PATH environment variable works.