Skip to content

Latest commit

 

History

History
80 lines (50 loc) · 1.29 KB

readme.md

File metadata and controls

80 lines (50 loc) · 1.29 KB

Rocket CLI Tool

Rocket is a command-line interface tool for managing SSH connections. It simplifies the process of adding, launching, and deleting connections.

Installation

  1. Create a virtual environment and activate it:
python3 -m venv venv
source venv/bin/activate
  1. Install the required packages:
2. pip install -r requirements.txt
  1. Make the main.py file executable:
chmod +x main.py
  1. Move and rename the main.py file to /usr/local/bin/rocket:
sudo mv main.py /usr/local/bin/rocket

Now, you can run the Rocket CLI tool by simply typing rocket in the terminal.

Usage

  1. Set the default username:
rocket install
  1. Add a connection:
 rocket add --username <username> --host <host> [--nickname <nickname>] [--through-proxy]
  1. Add a proxy:
rocket add-proxy --username <username> --host <host> [--nickname <nickname>]
  1. Launch a connection:
rocket launch [<nickname>]
  1. Delete all connections and configuration:
rocket delete

Unit Tests

Run the unit tests with:

python -m unittest test_rocket.py

With these changes, users will be able to run the Rocket CLI tool directly from their terminal by typing rocket followed by the desired subcommand.