tldr/pages/common/vagrant.md

29 lines
525 B
Markdown
Raw Normal View History

2015-12-23 13:02:45 +00:00
# vagrant
> Manage lightweight, reproducible, and portable development environments.
> More information: <https://www.vagrantup.com>.
2015-12-23 13:02:45 +00:00
- Create Vagrantfile in current directory with the base Vagrant box:
2015-12-23 13:02:45 +00:00
`vagrant init`
- Create Vagrantfile with the Ubuntu 14.04 (Trusty Tahr) box from HashiCorp Atlas:
2015-12-23 13:02:45 +00:00
`vagrant init ubuntu/trusty32`
- Start and provision the vagrant environment:
2015-12-23 13:02:45 +00:00
`vagrant up`
- Suspend the machine:
2015-12-23 13:02:45 +00:00
`vagrant suspend`
2019-04-30 08:52:55 +01:00
- Halt the machine:
`vagrant halt`
- Connect to machine via SSH:
2015-12-23 13:02:45 +00:00
`vagrant ssh`