Linearis CLI Reference
Verified against Linearis v2026.4.9 (2026-05-31). ⚠️ READ vs WRITE. Linear READS → the local replica by direct SQL, or
linear_read_ticket <ID>. Never shelllinearis issues readfor a routine read — it 429s the shared fleet quota. WRITES →linearis. Read Gotchas before scripting.
Setup check (first, every session)
node "${CLAUDE_SKILL_DIR}/scripts/identity-report.mjs" — one line per identity (tenant, human, team, cloud host), and every unresolved line is a stop-and-say (CTL-2300). Paths like that name files inside this skill: Claude Code fills in ${CLAUDE_SKILL_DIR}; on another harness set CLAUDE_SKILL_DIR to this SKILL.md's directory, or stop and report skill_dir_unresolved. A write addressed to the wrong team or the wrong workspace does not error; it lands somewhere plausible, which is why this runs before the first read as well as the first write.
Reading Linear
Single source of the Linear read rule — other skills point here, they don't restate it.
- Cloud detection, every session — reuse the existing helpers, never write new ones:
```bash
source "${CLAUDE_SKILL_DIR}/scripts/lib/linear-read-replica.sh"
replica_fresh; rf=$? # 0 = writer heartbeat <5min AND seeded
source "${CLAUDE_SKILL_DIR}/scripts/lib/plugin-dirs.sh"
marker="$(plugin_dirs_repo_config_path)" # "" if no .catalyst/config.json found
```
Either failing → no cloud mirror: say so loudly (never silent) and fall back to direct linearis/API reads — the non-fleet path (protects the 2500/hr quota), wrong to recommend on the fleet. Same pattern: steward's references/cloud-detection.md.
- Cloud mode confirmed → query the replica and TRUST it. Don't re-verify against live Linear.
- Row missing / not fresh → an ALARM, not a silent reroute. Loud fallback, file a ticket.
The only reads you should shell directly are through the helper — it is the freshness gate, not a convenience wrapper. Never run a bare sqlite3 query against the replica yourself: it skips the $rf/$marker checks above and can return stale data (or an empty DB) with no fallback.
json=$(linear_read_ticket ENG-123) || return 1 # freshness-gate → SQL → loud fallback, ONE call
title=$(printf '%s' "$json" | jq -r '.title // empty')
Raw SQL syntax (only after the helper's gate already ran), schema discovery, apply-drift caveat, deprecated wrapper: