# pw endpoints https

> Source: https://parallelworks.com/docs/cli/pw/endpoints/https

## pw endpoints https

Serve a local HTTPS app as an endpoint

```
pw endpoints https (PORT | SOCKET_PATH) [flags]
```

### Examples

```
  # Serve a local app on port 5173 as an endpoint
  pw endpoints https 5173
  
  # Serve a local app listening on a Unix socket
  pw endpoints https /tmp/app.sock
  
  # Give it a name and open it in the browser
  pw endpoints https --name my_app --open 3000
```

### Options

```
      --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 https
      --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 them
```

### Options 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 logging
```

### SEE ALSO

* [pw endpoints](/docs/cli/pw/endpoints)	 - Create and serve self-registering endpoint sessions
