From d897f79a7dc8fe8a463c3573cde7f5d11650e259 Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Fri, 6 Mar 2026 20:50:11 +0900 Subject: [PATCH] docs(cli): remove stale auth command section Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus --- docs/reference/cli.md | 115 ++++++++++++++++++------------------------ 1 file changed, 48 insertions(+), 67 deletions(-) diff --git a/docs/reference/cli.md b/docs/reference/cli.md index bcb2af6a5..fcac716cf 100644 --- a/docs/reference/cli.md +++ b/docs/reference/cli.md @@ -14,14 +14,14 @@ npx oh-my-opencode ## Commands -| Command | Description | -|---------|-------------| -| `install` | Interactive setup wizard | -| `doctor` | Environment diagnostics and health checks | -| `run` | OpenCode session runner | -| `mcp oauth` | MCP OAuth authentication management | -| `auth` | Google Antigravity OAuth authentication | -| `get-local-version` | Display local version information | +| Command | Description | +| ------------------- | ----------------------------------------- | +| `install` | Interactive setup wizard | +| `doctor` | Environment diagnostics and health checks | +| `run` | OpenCode session runner | +| `mcp oauth` | MCP OAuth authentication management | +| `auth` | Google Antigravity OAuth authentication | +| `get-local-version` | Display local version information | --- @@ -44,10 +44,10 @@ bunx oh-my-opencode install ### Options -| Option | Description | -|--------|-------------| -| `--no-tui` | Run in non-interactive mode without TUI (for CI/CD environments) | -| `--verbose` | Display detailed logs | +| Option | Description | +| ----------- | ---------------------------------------------------------------- | +| `--no-tui` | Run in non-interactive mode without TUI (for CI/CD environments) | +| `--verbose` | Display detailed logs | --- @@ -63,22 +63,22 @@ bunx oh-my-opencode doctor ### Diagnostic Categories -| Category | Check Items | -|----------|-------------| -| **Installation** | OpenCode version (>= 1.0.150), plugin registration status | -| **Configuration** | Configuration file validity, JSONC parsing | -| **Authentication** | Anthropic, OpenAI, Google API key validity | -| **Dependencies** | Bun, Node.js, Git installation status | -| **Tools** | LSP server status, MCP server status | -| **Updates** | Latest version check | +| Category | Check Items | +| ------------------ | --------------------------------------------------------- | +| **Installation** | OpenCode version (>= 1.0.150), plugin registration status | +| **Configuration** | Configuration file validity, JSONC parsing | +| **Authentication** | Anthropic, OpenAI, Google API key validity | +| **Dependencies** | Bun, Node.js, Git installation status | +| **Tools** | LSP server status, MCP server status | +| **Updates** | Latest version check | ### Options -| Option | Description | -|--------|-------------| +| Option | Description | +| ------------------- | ---------------------------------------------------------------- | | `--category ` | Check specific category only (e.g., `--category authentication`) | -| `--json` | Output results in JSON format | -| `--verbose` | Include detailed information | +| `--json` | Output results in JSON format | +| `--verbose` | Include detailed information | ### Example Output @@ -124,19 +124,19 @@ bunx oh-my-opencode run [prompt] ### Options -| Option | Description | -|--------|-------------| -| `--enforce-completion` | Keep session active until all TODOs are completed | -| `--timeout ` | Set maximum execution time | -| `--agent ` | Specify agent to use | -| `--directory ` | Set working directory | -| `--port ` | Set port for session | -| `--attach` | Attach to existing session | -| `--json` | Output in JSON format | -| `--no-timestamp` | Disable timestamped output | -| `--session-id ` | Resume existing session | -| `--on-complete ` | Action on completion | -| `--verbose` | Enable verbose logging | +| Option | Description | +| ------------------------ | ------------------------------------------------- | +| `--enforce-completion` | Keep session active until all TODOs are completed | +| `--timeout ` | Set maximum execution time | +| `--agent ` | Specify agent to use | +| `--directory ` | Set working directory | +| `--port ` | Set port for session | +| `--attach` | Attach to existing session | +| `--json` | Output in JSON format | +| `--no-timestamp` | Disable timestamped output | +| `--session-id ` | Resume existing session | +| `--on-complete ` | Action on completion | +| `--verbose` | Enable verbose logging | --- @@ -162,11 +162,11 @@ bunx oh-my-opencode mcp oauth status [server-name] ### Options -| Option | Description | -|--------|-------------| -| `--server-url ` | MCP server URL (required for login) | -| `--client-id ` | OAuth client ID (optional if server supports Dynamic Client Registration) | -| `--scopes ` | Comma-separated OAuth scopes | +| Option | Description | +| -------------------- | ------------------------------------------------------------------------- | +| `--server-url ` | MCP server URL (required for login) | +| `--client-id ` | OAuth client ID (optional if server supports Dynamic Client Registration) | +| `--scopes ` | Comma-separated OAuth scopes | ### Token Storage @@ -174,25 +174,6 @@ Tokens are stored in `~/.config/opencode/mcp-oauth.json` with `0600` permissions --- -## auth - -Manages Google Antigravity OAuth authentication. Required for using Gemini models. - -### Usage - -```bash -# Login -bunx oh-my-opencode auth login - -# Logout -bunx oh-my-opencode auth logout - -# Check current status -bunx oh-my-opencode auth status -``` - ---- - ## Configuration Files The CLI searches for configuration files in the following locations (in priority order): @@ -215,7 +196,7 @@ Configuration files support **JSONC (JSON with Comments)** format. You can use c /* Category customization */ "categories": { "visual-engineering": { - "model": "google/gemini-3-pro", + "model": "google/gemini-3.1-pro", }, }, } @@ -291,25 +272,25 @@ src/cli/ Create `src/cli/doctor/checks/my-check.ts`: ```typescript -import type { DoctorCheck } from "../types" +import type { DoctorCheck } from "../types"; export const myCheck: DoctorCheck = { name: "my-check", category: "environment", check: async () => { // Check logic - const isOk = await someValidation() + const isOk = await someValidation(); return { status: isOk ? "pass" : "fail", message: isOk ? "Everything looks good" : "Something is wrong", - } + }; }, -} +}; ``` Register in `src/cli/doctor/checks/index.ts`: ```typescript -export { myCheck } from "./my-check" +export { myCheck } from "./my-check"; ```