mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-01 17:54:24 +00:00
22 lines
430 B
Plaintext
22 lines
430 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# opencode export
|
|
|
|
> Export session data as JSON.
|
|
> More information: <https://opencode.ai/docs/cli#export>.
|
|
|
|
- Export a specific session to a file:
|
|
|
|
`opencode export {{session_id}} > {{path/to/session}}.json`
|
|
|
|
- Export a session interactively (output in `stdout`):
|
|
|
|
`opencode export`
|
|
|
|
- Display help:
|
|
|
|
`opencode export {{[-h|--help]}}`
|