# Environment Variable in IntelliJ IDEA

You may have some build script that reads environment variable like security credentials or custom configuration. Most build tools can recognize the environment variable. For example, you can write Artifactory credential in built.sbt like this.

val credentials = Credentials(
"Artifactory Realm",
"artifactoryonline.com",

IntelliJ provides a useful command named idea which enables us to launch your IDE from the console. The process is launched as child process of the process we run the command. Just running idea in login shell, the IDE can finally recognize the environment variables as expected.