-
Notifications
You must be signed in to change notification settings - Fork 4
CLI Machines Forwards Add
github-actions[bot] edited this page Aug 9, 2026
·
1 revision
Saves a port forward against a machine. It saves only; use on to open it.
ed machines forwards add <machine> --local <n> --remote <n>
[--remote-host <h>] [--title <t>] [--json]
| Name | Type / values | Default | What it does |
|---|---|---|---|
<machine> |
string, required | none | Machine name, ssh alias, id or unambiguous prefix. |
| Name | Type / values | Default | What it does |
|---|---|---|---|
--local |
integer 1 to 65535, required | none | Port to open on this Mac. Bound to 127.0.0.1, not to every interface. |
--remote |
integer 1 to 65535, required | none | Port to reach on the far side. |
--remote-host |
string | localhost |
The host the far side should connect to, resolved on the machine. Point it at another box on that network to reach through. |
--title |
string | "" |
What to call it in the list. |
--json |
flag | off | Emit JSON on stdout instead of the line. |
--help, -h
|
flag | off | Print the help for this command on stdout and exit 0. |
$ ed machines forwards add tuf --local 8080 --remote 80 --title "web"
added 127.0.0.1:8080:localhost:80 on Asus TUF 7
The same object forwards ls emits, with one difference worth knowing:
{
"id": "1E0B4C4A-5D3B-4F5B-9D2E-0F1A2B3C4D5E",
"index": 0,
"localPort": 8080,
"remoteHost": "localhost",
"remotePort": 80,
"spec": "127.0.0.1:8080:localhost:80",
"title": "web"
}index is 0 here, not the new row's position. The number is only meaningful
in a listing, so run ed machines forwards ls <machine> --json afterwards if
you need the position to pass to on.
ed machines forwards add tuf --local 8080 --remote 80
ed machines forwards add tuf --local 5433 --remote 5432 --title postgres
ed machines forwards add tuf --local 9000 --remote 9000 --remote-host 10.0.0.7
Appends to forwards.json and posts machinesChanged. Two forwards on one
machine cannot claim the same local port:
$ ed machines forwards add tuf --local 3000 --remote 3000
error: Asus TUF 7 already forwards local port 3000
hint: run `ed machines forwards ls Asus TUF 7` to see them
That exits 1, as does a port outside 1 to 65535. The check is per machine, so
two different machines may both save local port 3000; only one of them can have
it open at a time, and the second on is what fails.
-
ed machines, the rest of this group - All
edcommands
Auto-generated from docs/, edit the docs in the repo, not the wiki.
CLI reference
Companion
- Deploy
- Concepts
- Concepts Memory
- Concepts Ingestion
- Concepts Search
- Concepts Chat
- Concepts Learning
- Concepts Brain
- Concepts Friend
- Hosts
- Stack
- Status
- Doctor
- Search
- Index
- Ingest
- Episodes
- Sync
- Observations
- Reflect
- Beliefs
- Ask
- Extract
- Claims
- Corroborate
- Runs
- Chat
- Conversations
- Forget
- Export
- Import
- Erase
- Wipe
- Episode
- Nightly
- Reason
- Personas
- Council
- Lenses
- Core
- Why
- Hypotheses
- Predictions
- Commitments
- Discrepancies
- Calibration
- Inquire
- Entities
- Eval
- Standup
- Machines
- Baselines
- Connectors
- Facts
- Correct
- Weekly
- Db
Guides