# How to I start a box with vagrant up using the box name instead of id?

**URL:** <https://discuss.hashicorp.com/t/how-to-i-start-a-box-with-vagrant-up-using-the-box-name-instead-of-id/46002>\
**Category:** Vagrant\
**Created:** [October 26, 2022, 12:51am UTC](https://discuss.hashicorp.com/t/how-to-i-start-a-box-with-vagrant-up-using-the-box-name-instead-of-id/46002 "2022-10-26T00:51:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![wyattbiker](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/wyattbiker/32/31566_2.png) [@wyattbiker](https://discuss.hashicorp.com/u/wyattbiker)\
**Post date:** [October 26, 2022, 12:51am UTC](https://discuss.hashicorp.com/t/how-to-i-start-a-box-with-vagrant-up-using-the-box-name-instead-of-id/46002/1 "2022-10-26T00:51:04Z")

</div>

I have the following:

```auto
~/code$ vagrant global-status
id name provider state directory
---------------------------------------------------------------------------
39421e7 homestead virtualbox poweroff /Users/user/Homestead

```

I try using `$ vagrant up homestead` but it won’t start. It will only start using the id. The docs say to use either name|id. what is the name I should use?

---

<div class="post-metadata">

**Author:** ![soapy1](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/soapy1/32/5509_2.png) [@soapy1](https://discuss.hashicorp.com/u/soapy1)\
**Post date:** [October 26, 2022, 6:00pm UTC](https://discuss.hashicorp.com/t/how-to-i-start-a-box-with-vagrant-up-using-the-box-name-instead-of-id/46002/2 "2022-10-26T18:00:10Z")

</div>

In order to use the name of the vagrant machine you must be in the vagrant project directory. In this case, it looks like the directory is `/Users/user/Homestead`. So, you can do something like:

```auto
$ cd /Users/user/Homestead
$ vagrant up homestead

```

---

<div class="post-metadata">

**Author:** ![wyattbiker](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/wyattbiker/32/31566_2.png) [@wyattbiker](https://discuss.hashicorp.com/u/wyattbiker)\
**Post date:** [October 26, 2022, 6:36pm UTC](https://discuss.hashicorp.com/t/how-to-i-start-a-box-with-vagrant-up-using-the-box-name-instead-of-id/46002/3 "2022-10-26T18:36:54Z")

</div>

Well that’s what I’ve been doing. Also when in that folder you don’t even need the name. The docs say to use [name | ID] no mention to navigate to any folder first.

---

<div class="post-metadata">

**Author:** ![soapy1](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/soapy1/32/5509_2.png) [@soapy1](https://discuss.hashicorp.com/u/soapy1)\
**Post date:** [October 26, 2022, 7:14pm UTC](https://discuss.hashicorp.com/t/how-to-i-start-a-box-with-vagrant-up-using-the-box-name-instead-of-id/46002/4 "2022-10-26T19:14:41Z")

</div>

> [@wyattbiker](#):
>
> Also when in that folder you don’t even need the name

Yep, that’s right. Specifying a name is usually helpful in a multi-machine Vagrant project. For example:

```auto
Vagrant.configure("2") do |config|
  config.vm.define "one" do |c|
    c.vm.box = "hashicorp/bionic64"
  end

  config.vm.define "two" do |c|
    c.vm.box = "hashicorp/bionic64"
  end
end

```

> [@wyattbiker](#):
>
> The docs say to use [name | ID] no mention to navigate to any folder first.

🤔 The intention on name is specific to working within a Vagrant project. Could you share a link to the documentation in question and I’ll try to push some changes to make it more clear. When working outside of a Vagrant project it is appropriate to use the machine ID.

---

<div class="post-metadata">

**Author:** ![wyattbiker](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/wyattbiker/32/31566_2.png) [@wyattbiker](https://discuss.hashicorp.com/u/wyattbiker)\
**Post date:** [October 26, 2022, 7:34pm UTC](https://discuss.hashicorp.com/t/how-to-i-start-a-box-with-vagrant-up-using-the-box-name-instead-of-id/46002/5 "2022-10-26T19:34:29Z")

</div>

> **[vagrant up - Command-Line Interface | Vagrant | HashiCorp Developer](https://developer.hashicorp.com/vagrant/docs/cli/up)**
>
> The "vagrant up" command is used to create, configuration, and provision a
> guest machine according to your Vagrantfile.
