A CLI for managing and connecting to Hatchbox-deployed Rails apps over SSH.
curl -fsSL https://raw.githubusercontent.com/pkayokay/hatchbox-cli/main/install.sh | bash
rm ~/.local/bin/hatchbox
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.
hatchbox apps
hatchbox apps:update myapp 99.88.77.66
hatchbox apps:remove myapp
hatchbox console -a myapp
hatchbox c -a myapp
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>.
hatchbox ssh -a myapp
hatchbox current -a myapp
| Flag | Short | Description |
|---|---|---|
--app |
-a |
Specify the app to run against |
--help |
-h |
Show help |
| Command | Shortcut |
|---|---|
console |
c |
logs |
l |
Apps are stored in ~/.config/hatchbox/apps as simple name=host lines. You can edit this file directly if you prefer.