mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-11 08:58:29 +00:00
Update cheatsheets
This commit is contained in:
41
vagrant
Normal file
41
vagrant
Normal file
@@ -0,0 +1,41 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# vagrant
|
||||
|
||||
> Manage lightweight, reproducible, and portable development environments.
|
||||
> More information: <https://www.vagrantup.com>.
|
||||
|
||||
- Create Vagrantfile in current directory with the base Vagrant box:
|
||||
|
||||
`vagrant init`
|
||||
|
||||
- Create Vagrantfile with the Ubuntu 20.04 (Focal Fossa) box from HashiCorp Atlas:
|
||||
|
||||
`vagrant init ubuntu/focal64`
|
||||
|
||||
- Start and provision the vagrant environment:
|
||||
|
||||
`vagrant up`
|
||||
|
||||
- Suspend the machine:
|
||||
|
||||
`vagrant suspend`
|
||||
|
||||
- Halt the machine:
|
||||
|
||||
`vagrant halt`
|
||||
|
||||
- Connect to machine via SSH:
|
||||
|
||||
`vagrant ssh`
|
||||
|
||||
- Output the SSH configuration file of the running Vagrant machine:
|
||||
|
||||
`vagrant ssh-config`
|
||||
|
||||
- List all local boxes:
|
||||
|
||||
`vagrant box list`
|
||||
Reference in New Issue
Block a user