# qctl Command-line interface for the QRun ecosystem. Scaffold QQQ applications, manage qBits, and deploy to qRun. ## Installation ### Homebrew (macOS/Linux) ```bash brew tap QRun-IO/qctl brew install qctl ``` ### Scoop (Windows) ```powershell scoop bucket add qrun https://github.com/QRun-IO/qctl scoop install qctl ``` ### AUR (Arch Linux) ```bash yay -S qctl-bin ``` ### Docker ```bash docker run --rm ghcr.io/qrun-io/qctl:latest --help # Mount current directory for project scaffolding docker run --rm -v $(pwd):/work -w /work ghcr.io/qrun-io/qctl:latest qqq init new-qqq-application my-app ``` ### Pre-built Binaries Download from [Releases](https://github.com/QRun-IO/qctl/releases): | Platform | Binary | |----------|--------| | Linux x64 | `qctl-linux-amd64` | | Linux ARM64 | `qctl-linux-arm64` | | macOS Intel | `qctl-macos-amd64` | | macOS Apple Silicon | `qctl-macos-arm64` | | Windows | `qctl-windows-amd64.exe` | ```bash # Example: macOS Apple Silicon curl -L https://github.com/QRun-IO/qctl/releases/latest/download/qctl-macos-arm64 -o qctl chmod +x qctl sudo mv qctl /usr/local/bin/ ``` ### Build from Source Requires GraalVM 21+: ```bash git clone https://github.com/QRun-IO/qctl.git cd qctl JAVA_HOME=/path/to/graalvm mvn clean package -DskipTests -Pnative ./qctl-cli/target/qctl --version ``` ## Quick Start ```bash # List available project templates qctl qqq list # Scaffold a new QQQ application qctl qqq init new-qqq-application my-app # With custom variables qctl qqq init new-qqq-application my-app \ --var=projectName=MyApp \ --var=groupId=com.example \ --var=package=com.example.myapp ``` ## Commands ### qqq - Scaffolding | Command | Description | |---------|-------------| | `qctl qqq list` | List available templates from the hub | | `qctl qqq init