# lizard port

Show or change the container port for a service. No argument prints the current port (`worker mode` when it's `0`).

## Usage

```bash
lizard port [value] [flags]
```

## Flags

| Flag | Description |
|------|-------------|
| `-s, --service <name>` | Service to target |

## Examples

### Show the current port

```bash
lizard port
```

### Set the port for a specific service

```bash
lizard port 0 -s worker
```

### Check the port on a worker service

```bash
lizard port --service worker
```

## See also

- [Background workers](https://lizard.build/docs/deploy/workers) — set the port to `0` to run a service without inbound routing
- [lizard service](https://lizard.build/docs/cli/service) — manage the rest of a service's configuration
- [What a Python app needs from a host](https://lizard.build/blog/python-app-hosting#what-a-python-app-actually-needs-from-a-host) — why a `gunicorn` or `uvicorn` process has to bind `$PORT` on `0.0.0.0`
