Skip to content

pkayokay/hatchbox-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

hatchbox-cli

A CLI for managing and connecting to Hatchbox-deployed Rails apps over SSH.

Install

curl -fsSL https://raw.githubusercontent.com/pkayokay/hatchbox-cli/main/install.sh | bash

Uninstall

rm ~/.local/bin/hatchbox

Usage

Add an app

hatchbox apps:add myapp 123.45.67.8
hatchbox apps:add myapp my-ssh-alias
hatchbox apps:add myapp deploy@123.45.67.8

The host can be an IP address, a hostname, or an SSH config alias. For IPs and hostnames (anything with a .), deploy@ is prepended automatically unless you specify a user.

List apps

hatchbox apps

Update or remove an app

hatchbox apps:update myapp 99.88.77.66
hatchbox apps:remove myapp

Rails console

hatchbox console -a myapp
hatchbox c -a myapp

Tail logs

hatchbox logs server -a myapp
hatchbox l server -a myapp
hatchbox logs solid_queue -a myapp
hatchbox l solid_queue -a myapp

The process name maps to a systemd unit: <app>-<process>.

Plain SSH

hatchbox ssh -a myapp

Shell in current release

hatchbox current -a myapp

Flags

Flag Short Description
--app -a Specify the app to run against
--help -h Show help

Shortcuts

Command Shortcut
console c
logs l

Config

Apps are stored in ~/.config/hatchbox/apps as simple name=host lines. You can edit this file directly if you prefer.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages