Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .agents/skills/brev-cli/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,12 @@ brev port-forward my-instance -p 8080:8080
# List Skybridge-managed HTTP and network ports for an instance or external node
brev ports my-instance
brev ports my-node --json

# Open a public port (TCP by default)
brev ports open my-instance 8080
brev ports open my-node 53 --protocol udp --allow 203.0.113.10/32
brev ports open my-instance 3000 --protocol http --public
brev ports open my-instance 8888 --protocol http --authorize me@example.com
```

### Listing Instances and Nodes
Expand Down
34 changes: 34 additions & 0 deletions .agents/skills/brev-cli/reference/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,40 @@ brev ports my-node
brev ports my-instance --json
```

#### Open a port

Open a raw TCP, UDP, or SSH port, or create an HTTP application endpoint, on a
managed instance or registered compute node. `add` is an alias for `open`.

```bash
brev ports open <instance-or-node> <port> [flags]
```

**Flags:**
| Flag | Description |
|------|-------------|
| `--protocol` | Port protocol: `tcp` (default), `udp`, `ssh`, `http`, or `https` |
| `--allow` | Source CIDR for TCP, UDP, or SSH; repeat to add more than one |
| `--authorize` | Email authorized for an HTTP endpoint; repeat to add more than one |
| `--hostname` | HTTP endpoint hostname prefix; defaults to the destination port |
| `--public` | Disable authentication for an HTTP endpoint |
| `--json` | Output the opened port as JSON |

Omit `--allow` to allow raw-port connections from any source. HTTP endpoints
default to authorizing the current user's email; use `--public` to make one
available without authentication. `--protocol http` connects the public HTTPS
endpoint to a plain-HTTP service, while `https` expects TLS on the destination.

**Examples:**
```bash
brev ports open my-instance 8080
brev ports open my-node 53 --protocol udp
brev ports open my-instance 8080 --allow 203.0.113.10/32
brev ports add my-node 2222 --protocol ssh --json
brev ports open my-instance 3000 --protocol http --public
brev ports open my-instance 8888 --protocol http --authorize me@example.com
```

## Organization Commands

### brev org ls
Expand Down
Loading
Loading