← 返回命令列表

Linux command

vagrant-upload 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Upload file to VM

vagrant upload [source] [destination]

Upload to specific VM

vagrant upload [source] [destination] [name]

Upload with compression

vagrant upload --compress [source] [destination]

说明

vagrant upload copies files from host to guest machine. Supports compression for large files. Destination defaults to home directory if not specified.

参数

--compress
Compress before upload.
--temporary
Upload to temp directory.

FAQ

What is the vagrant-upload command used for?

vagrant upload copies files from host to guest machine. Supports compression for large files. Destination defaults to home directory if not specified.

How do I run a basic vagrant-upload example?

Run `vagrant upload [source] [destination]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --compress do in vagrant-upload?

Compress before upload.