Command Line
Defining environment variables can vary between OSes. It’s also important to know that this manner is temporary for the life of the shell session.
Windows (cmd.exe)
set "API_URL=abcdef" && dotenv-run -- npm start
(Note: Quotes around the variable assignment are required to avoid a trailing whitespace.)
Windows (Powershell)
($env:API_URL = "abcdef") -and (dotenv-run -- npm start)
Linux, macOS (Bash)
API_URL=abcdef dotenv-run -- npm start