CLI
CLI Installation
Install the AutoHost CLI on your Linux machine.
Quick Install (recommended)
bash
curl -fsSL https://raw.githubusercontent.com/mazapanuwu13/autohost-cli/main/scripts/install.sh | bash
The installer:
- Detects your OS (linux) and architecture (amd64 / arm64).
- Fetches the latest release from GitHub Releases.
- Downloads the binary and checksums file.
- Verifies the SHA-256 checksum (if sha256sum or shasum is available).
- Installs to /bin (if writable) or ~/.local/bin.
Install a specific version:
bash
VERSION=v0.4.0 curl -fsSL https://raw.githubusercontent.com/mazapanuwu13/autohost-cli/main/scripts/install.sh | bash
Custom install directory:
bash
BIN_DIR=/opt/bin curl -fsSL https://raw.githubusercontent.com/mazapanuwu13/autohost-cli/main/scripts/install.sh | bash
Build from Source
Requires Go 1.23+
Make sure you have Go 1.23 or later installed before building from source.
bash
git clone https://github.com/mazapanuwu13/autohost-cli.git cd autohost-cli go build -o autohost main.go mv autohost ~/.local/bin/
Verify the installation:
bash
autohost --version
PATH Configuration
If autohost is installed in ~/.local/bin and the command is not found, add it to your PATH:
bash
echo 'export PATH="$PATH:$HOME/.local/bin"' >> ~/.bashrc source ~/.bashrc
Uninstall
Remove the binary:
bash
rm $(which autohost)
To also remove configuration data:
bash
rm -rf ~/.autohost