Skip to content

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

Notifications You must be signed in to change notification settings

bargees/barge-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages