@@ -217,3 +217,47 @@ codeant scans dismissed --repo acme/backend
217217# List dismissed secrets alerts
218218codeant scans dismissed --repo acme/backend --analysis-type secrets
219219```
220+
221+ ---
222+
223+ ### ` scans start-scan `
224+
225+ Trigger a new analysis run for a repository.
226+
227+ ``` bash
228+ codeant scans start-scan [options]
229+ ```
230+
231+ All options are optional — ` repo ` , ` branch ` , and ` commit ` are auto-detected from the local git context when not provided.
232+
233+ ** Options:**
234+
235+ | Option | Description |
236+ | --------| -------------|
237+ | ` --repo <repo> ` | Repository in ` owner/repo ` format (auto-detected from git remote) |
238+ | ` --branch <name> ` | Branch to scan (auto-detected from current checkout) |
239+ | ` --commit <sha> ` | Commit SHA to scan (resolved from remote HEAD of branch if omitted) |
240+ | ` --include <paths> ` | Comma-separated file path glob patterns to include |
241+ | ` --exclude <paths> ` | Comma-separated file path glob patterns to exclude |
242+
243+ ** Examples:**
244+
245+ ``` bash
246+ # Zero-config — auto-detects repo, branch, and latest commit
247+ codeant scans start-scan
248+
249+ # Explicit repo and branch
250+ codeant scans start-scan --repo CodeAnt-AI/codeant-cli --branch main
251+
252+ # Explicit commit SHA
253+ codeant scans start-scan \
254+ --repo CodeAnt-AI/codeant-cli \
255+ --branch main \
256+ --commit b509bffa1721da442f35a7ccab969822711a67f0
257+
258+ # Scan only specific files
259+ codeant scans start-scan \
260+ --branch main \
261+ --include " src/main.py,src/utils.py" \
262+ --exclude " tests/,*.md"
263+ ```
0 commit comments