direnv

Unclutter your .profile

Subcommands

NameDescription
allowGrants direnv to load the given .envrc
denyRevokes the authorization of a given .envrc
editOpens PATH_TO_RC or the current .envrc into an $EDITOR and allow the file to be loaded afterwards
execExecutes a command after loading the first .envrc found in DIR
fetchurlFetches a given URL into direnv's CAS
helpHelp for direnv
hookUsed to setup the shell hook
pruneRemoves old allowed files
reloadTriggers an env reload
statusPrints some debug status information
stdlibDisplays the stdlib available in the .envrc execution context
versionPrints the version or checks that direnv is older than VERSION_AT_LEAST
apply_dumpAccepts a filename containing `direnv dump` output and generates a series of bash export statements to apply the given env
show_dumpShow the data inside of a dump for debugging purposes
dotenvTransforms a .env file to evaluatable `export KEY=PAIR` statements
dumpUsed to export the inner bash state at the end of execution
exportLoads an .envrc and prints the diff in terms of exports
watchAdds a path to the list that direnv watches for changes
watch-dirRecursively adds a directory to the list that direnv watches for changes
watch-listPipe pairs of `mtime path` to stdin to build a list of files to watch
currentReports whether direnv's view of a file is current (or stale)

Options

NameDescription
--version [VERSION_AT_LEAST]Prints the version or checks that direnv is older than VERSION_AT_LEAST
--help [SHOW_PRIVATE]Help for direnv