# pw endpoints create

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

## pw endpoints create

Create an endpoint and forward its traffic to a local port

```
pw endpoints create --port PORT [name] [flags]
```

### Examples

```
  # Serve a local app on port 5173 as an endpoint
  pw endpoints create --port 5173
  
  # Give it a name and open it in the browser
  pw endpoints create --port 3000 --open my_app
```

### Options

```
      --description string   Session description (defaults to "Endpoint on <hostname>")
  -h, --help                 help for create
      --keep                 Keep the endpoint session on exit instead of deleting it
      --link                 Stop the local server process listening on --port when this command exits
      --open                 Open the endpoint URL in the browser
      --port int             Local port to forward inbound traffic to (required)
      --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)
```

### 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
