Installation
Install ghosttown globally via npm:
$npm install -g @seflless/ghosttownQuick Start
Start a web server that connects to a terminal session in your browser:
Starts the web server on port 8080. Open http://localhost:8080 in your browser.
$ghosttownWeb Server
Start a web-based terminal server with WebSocket PTY support.
Start the server on the default port (8080)
$ghosttownStart the server on a custom port
$ghosttown -p 3000Set the port via environment variable
$PORT=3000 ghosttowntmux Sessions
Run commands in managed tmux sessions. Sessions are named ghosttown-1, ghosttown-2, etc.
Run a command in a new tmux session
$ghosttown vimRun a command with arguments (use quotes)
$ghosttown "npm run dev"List all active ghosttown tmux sessions
$ghosttown listAttach to a specific session
$ghosttown attach ghosttown-1Detach from the current session
$ghosttown detachKill a specific session
$ghosttown -k ghosttown-1Kill the current session (when inside one)
$ghosttown -kType 'exit' in the terminal to end the shell and kill the session
$exitCLI Aliases
For convenience, you can use shorter aliases:
$ghosttown$gt$ghtAll three commands are equivalent and can be used interchangeably.
Help
View the full help documentation:
$ghosttown --helpRequirements
tmux
The tmux session features require tmux to be installed on your system.
$brew install tmux$sudo port install tmux$sudo apt install tmux$sudo dnf install tmux$sudo pacman -S tmux