← 返回命令列表

Linux command

opencode-export 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Export

opencode export

Export

opencode export [session_id]

说明

opencode export exports session data from OpenCode as JSON. Sessions contain the full conversation history, tool calls, and context from an AI coding session. If no session ID is specified, the current or most recent session is exported. The output can be redirected to a file for archival or sharing.

FAQ

What is the opencode-export command used for?

opencode export exports session data from OpenCode as JSON. Sessions contain the full conversation history, tool calls, and context from an AI coding session. If no session ID is specified, the current or most recent session is exported. The output can be redirected to a file for archival or sharing.

How do I run a basic opencode-export example?

Run `opencode export` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

Where can I find more opencode-export examples?

This page includes 2 examples for opencode-export, plus related commands for nearby Linux tasks.