Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 815 Bytes

README.md

File metadata and controls

40 lines (27 loc) · 815 Bytes

Barge-CLI

SSH helper for Vagrant to execute ssh much faster than vagrant ssh

Usage: barge [-t] [vm-name] [command]

  • -t will be passed as an SSH option to force pseudo-tty allocation.

  • vm-name is defined at config.vm.define line in Vagrantfile.
    If it's omitted, it will use SSH config for the first VM in Vagrantfile.

  • If command is omitted, you will login to the VM instead of executing a command.

Equivalent commands

To login a VM,

$ vagrant ssh
$ barge

Execute a command through SSH

$ vagrant ssh -c "docker version"
$ barge docker version

If Vagrantfile has multiple VMs,

$ vagrant ssh node-01 -c "docker version"
$ barge docker version
$ vagrant ssh node-02 -c "docker version"
$ barge node-02 docker version