### Run Native Executable Source: https://github.com/amak-tech/port-buddy/blob/master/gateway/HELP.md Runs the compiled native executable directly from the target directory. ```bash $ target/gateway ``` -------------------------------- ### Run Native Container Source: https://github.com/amak-tech/port-buddy/blob/master/gateway/HELP.md Runs the generated container image as any other Docker container. ```bash $ docker run --rm gateway:0.0.1-SNAPSHOT ``` -------------------------------- ### Compile Native Executable with Native Build Tools Source: https://github.com/amak-tech/port-buddy/blob/master/gateway/HELP.md Compiles the project into a native executable using the native profile. Requires GraalVM 22.3+ and the native-image compiler installed. ```bash $ ./mvnw native:compile -Pnative ``` -------------------------------- ### Initialize Port Buddy CLI with API token Source: https://github.com/amak-tech/port-buddy/blob/master/server/src/main/resources/templates/email/welcome.html Generate an API token in your account and run this command once to initialize the CLI. ```bash portbuddy init ``` -------------------------------- ### Build entire project with ./mvnw clean install Source: https://github.com/amak-tech/port-buddy/blob/master/README.md Builds the entire PortBuddy project using the Maven wrapper. Requires Java 25, Maven 3.9+, and Docker. ```bash ./mvnw clean install ``` -------------------------------- ### Build Native Image with Cloud Native Buildpacks Source: https://github.com/amak-tech/port-buddy/blob/master/gateway/HELP.md Creates a lightweight container image using Spring Boot's build-image goal with the native profile. Requires Docker to be installed and configured. ```bash $ ./mvnw spring-boot:build-image -Pnative ``` -------------------------------- ### Expose HTTP service on port 3000 Source: https://github.com/amak-tech/port-buddy/blob/master/server/src/main/resources/templates/email/welcome.html Run this command to expose a local HTTP service running on localhost:3000 with a secure public URL. ```bash portbuddy 3000 ``` -------------------------------- ### Run with Docker Compose using docker-compose up -d Source: https://github.com/amak-tech/port-buddy/blob/master/README.md Starts the full PortBuddy stack in detached mode using Docker Compose. Requires Docker and Docker Compose. ```bash docker-compose up -d ``` -------------------------------- ### Run Tests in Native Image Source: https://github.com/amak-tech/port-buddy/blob/master/gateway/HELP.md Runs the existing test suite in a native image to validate compatibility. Uses the nativeTest profile. ```bash $ ./mvnw test -PnativeTest ``` -------------------------------- ### Expose TCP service on port 5432 Source: https://github.com/amak-tech/port-buddy/blob/master/server/src/main/resources/templates/email/welcome.html Use this command to expose a TCP service, such as PostgreSQL, on port 5432 with a temporary public port. ```bash portbuddy tcp 5432 ``` -------------------------------- ### PortBuddy CLI usage help text Source: https://github.com/amak-tech/port-buddy/blob/master/README.md Shows the full CLI usage, including modes (http, tcp, udp) and options for domain, port reservation, passcode, verbose logging, help, and version. ```text Usage: portbuddy [options] [mode] [host:][port] Modes: http (default), tcp, udp Options: -d, --domain= Requested static subdomain (e.g. my-app) -pr, --port-reservation= Use specific port reservation host:port for TCP/UDP -pc, --passcode= Protect tunnel with a passcode -v, --verbose Enable verbose logging -h, --help Show help message -V, --version Show version info ``` -------------------------------- ### Expose local UDP port (gaming, VoIP) with portbuddy udp 19132 Source: https://github.com/amak-tech/port-buddy/blob/master/README.md Starts a UDP tunnel for a local game server or service on port 19132. ```bash portbuddy udp 19132 ``` -------------------------------- ### CLI Confirmation: portbuddy ssl confirm Source: https://github.com/amak-tech/port-buddy/blob/master/server/src/main/resources/templates/email/dns-instructions.html Use this command to confirm DNS TXT record setup after propagation. It is shown in the email template as the CLI confirmation step. ```bash portbuddy ssl confirm example.com ``` -------------------------------- ### Set VITE_GOOGLE_SITE_VERIFICATION and VITE_BING_SITE_VERIFICATION in GitHub Actions Source: https://github.com/amak-tech/port-buddy/blob/master/web/docs/search-console-setup.md Adds the Google and Bing verification tokens as environment variables for a release build. These are injected into the by the portbuddy-seo-assets plugin and appear on every page. The variables are empty by default, so the meta tags are only emitted when set. ```yaml echo "VITE_GOOGLE_SITE_VERIFICATION=" >> $GITHUB_ENV echo "VITE_BING_SITE_VERIFICATION=" >> $GITHUB_ENV ``` -------------------------------- ### Pull PortBuddy Docker image with docker pull amaktech/portbuddy:latest Source: https://github.com/amak-tech/port-buddy/blob/master/README.md Pulls the official PortBuddy CLI Docker image. For local development, build the image using Dockerfile-cli instead. ```bash docker pull amaktech/portbuddy:latest ```