mirror of
https://github.com/hashicorp/vagrant.git
synced 2026-02-03 20:39:27 -05:00
34 lines
1.4 KiB
Text
34 lines
1.4 KiB
Text
---
|
|
layout: docs
|
|
page_title: vagrant upload - Command-Line Interface
|
|
description: |-
|
|
The "vagrant upload" command is used to upload files from the host
|
|
to a guest machine.
|
|
---
|
|
|
|
⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️
|
|
> [!IMPORTANT]
|
|
> **Documentation Update:** Product documentation previously located in `/website` has moved to the [`hashicorp/web-unified-docs`](https://github.com/hashicorp/web-unified-docs) repository, where all product documentation is now centralized. Please make contributions directly to `web-unified-docs`, since changes to `/website` in this repository will not appear on developer.hashicorp.com.
|
|
⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️
|
|
|
|
# Upload
|
|
|
|
**Command: `vagrant upload source [destination] [name|id]`**
|
|
|
|
This command uploads files and directories from the host to the guest
|
|
machine.
|
|
|
|
## Options
|
|
|
|
- `destination` - Path on the guest machine to upload file or directory.
|
|
|
|
- `source` - Path to file or directory on host to upload to guest machine.
|
|
|
|
- `--compress` - Compress the file or directory before uploading to guest machine.
|
|
|
|
- `--compression-type type` - Type of compression to use when compressing
|
|
file or directory for upload. Defaults to `zip` for Windows guests and
|
|
`tgz` for non-Windows guests. Valid values: `tgz`, `zip`.
|
|
|
|
- `--temporary` - Create a temporary location on the guest machine and upload
|
|
files to that location.
|