summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAriane Emory <[email protected]>2026-02-07 09:40:36 -0500
committerGitHub <[email protected]>2026-02-07 08:40:36 -0600
commit515ef8e554f97645c164f1f08918c3f7b07b88a8 (patch)
tree3a62af8af6819224ce333ab1380646620459368d
parentfedf9feba8c82c874e250d2fcc108b008fcf5212 (diff)
downloadopencode-515ef8e554f97645c164f1f08918c3f7b07b88a8.tar.gz
opencode-515ef8e554f97645c164f1f08918c3f7b07b88a8.zip
docs(cli): add documentation for --fork flag (#12561)
-rw-r--r--packages/web/src/content/docs/cli.mdx46
1 files changed, 24 insertions, 22 deletions
diff --git a/packages/web/src/content/docs/cli.mdx b/packages/web/src/content/docs/cli.mdx
index 2d68e1773..862ef9ff3 100644
--- a/packages/web/src/content/docs/cli.mdx
+++ b/packages/web/src/content/docs/cli.mdx
@@ -29,15 +29,16 @@ opencode [project]
#### Flags
-| Flag | Short | Description |
-| ------------ | ----- | ------------------------------------------ |
-| `--continue` | `-c` | Continue the last session |
-| `--session` | `-s` | Session ID to continue |
-| `--prompt` | | Prompt to use |
-| `--model` | `-m` | Model to use in the form of provider/model |
-| `--agent` | | Agent to use |
-| `--port` | | Port to listen on |
-| `--hostname` | | Hostname to listen on |
+| Flag | Short | Description |
+|--------------|-------|-------------------------------------------------------------------------|
+| `--continue` | `-c` | Continue the last session |
+| `--session` | `-s` | Session ID to continue |
+| `--fork` | | Fork the session when continuing (use with `--continue` or `--session`) |
+| `--prompt` | | Prompt to use |
+| `--model` | `-m` | Model to use in the form of provider/model |
+| `--agent` | | Agent to use |
+| `--port` | | Port to listen on |
+| `--hostname` | | Hostname to listen on |
---
@@ -334,19 +335,20 @@ opencode run --attach http://localhost:4096 "Explain async/await in JavaScript"
#### Flags
-| Flag | Short | Description |
-| ------------ | ----- | ------------------------------------------------------------------ |
-| `--command` | | The command to run, use message for args |
-| `--continue` | `-c` | Continue the last session |
-| `--session` | `-s` | Session ID to continue |
-| `--share` | | Share the session |
-| `--model` | `-m` | Model to use in the form of provider/model |
-| `--agent` | | Agent to use |
-| `--file` | `-f` | File(s) to attach to message |
-| `--format` | | Format: default (formatted) or json (raw JSON events) |
-| `--title` | | Title for the session (uses truncated prompt if no value provided) |
-| `--attach` | | Attach to a running opencode server (e.g., http://localhost:4096) |
-| `--port` | | Port for the local server (defaults to random port) |
+| Flag | Short | Description |
+|--------------|-------|-------------------------------------------------------------------------|
+| `--command` | | The command to run, use message for args |
+| `--continue` | `-c` | Continue the last session |
+| `--session` | `-s` | Session ID to continue |
+| `--fork` | | Fork the session when continuing (use with `--continue` or `--session`) |
+| `--share` | | Share the session |
+| `--model` | `-m` | Model to use in the form of provider/model |
+| `--agent` | | Agent to use |
+| `--file` | `-f` | File(s) to attach to message |
+| `--format` | | Format: default (formatted) or json (raw JSON events) |
+| `--title` | | Title for the session (uses truncated prompt if no value provided) |
+| `--attach` | | Attach to a running opencode server (e.g., http://localhost:4096) |
+| `--port` | | Port for the local server (defaults to random port) |
---