conso.sh docs

Get software onto a VM

Use Git, SCP, or rsync to bring your code and files.

Clone with Git

Run this on the VM after signing in over SSH. Replace <repo-url> with the repository address and project with your chosen directory. For private code, configure a narrowly scoped repository credential first.

bash
git clone <repo-url> project
cd project

Copy from your own machine

Replace <user> and <vm-host> with your SSH login and host. Change ./project to the local directory you want to copy. The rsync example copies the contents of the local directory into the remote project directory. Create that directory first and install rsync on both ends.

bash
scp ./config.example <user>@<vm-host>:~/config.example
ssh <user>@<vm-host> 'mkdir -p ~/project'
rsync -av ./project/ <user>@<vm-host>:~/project/

Review what you’re transferring first. Keep local secrets, credentials and generated files out of the copy unless you have a specific reason to include them. Once files are in place, choose how to run the worker.