docs(cli): add documentation for --fork flag (#12561)

This commit is contained in:
Ariane Emory
2026-02-07 09:40:36 -05:00
committed by GitHub
parent fedf9feba8
commit 515ef8e554

View File

@@ -30,9 +30,10 @@ opencode [project]
#### Flags #### Flags
| Flag | Short | Description | | Flag | Short | Description |
| ------------ | ----- | ------------------------------------------ | |--------------|-------|-------------------------------------------------------------------------|
| `--continue` | `-c` | Continue the last session | | `--continue` | `-c` | Continue the last session |
| `--session` | `-s` | Session ID to continue | | `--session` | `-s` | Session ID to continue |
| `--fork` | | Fork the session when continuing (use with `--continue` or `--session`) |
| `--prompt` | | Prompt to use | | `--prompt` | | Prompt to use |
| `--model` | `-m` | Model to use in the form of provider/model | | `--model` | `-m` | Model to use in the form of provider/model |
| `--agent` | | Agent to use | | `--agent` | | Agent to use |
@@ -335,10 +336,11 @@ opencode run --attach http://localhost:4096 "Explain async/await in JavaScript"
#### Flags #### Flags
| Flag | Short | Description | | Flag | Short | Description |
| ------------ | ----- | ------------------------------------------------------------------ | |--------------|-------|-------------------------------------------------------------------------|
| `--command` | | The command to run, use message for args | | `--command` | | The command to run, use message for args |
| `--continue` | `-c` | Continue the last session | | `--continue` | `-c` | Continue the last session |
| `--session` | `-s` | Session ID to continue | | `--session` | `-s` | Session ID to continue |
| `--fork` | | Fork the session when continuing (use with `--continue` or `--session`) |
| `--share` | | Share the session | | `--share` | | Share the session |
| `--model` | `-m` | Model to use in the form of provider/model | | `--model` | `-m` | Model to use in the form of provider/model |
| `--agent` | | Agent to use | | `--agent` | | Agent to use |