Skip to content

Releases

cmdbin-v1.1

Choose a tag to compare

@peerhold peerhold released this 18 Sep 01:45
cf7035f

What is cmdbin?

cmdbin is a lightweight utility designed to solve a universal frustration: typing long, complex commands (like kubectl or pg_restore) on a mobile screen.

Instead of fighting tiny virtual keyboards and missing tab-completion, cmdbin runs on the machine that already holds your commands and serves a clean, form-based interface to your phone or secondary device over your local network.

How It Works in 3 Steps

  1. Run the binary: Execute the single file on your host machine. It opens a local loopback browser and manages your command bin at ~/.cmdbin/bin.json.
  2. Switch sharing on: Enable the secure local network listener. It prints a local address and a six-digit PIN. (When turned off, no listener exists at all.)
  3. Open it on your phone: Navigate to the address in your phone's browser, enter the PIN once, and you can instantly search, fill out forms, and copy finished commands. No app stores, accounts, or cloud sync required.

Core Features

  • Forms Instead of Keyboards: Variable parts of commands become smart form fields. Choices turn into dropdowns, numbers bring up numeric keypads, and variables used multiple times sync automatically. You copy a fully built, ready-to-paste command.
  • Built-In Secret Masking: Fields marked :secret are masked as you type. They build the command on the fly but are never written to your bin file, stored for later, or carried into exports.
  • Zero Mobile Footprint: Because it relies entirely on your phone's native browser and local network, nothing is installed on your device. It even works completely offline if your internet goes down.
  • Headless & Raspberry Pi Support: Servers with no screens can run with flags like ./cmdbin -no-browser -share, letting you manage headless Linux environments or Raspberry Pis straight from your phone or laptop.

Security Overview

  • The Gate: A six-digit PIN protects your network address and locks out after ten wrong attempts (only the host can reset it).
  • Encryption: Protected by a self-signed TLS certificate to defeat passive network sniffing.
  • Lifespan: Pairing automatically expires after 12 hours, and switching sharing off instantly terminates all connected devices.

Quick Start

Each archive includes tour.json. -seed imports it if your bin is empty.

Which macOS file? Apple menu → About This Mac. A chip named M1, M2, M3 or M4 is Apple silicon; anything named Intel takes the Intel build. The Intel build also runs on Apple silicon through Rosetta, but the Apple silicon build will not start on an Intel Mac.

About the xattr line in the macOS commands. macOS quarantines every file a browser or curl downloads, and cmdbin is unsigned, so without clearing that flag the binary is refused with "the developer cannot be verified". It runs only after the checksum passes, so nothing is cleared on a file that has not been verified.

Linux x86-64

curl -fLO https://github.com/PeerHold/cmdbin/releases/download/v1.1/cmdbin-linux-v1_1.tar.gz && \
curl -fLO https://github.com/PeerHold/cmdbin/releases/download/v1.1/cmdbin-linux-v1_1.tar.gz.sha256 && \
sha256sum -c cmdbin-linux-v1_1.tar.gz.sha256 && \
tar -xzf cmdbin-linux-v1_1.tar.gz && \
chmod +x cmdbin-linux-v1_1 && \
./cmdbin-linux-v1_1 -seed tour.json

macOS Apple Silicon

curl -fLO https://github.com/PeerHold/cmdbin/releases/download/v1.1/cmdbin-mac-v1_1.tar.gz && \
curl -fLO https://github.com/PeerHold/cmdbin/releases/download/v1.1/cmdbin-mac-v1_1.tar.gz.sha256 && \
shasum -a 256 -c cmdbin-mac-v1_1.tar.gz.sha256 && \
tar -xzf cmdbin-mac-v1_1.tar.gz && \
(xattr -dr com.apple.quarantine cmdbin-mac-v1_1 tour.json 2>/dev/null || true) && \
chmod +x cmdbin-mac-v1_1 && \
./cmdbin-mac-v1_1 -seed tour.json

macOS Intel

curl -fLO https://github.com/PeerHold/cmdbin/releases/download/v1.1/cmdbin-mac-intel-v1_1.tar.gz && \
curl -fLO https://github.com/PeerHold/cmdbin/releases/download/v1.1/cmdbin-mac-intel-v1_1.tar.gz.sha256 && \
shasum -a 256 -c cmdbin-mac-intel-v1_1.tar.gz.sha256 && \
tar -xzf cmdbin-mac-intel-v1_1.tar.gz && \
(xattr -dr com.apple.quarantine cmdbin-mac-intel-v1_1 tour.json 2>/dev/null || true) && \
chmod +x cmdbin-mac-intel-v1_1 && \
./cmdbin-mac-intel-v1_1 -seed tour.json

macOS Intel

curl -fLO https://github.com/PeerHold/cmdbin/releases/download/v1.1/cmdbin-mac-intel-v1_1.tar.gz && \
curl -fLO https://github.com/PeerHold/cmdbin/releases/download/v1.1/cmdbin-mac-intel-v1_1.tar.gz.sha256 && \
shasum -a 256 -c cmdbin-mac-intel-v1_1.tar.gz.sha256 && \
tar -xzf cmdbin-mac-intel-v1_1.tar.gz && \
(xattr -dr com.apple.quarantine cmdbin-mac-intel-v1_1 tour.json 2>/dev/null || true) && \
chmod +x cmdbin-mac-intel-v1_1 && \
./cmdbin-mac-intel-v1_1 -seed tour.json

Windows x86-64 · PowerShell

curl.exe -fLO https://github.com/PeerHold/cmdbin/releases/download/v1.1/cmdbin-v1_1.zip
curl.exe -fLO https://github.com/PeerHold/cmdbin/releases/download/v1.1/cmdbin-v1_1.zip.sha256
$want = (Get-Content cmdbin-v1_1.zip.sha256 -Raw).Trim().Split(' ')[0].ToLower()
$got  = (Get-FileHash cmdbin-v1_1.zip -Algorithm SHA256).Hash.ToLower()
if ($got -eq $want) { Expand-Archive cmdbin-v1_1.zip -DestinationPath . -Force; .\cmdbin-v1_1.exe -seed tour.json } else { Write-Error 'Checksum failed' }

Windows on ARM Snapdragon · PowerShell

curl.exe -fLO https://github.com/PeerHold/cmdbin/releases/download/v1.1/cmdbin-arm64-snapdragon-v1_1.zip
curl.exe -fLO https://github.com/PeerHold/cmdbin/releases/download/v1.1/cmdbin-arm64-snapdragon-v1_1.zip.sha256
$want = (Get-Content cmdbin-arm64-snapdragon-v1_1.zip.sha256 -Raw).Trim().Split(' ')[0].ToLower()
$got  = (Get-FileHash cmdbin-arm64-snapdragon-v1_1.zip -Algorithm SHA256).Hash.ToLower()
if ($got -eq $want) { Expand-Archive cmdbin-arm64-snapdragon-v1_1.zip -DestinationPath . -Force; .\cmdbin-arm64-snapdragon-v1_1.exe -seed tour.json } else { Write-Error 'Checksum failed' }

Raspberry Pi OS 64-bit · Headless (Shared to Phone)

curl -fLO https://github.com/PeerHold/cmdbin/releases/download/v1.1/cmdbin-linux-arm64-pios-modern-v1_1.tar.gz && \
curl -fLO https://github.com/PeerHold/cmdbin/releases/download/v1.1/cmdbin-linux-arm64-pios-modern-v1_1.tar.gz.sha256 && \
sha256sum -c cmdbin-linux-arm64-pios-modern-v1_1.tar.gz.sha256 && \
tar -xzf cmdbin-linux-arm64-pios-modern-v1_1.tar.gz && \
chmod +x cmdbin-linux-arm64-pios-modern-v1_1 && \
./cmdbin-linux-arm64-pios-modern-v1_1 -seed tour.json -no-browser -share