Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dergoegge/rcmd
Remote commands using vagrant
https://github.com/dergoegge/rcmd
vagrant
Last synced: 10 days ago
JSON representation
Remote commands using vagrant
- Host: GitHub
- URL: https://github.com/dergoegge/rcmd
- Owner: dergoegge
- Created: 2018-10-13T19:50:51.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-12-25T21:19:55.000Z (about 6 years ago)
- Last Synced: 2024-12-16T00:52:31.457Z (11 days ago)
- Topics: vagrant
- Language: Shell
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Remote command
Prefix a command with `rcmd` to excecute it in a remote virtual environment.## Install
```bash
/bin/sh <(curl -s https://raw.githubusercontent.com/dergoegge/rcmd/master/install.sh)
```## Usage
To execute a command in a remote environment:
```bash
rcmd ""
```
This will automatically start a machine according to your Vagrantfile if it is not running already and then run your command. The established connection will be cached so subsequent calls are fast.## Providers
Configure `rcmd` with your provider of choice:```bash
rcmd --configure provider
```If the command completes succesfully it generated a `Vagrantfile` template in the calling directory for your chosen provider.
This file will have to be edited with your provider info.You can set up a default environment for your favourite provider in the `~/.rcmd/env` directory with:
```bash
rcmd --configure default-env
```You can copy the default environment to your current location with:
```bash
rcmd --init
```or create a `Vagrantfile` from one of the provider templates with:
```bash
rcmd --init
```
Currently supported providers are `google` and `aws` using the vagrant plugins [vagrant-google](https://github.com/mitchellh/vagrant-google) and [vagrant-aws](https://github.com/mitchellh/vagrant-aws).*If no provider is configured the default `vagrant` provider is used.*
## Autocompletion
Enable autocompletion by:
```bash
source ~/.rcmd/cli/autocompletion.sh
```Currently the first word behind `rcmd` will autocomplete to a command available on the remote machine, everything after that will autocomplete to files and dirs.