Hypha Space Logo

hypha-gateway CLI Reference

This document contains the help content for the hypha-gateway command-line program.

Command Overview:

hypha-gateway

The Hypha Gateway is a stable, publicly accessible entry point for the Hypha P2P network. It provides bootstrapping, relaying, and DHT participation for discovery.

Usage: hypha-gateway <COMMAND>

Subcommands:

hypha-gateway init

Generate a default configuration file

Creates a TOML configuration file with sensible defaults for running a gateway, including certificate paths and network addresses.

IMPORTANT: If the output file exists, it will be overwritten without warning.

Usage: hypha-gateway init [OPTIONS]

Options:

hypha-gateway probe

Check if a remote peer is healthy and reachable

Connects to the specified multiaddr, sends a health check request, and exits with code 0 if the peer is healthy, or non-zero otherwise.

Useful for:

NOTE: It's not possible to self-probe using the same certificate used to run the gateway.

Usage: hypha-gateway probe [OPTIONS] <ADDRESS>

Arguments:
Options:

hypha-gateway run

Start the gateway and begin serving the network

Loads configuration, starts listeners, participates in the DHT and relay, and runs until interrupted (SIGINT/SIGTERM) with a graceful shutdown.

Usage: hypha-gateway run [OPTIONS]

Options: