Ask coding questions

← Back to all posts
File path of secret variables
travelmail26 (3)

How do we get the file path of a secret variable? I need to execute a command with a secret key in the shell.

Coder100 (19280)

its not in any 'path'. Replit detects your environment variables and defines them when you run them. When you are opening up the shell, or after the program exits, replit won't do that process automatically.

travelmail26 (3)

@Coder100 thanks! so how would i reference a secret in the shell? or is doing it though some python function better?

Coder100 (19280)

do it through some python function

I literally said you can't @travelmail26