user6360192
user6360192

Reputation: 15

What should VAGRANT_CWD be set to?

What is the default value of VAGRANT_CWD? I set it to something else and now I need to "reset" it. I tried unset, but that won't work because it returns an error saying that the working directory is ~/. (invalid).

Upvotes: 0

Views: 1372

Answers (1)

Frederic Henri
Frederic Henri

Reputation: 53793

It should not be set at first place - if you have this value set in your env, make sure to remove it from where you set it.

The default value is the current directory (Dir.pwd in ruby). If you have the variable set, you can try to define the current directory as the default folder

export VAGRANT_CWD="./"

This will create the .vagrant directory along with the Vagrantfile in the current directory you run the command

Upvotes: 2

Related Questions