pw endpoints http
Serve a local HTTP app as an endpoint
pw endpoints http (PORT | SOCKET_PATH) [flags]Examples
pw endpoints http 5173
# Serve a local app listening on a Unix socket
pw endpoints http /tmp/app.sock
# Give it a name and open it in the browser
pw endpoints http --name my_app --open 3000Options
--auth-file string File containing an Authorization header value or token to forward to the local app
--auth-scheme string Authorization scheme used when --auth-file contains only a raw token (default "Bearer")
--description string Session description (defaults to "Endpoint on <hostname>")
-h, --help help for http
--keep Keep the endpoint session on exit instead of deleting it
--link Stop the local server process listening on the target port when this command exits
-n, --name string Name for the endpoint session (defaults to a server-generated name)
--no-subdomain Skip subdomain assignment and use the path-based session URL
--open Open the endpoint URL in the browser
-o, --output string Output format (interactive, text); interactive shows a live dashboard and downgrades to text when stdout is not a terminal (default "interactive")
--slug string Session base-path slug (default "/")
--strip-path Strip the session URL prefix before forwarding to your app (use only if your app serves at the root path and can't be configured with a base path; by default the full path is forwarded so set your app's base path to the endpoint URL)
-s, --subdomain string Serve at this subdomain: a label (my-app) or the full host under the platform sessions domain (my-app.<sessions domain>); a random subdomain is used by default when the platform supports themOptions inherited from parent commands
--context string The context to use. Overrides PW_CONTEXT environment variable and current context from config.
--platform-host string The Parallel Works ACTIVATE platform host to use. Will override any other platform host settings.
-v, --verbose Enable verbose loggingSEE ALSO
- pw endpoints - Create and serve self-registering endpoint sessions