Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wormhole CLI Documentation

Tool for starting local development with VM-s running agents etc. and control plane communicating with with nodes.

Features

  • VM lifecycle management: setup, create, stop, resume, reload, shutdown, destroy
  • Node management: start-nodes, stop-nodes

Prerequisites

Ensure you have the following installed:

Installation

  1. Clone the tools repository:
git clone https://github.com/c12s/tools.git
  1. Navigate to the tools directory and follow the setup instructions in the README.md file of the tools repository to pull all necessary repositories and start Docker containers:
cd tools
./install.sh
./control_plane_start.sh
  1. Clone the cockpit repository in the same parent directory where the tools repository is located:
cd ..
git clone https://github.com/radepejanvic/wormhole.git
  1. Navigate to the cockpit project directory:
cd wormhole
  1. Build the CLI:
go build -o wormhole
  1. Add the executable to your PATH:
export PATH=$PATH:$(pwd)

Command reference

VM lifecycle management

Setup - reads the YAML and generates Vagrantfile

wormhole setup --config ./config.yaml

Create - creates VMs (one, more or all if nothing specified)

wormhole create 
wormhole create node0

Stop - suspends VMs (one, more or all if nothing specified)

wormhole stop
wormhole stop node0

Resume - resumes VMs (one, more or all if nothing specified)

wormhole resume
wormhole resume node0

Reload - recreates VM reading Vagrantfile again (one, more or all if nothing specified)

wormhole reload
wormhole reload node0

Shutdown - gracefully powers off VMs (one, more or all if nothing specified)

wormhole shutdown
wormhole shutdown node0

Destroy - deletes VMs and all of their data (one, more or all if nothing specified)

wormhole destroy
wormhole destroy node0 

Node management

Start nodes - runs the /vagrant/node_start.sh remotely for specified VMs

wormhole start-nodes node0 node1

Stop nodes - runs the /vagrant/nodes_stop.sh remotely for specified VMs

wormhole stop-nodes node0 node1

About

Tool for starting local development with VM-s running agents etc. and control plane communicating with with nodes.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages