CLI๋ฅผ ์์ฃผ ์ฐ๋ ์์๋ก ์ฌ๊ตฌ์ฑํ ์ค์ ๋ ํผ๋ฐ์ค์ ๋๋ค. ์ค์น/์ง๋จ/์คํ/์ธ์ฆ์ ๋น ๋ฅด๊ฒ ์ฒ๋ฆฌํ ์ ์์ต๋๋ค.
๋น ๋ฅด๊ฒ ์คํ (๋ณต๋ถ)
bunx oh-my-opencode
bunx oh-my-opencode install
bunx oh-my-opencode doctor --verbose
bunx oh-my-opencode run "fix lint"
bunx oh-my-opencode auth status
bunx oh-my-opencode mcp oauth statusflowchart LR A[install] --> B[doctor] B --> C[run] C --> D[auth] D --> E[mcp oauth]
๋จ๊ณ๋ณ ์ ์ฉ
1) install๋ก ์ด๊ธฐ ์ธํ
- ์ค๋ช : ์ด๊ธฐ ์ค์น/ํ๋ฌ๊ทธ์ธ ๋ฑ๋ก์ install๋ก ์์ํฉ๋๋ค.
- ์คํ ์์:
bunx oh-my-opencode
2) doctor๋ก ์ง๋จ
- ์ค๋ช : ํ๊ฒฝ/์ธ์ฆ/์์กด์ฑ ๋ฌธ์ ๋ doctor๋ก ๋จผ์ ์ง๋จํฉ๋๋ค.
- ์คํ ์์:
bunx oh-my-opencode install
3) run์ผ๋ก ์์ ์คํ
- ์ค๋ช : ํ๋กฌํํธ ์คํ ์ timeout/enforce-completion ์ต์ ์ ์ํฉ์ ๋ง๊ฒ ์ฌ์ฉํฉ๋๋ค.
- ์คํ ์์:
bunx oh-my-opencode doctor --verbose
4) auth/mcp oauth ๊ด๋ฆฌ
- ์ค๋ช : ๊ณต๊ธ์ ์ธ์ฆ๊ณผ MCP OAuth ํ ํฐ ์ํ๋ฅผ ๋ถ๋ฆฌ ๊ด๋ฆฌํฉ๋๋ค.
- ์คํ ์์:
bunx oh-my-opencode run "fix lint"
5) CI ๋ชจ๋ ์ ์ฉ
- ์ค๋ช : ์๋ํ ํ๊ฒฝ์์๋ โno-tui โjson ์ถ๋ ฅ์ผ๋ก ํ์ดํ๋ผ์ธ์ ์ฐ๊ฒฐํฉ๋๋ค.
- ์คํ ์์:
bunx oh-my-opencode auth status
๋ถ๋ก) ์๋ฌธ ์ฝ๋ ์ค๋ํซ (๊ฒ์์ฉ, ์ด๋ณด์๋ ๊ฑด๋๋ฐ๊ธฐ)
# Basic execution (displays help)
bunx oh-my-opencode
# Or run with npx
npx oh-my-opencodebunx oh-my-opencode installbunx oh-my-opencode doctorbunx oh-my-opencode run [prompt]# Login to an OAuth-protected MCP server
bunx oh-my-opencode mcp oauth login <server-name> --server-url https://api.example.com
# Login with explicit client ID and scopes
bunx oh-my-opencode mcp oauth login my-api --server-url https://api.example.com --client-id my-client --scopes "read,write"
# Remove stored OAuth tokens
bunx oh-my-opencode mcp oauth logout <server-name>
# Check OAuth token status
bunx oh-my-opencode mcp oauth status [server-name]# Login
bunx oh-my-opencode auth login
# Logout
bunx oh-my-opencode auth logout
# Check current status
bunx oh-my-opencode auth status{
// Agent configuration
"sisyphus_agent": {
"disabled": false,
"planner_enabled": true,
},
/* Category customization */
"categories": {
"visual-engineering": {
"model": "google/gemini-3-pro",
},
},
}# Update OpenCode
npm install -g opencode@latest
# or
bun install -g opencode@latest๋ง๋ฌด๋ฆฌ ์ฒดํฌ
- ์ โ๋น ๋ฅด๊ฒ ์คํโ ๋ช ๋ น์ ์ต์ 1๊ฐ ์คํํ๋ค.
- ์คํจ ์ โ์๋ฌธ ์คํ ์ฝ๋ ํ์ฅโ์ ๊ด๋ จ ์ฝ๋๋ฅผ ์ฌ์ฉํด ์ฌ๊ฒ์ฆํ๋ค.
- ์๋ณธ ํญ๋ชฉ ๋์กฐ ์ธ๋ฑ์ค์์ ๋น ์ง ๊ธฐ๋ฅ์ด ์๋์ง ํ์ธํ๋ค.
์ถ์ฒ
- ์๋ฌธ(๋ก์ปฌ):
oh-my-opencode/docs/cli-guide.md - ์๋ฌธ(GitHub): https://github.com/code-yeongyu/oh-my-opencode/blob/dev/docs/cli-guide.md