lc is the LivingContext command-line client. From any terminal it can search and read your docs, draft reviewed doc changes, explore your Salesforce org intelligence, check integration status, and start agent runs — all under your organization’s permissions.
Install
PATH. There are no other dependencies — lc runs on Bun if it’s installed, otherwise Node 20+.
Sign in
lc uses two independent keys, each minted in the app and each unlocking a different set of commands:
lc login prompts for whichever keys you have and stores them in a private config file on your machine (readable only by you). You can also set them per-session with the LC_MCP_KEY and LC_AGENT_KEY environment variables, or point at a specific instance with LC_BASE_URL (or lc login --base-url).
Run lc status any time to confirm connectivity and that your keys are valid.
What you can do
Docs
search for docs, get one’s markdown, and list recent changes.Reviewed writes
doc create, doc update, and doc tag — every write lands as a change request.Salesforce intelligence
sf context, search, deps, schema, access, debt, and more.Agent runs
agent run an instruction and stream its status, then agent get / agent list.Common commands
--json to print the raw payload for scripting.
Writing docs
Writes never go straight tomain — they land as a change request for human review, exactly like edits made in the app:
--submit to open the pull request immediately, or lc doc submit <changeRequestId> later.
Command reference
Arguments in<angle brackets> are required; [square brackets] are optional. Repeatable flags are marked ....
Setup — login, logout, status
Setup — login, logout, status
Integrations — connect, github
Integrations — connect, github
Docs — search, read, write
Docs — search, read, write
Salesforce intelligence — sf
Salesforce intelligence — sf
Agent runs — agent
Agent runs — agent
Advanced — tools, call, version
Advanced — tools, call, version
Scripting
lc is built to compose with shell pipelines:
- Most read commands accept
--jsonto emit the raw payload instead of the human-readable rendering. - Exit codes are strict:
0on success,1on any failure (bad usage, HTTP or tool errors, a failed or cancelled agent run) — safe to chain with&&. lc getkeeps markdown on stdout and metadata on stderr, solc get <docId> > page.mdcaptures clean content.- For CI, skip the config file and pass keys through the environment:
Troubleshooting
To uninstall, delete the launcher, the bundle, and (optionally) your config:
lc speaks to the same MCP server your AI coding tools use, so it inherits the same guarantees: keys are org-scoped, your membership is re-checked on every call, and writes respect your role and always end at review.lc help for the full command list, or lc tools to see every underlying tool.