AdoPi/mon

門 Zig ⚡Heroku-style SSH wrapper CLI that lets you connect to a specific project/env pair as if it were a single server.

★ 0Forks 0ZigGitHub ↗Compare

README

Mon 門

A small CLI tool written in Zig that wraps ssh and allows you to connect to different project environments via a bastion host.

The tool reads a config.json file that defines:

  • projects
  • environments (per project)
  • associated users, servers, and container commands
  • bastion host

Usage

Connect to a project container shell

mon shell -p <project> -e <environment> [--no-bastion]

Example:

mon shell -p myapp -e dev

This will:

  1. Connect to the bastion
  2. SSH into the target server
  3. Execute the shell command defined in config.json

Connect to a project container console

mon console -p <project> -e <environment> [--no-bastion]

Example:

mon console -p myapp -e prod

This runs the console command instead of the shell one.

Contributors

AdoPi

Issues