# \`vagrant up\` not from command line?

**URL:** https://meta.discourse.org/t/vagrant-up-not-from-command-line/41262
**Category:** Development
**Created:** [3월 18, 2016, 11:17오전 UTC](https://meta.discourse.org/t/vagrant-up-not-from-command-line/41262 "2016-03-18T11:17:06Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![GaurangTandon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gaurangtandon/32/52384_2.png) [@GaurangTandon](https://meta.discourse.org/u/GaurangTandon)
#### Post date: [3월 18, 2016, 11:17오전 UTC](https://meta.discourse.org/t/vagrant-up-not-from-command-line/41262/1 "2016-03-18T11:17:06Z")

</div>

So, I have to download, as per official discourse development guide, `vagrant` software and then, run `vagrant up` in the git shell opened from the github desktop client for dicourse’s master branch. My question is I get something like this:

 ![](https://global.discourse-cdn.com/meta/original/3X/1/c/1c3b4a70d1ad737c3b177266bc96797d55b0a73b.PNG)

The problem is that my internet connection is not very good and it automatically reboots every 2 hours or so. It’s speed is also not very fast. So, trying to download vagrant through cmd is hopeless. I have already failed a dozen times. That’s why I use Free Download Manager for big downloads like this one.

My question is: **How can I download that .box file and complete all tasks that `vagrant up` does without using cmd?**

I looked at [https://meta.discourse.org/t/solved-the-connection-was-reset-with-discourse-vagrant/34284](https://meta.discourse.org/t/solved-the-connection-was-reset-with-discourse-vagrant/34284) but it was about some `bundle exec rails s` command (and it’s closed so I can’t respond there) and I looked at [https://github.com/discourse/discourse/blob/master/docs/VAGRANT.md#using-vagrant](https://github.com/discourse/discourse/blob/master/docs/VAGRANT.md#using-vagrant) but it too provided no help.

I can download the [discourse-vms.s3.amazonaws.com/discourse-1.3.0.box](http://discourse-vms.s3.amazonaws.com/discourse-1.3.0.box) using FDM but I don’t know which folder to put it inside and what else to do (which `vagrant up` does), for which I need guidance.

**SUMMARY SOLUTION:**

For Windows users, this is the best path:

1. [`vagrant up` not from command line? - #2 by zogstrip](https://meta.discourse.org/t/vagrant-up-not-from-command-line/41262/2)
2. [`vagrant up` not from command line? - #8 by dtchau](https://meta.discourse.org/t/vagrant-up-not-from-command-line/41262/8)
3. [`vagrant up` not from command line? - #11 by aryanraj](https://meta.discourse.org/t/vagrant-up-not-from-command-line/41262/11)
4. After this, you have to run `vagrant up`.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [3월 18, 2016, 11:35오전 UTC](https://meta.discourse.org/t/vagrant-up-not-from-command-line/41262/2 "2016-03-18T11:35:15Z")

</div>

> [@GaurangTandon](#):
>
> My question is: **How can I download that .box file and complete all tasks that vagrant up does without using cmd?**

1. Download [http://discourse-vms.s3.amazonaws.com/discourse-1.3.0.box](http://discourse-vms.s3.amazonaws.com/discourse-1.3.0.box)
2. Run `vagrant box add discourse-1.3.0 /path/to/the/downloaded/discourse-1.3.0.box`

---

<div class="post-metadata">

### Author: ![GaurangTandon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gaurangtandon/32/52384_2.png) [@GaurangTandon](https://meta.discourse.org/u/GaurangTandon)
#### Post date: [3월 18, 2016, 2:27오후 UTC](https://meta.discourse.org/t/vagrant-up-not-from-command-line/41262/3 "2016-03-18T14:27:30Z")

</div>

**EDIT:** This error got solved down [below](https://meta.discourse.org/t/vagrant-up-not-from-command-line/41262/9)

Thanks! The file got downloaded completely, but I got this error. I don’t know why. Please help 🙂

 ![](https://global.discourse-cdn.com/meta/original/3X/f/2/f25b374faabe08caf70d5b70771ac8b81eaa7b04.png)

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [3월 18, 2016, 2:32오후 UTC](https://meta.discourse.org/t/vagrant-up-not-from-command-line/41262/4 "2016-03-18T14:32:50Z")

</div>

You should use "`\ `" instead of “`/`” as separator on Windows 😉

It should be

```plaintext
vagrant box add discourse-1.3.0 C:\Users\intl\Desktop\discourse-1.3.0.box

```

---

<div class="post-metadata">

### Author: ![GaurangTandon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gaurangtandon/32/52384_2.png) [@GaurangTandon](https://meta.discourse.org/u/GaurangTandon)
#### Post date: [3월 18, 2016, 2:36오후 UTC](https://meta.discourse.org/t/vagrant-up-not-from-command-line/41262/5 "2016-03-18T14:36:36Z")

</div>

I am sorry but I don’t really understand cmd well 😕 and so need some more help, well, because, now, I got this error:

```plaintext
$ vagrant box add discourse-1.3.0 C:\Users\intl\Desktop\discourse-1.3.0.box
I:/Vagrant/embedded/lib/ruby/2.2.0/uri/rfc3986_parser.rb:66:in `split': bad URI(is not URI?):file://C:UsersintlDesktopdiscourse-1.3.0.box (URI::InvalidURIError)
        from I:/Vagrant/embedded/lib/ruby/2.2.0/uri/rfc3986_parser.rb:72:in `parse'
        from I:/Vagrant/embedded/lib/ruby/2.2.0/uri/common.rb:226:in `parse'
        from I:/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/builtin/box_add.rb:467:in `metadata_url?'
        from I:/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/builtin/box_add.rb:77:in `block in call'
        from I:/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/builtin/box_add.rb:75:in `map'
        from I:/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/builtin/box_add.rb:75:in `call'
        from I:/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/warden.rb:34:in `call'
        from I:/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/builder.rb:116:in `call'
        from I:/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/runner.rb:66:in `block in run'
        from I:/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/util/busy.rb:19:in `busy'
        from I:/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/runner.rb:66:in `run'
        from I:/Vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/commands/box/command/add.rb:78:in `execute'
        from I:/Vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/commands/box/command/root.rb:61:in `execute'
        from I:/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/cli.rb:42:in `execute'
        from I:/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/environment.rb:302:in `cli'
        from I:/Vagrant/embedded/gems/gems/vagrant-1.8.1/bin/vagrant:174:in `<main>'

```

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [3월 18, 2016, 2:38오후 UTC](https://meta.discourse.org/t/vagrant-up-not-from-command-line/41262/6 "2016-03-18T14:38:29Z")

</div>

Try this

```plaintext
vagrant box add discourse-1.3.0 C:\\Users\\intl\\Desktop\\discourse-1.3.0.box

```

Or this

```plaintext
vagrant box add discourse-1.3.0 'C:\Users\intl\Desktop\discourse-1.3.0.box'

```

---

<div class="post-metadata">

### Author: ![GaurangTandon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gaurangtandon/32/52384_2.png) [@GaurangTandon](https://meta.discourse.org/u/GaurangTandon)
#### Post date: [3월 18, 2016, 2:46오후 UTC](https://meta.discourse.org/t/vagrant-up-not-from-command-line/41262/7 "2016-03-18T14:46:12Z")

</div>

Same error that I got the first time:

 ![](https://global.discourse-cdn.com/meta/original/3X/e/8/e80818d48f70fed54af82ce79b8e411e31d3fcb6.PNG)

I have double checked, the `.box` file exists at the path I have specified in the cmd above. Seems like I have to re-download the file, isn’t it?

---

<div class="post-metadata">

### Author: ![dtchau](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dtchau/32/121852_2.png) [@dtchau](https://meta.discourse.org/u/dtchau)
#### Post date: [3월 18, 2016, 5:00오후 UTC](https://meta.discourse.org/t/vagrant-up-not-from-command-line/41262/8 "2016-03-18T17:00:17Z")

</div>

It looks like you are on the “F” drive (?) and is trying to access file on the “C” drive. Windows path is notoriously peculiar. I would suggest you move the file to a location that you can reference using a relative path. Try to use `..` to trace to your file and avoid referencing it using `C:/`

---

<div class="post-metadata">

### Author: ![GaurangTandon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gaurangtandon/32/52384_2.png) [@GaurangTandon](https://meta.discourse.org/u/GaurangTandon)
#### Post date: [3월 19, 2016, 4:46오전 UTC](https://meta.discourse.org/t/vagrant-up-not-from-command-line/41262/9 "2016-03-19T04:46:05Z")

</div>

Ok, my `discourse` folder (that I had cloned from the main site) was on F drive. And my `.box` file was on desktop. I moved the `.box` file inside F drive, so that `discourse` folder and `.box` file were siblings inside F drive. And this time, using relative paths worked:

```
vagrant box add discourse-1.3.0 '..\discourse-1.3.0.box'

```

Thank you discourse people for your amazing support! 😃

---

<div class="post-metadata">

### Author: ![GaurangTandon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gaurangtandon/32/52384_2.png) [@GaurangTandon](https://meta.discourse.org/u/GaurangTandon)
#### Post date: [3월 19, 2016, 4:59오전 UTC](https://meta.discourse.org/t/vagrant-up-not-from-command-line/41262/10 "2016-03-19T04:59:47Z")

</div>

Ok, so according to the next step on the [official guide](http://blog.discourse.org/2013/04/discourse-as-your-first-rails-app/), I ran `vagrant ssh` next but things didn’t go as expected. Here’s what happened:

 ![](https://global.discourse-cdn.com/meta/original/3X/1/3/13ff765edad546e35c97787c1f3235ed736e326f.PNG)

Any ideas why?

---

<div class="post-metadata">

### Author: ![aryanraj](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@aryanraj](https://meta.discourse.org/u/aryanraj)
#### Post date: [3월 19, 2016, 1:43오후 UTC](https://meta.discourse.org/t/vagrant-up-not-from-command-line/41262/11 "2016-03-19T13:43:08Z")

</div>

Run

> `vagrant box add discourse/discourse-1.3.0 '..\discourse-1.3.0.box'`

instead of

> `vagrant box add discourse-1.3.0 '..\discourse-1.3.0.box'`

---

<div class="post-metadata">

### Author: ![GaurangTandon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gaurangtandon/32/52384_2.png) [@GaurangTandon](https://meta.discourse.org/u/GaurangTandon)
#### Post date: [3월 19, 2016, 3:48오후 UTC](https://meta.discourse.org/t/vagrant-up-not-from-command-line/41262/12 "2016-03-19T15:48:36Z")

</div>

Awesome! Thanks @aryanraj! I have summarized the solution in the top topic, for any outside visitor.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [3월 19, 2016, 4:55오후 UTC](https://meta.discourse.org/t/vagrant-up-not-from-command-line/41262/13 "2016-03-19T16:55:16Z")

</div>


