Skip to content

Commit 0356807

Browse files
author
pptfz
committed
更新opencode笔记
1 parent 42e18d5 commit 0356807

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

docs/AI/AI编程工具/TUI/OpenCode/优秀教程/OpenCode使用系列课程连载/OpenCode使用系列课程连载(1)——入门基础篇(极简版).md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ author: aaron
77

88
# OpenCode使用系列课程连载(1)——入门基础篇(极简版)
99

10+
[此文章严重抄袭于互联网](https://mp.weixin.qq.com/s/WxRd25lnmQ3bzo4qz2NySw)
11+
1012
> ## Excerpt
1113
> OpenCode使用系列课程连载(1)——入门基础篇(极简版)哈喽大家好~ 本期咱们不讲复杂理论,只讲OpenCode日常能用得上的基础操作,参考官方教程逻辑,一步步教大家轻松上手,新手也能快速搞定,不用怕看不懂!话不多说,直接上干货~
1214
@@ -414,8 +416,8 @@ opencode
414416

415417
| **命令类别** | **具体命令** | **用途说明(新手重点)** |
416418
| ------------- | ------------------------------------------------------------ | ------------------------------------------------------------ |
417-
| Windows安装 | `Set-ExecutionPolicy RemoteSigned -Scope CurrentUser; irm get.scoop.sh | iex` `scoop bucket add extras; scoop install extras/opencode` | 1. 安装Scoop包管理器;2. 添加存储桶并安装OpenCode,全程PowerShell执行 |
418-
| Linux安装 | `curl -fsSL https://opencode.ai/install | bashnpm install -g opencode-ai` | 1. 首选:curl一键安装(适配所有Linux);2. 备用:npm全局安装(需Node.js v18+) |
419+
| Windows安装 | `Set-ExecutionPolicy RemoteSigned -Scope CurrentUser; irm get.scoop.sh | iex` </br> `scoop bucket add extras; scoop install extras/opencode` | 1. 安装Scoop包管理器;2. 添加存储桶并安装OpenCode,全程PowerShell执行 |
420+
| Linux安装 | `curl -fsSL https://opencode.ai/install | bash` </br> `npm install -g opencode-a` | 1. 首选:curl一键安装(适配所有Linux);2. 备用:npm全局安装(需Node.js v18+) |
419421
| 启动方式 | `opencode` 、`cd 项目目录 && opencode` | 1. 普通启动,直接打开交互式界面;2. 项目启动,关联当前项目(最常用) |
420422
| 核心操作 | `@ 文件名`、 `! 命令` 、`/init` 、`/exit` 、`/undo` 、`/redo` | 1. 加载目标文件;2. 执行终端命令;3. 项目初始化(重点);4. 退出工具;5. 撤销上一步;6. 重做被撤销操作 |
421423
| 模型操作 | `/connect 模型名称` 、`/models` | 1. 连接目标AI模型(如/connect GPT-3.5);2. 切换模型,调出列表选择即可 |

0 commit comments

Comments
 (0)