Want to scp to multiple nodes

Anybody know of the scp analog of the vagrant-shell-commander plugin? I want to scp to multiple targets, like how pscp and similar utilities work, but inside a vagrant context.

Hi there,

As was mentioned in IRC, the vagrant upload command will provide the described behavior.


Thanks for the reply, Chris, but I’m not seeing how this would hit multiple nodes at once.

The specification is: vagrant upload source [destination] [name|id]

What “name” do I use for “all machines” ?

OK, I’m using vagrant 2.2.13 and this worked:

vagrant scp path-to-local-file path-to-guest-directory

This will copy the file to all nodes/VMs.

I could not get vagrant upload .... to do this.