CLI Commands
Run liner with no arguments to open the navigator. Use subcommands for scripting or direct CLI work. For the commands agents use to discover, build, and improve liners, see Use and improve liners.
Without a global install, replace liner <command> with npx --yes linersh@latest <command>.
Internally, Liner’s CLI refers to a liner folder as a Project (for example in liner project ... commands).
Core liner commands
Section titled “Core liner commands”| Command | What it does |
|---|---|
liner init <folder> |
Create a liner folder with starter mixtape/ files. |
liner replay <folder> [--out <path>] |
Copy a liner’s Job Story and Clarify Job answers into a fresh liner while keeping lineage for comparison. |
liner compile <folder> |
Fetch sources and write mixtape/MIXTAPE.md and mixtape/sources/. |
liner share <folder> |
Package the liner into a .mixtape zip archive. |
liner import <archive> [dest] |
Extract a .mixtape archive and refetch uncached web and YouTube sources. |
liner clone <url-or-path> [dest] |
Fetch a remote tape file or copy a local one without compiling. |
liner list |
List liner folders in the current directory (--json, --recursive to descend one level). |
Reviewed liner maintenance (liner project)
Section titled “Reviewed liner maintenance (liner project)”Maintenance commands read a write-free Snapshot, plan an exact Change Set, apply that plan atomically, and save a redacted Change Receipt. Inspection and planning never write files. Higher-risk operations wait for approval of the exact preview.
liner project inspect reports the immutable Project ID, revision, compatibility, lifecycle state, and immutable Source IDs. Use those IDs when scripting changes, because folder paths and URLs can change.
| Command | What it does |
|---|---|
liner project inspect [path] |
Read liner identity, compatibility, lifecycle state, and source IDs without writing. |
liner project guidance <folder> --format json |
Print the installed CLI’s maintenance contract and recovery steps (--format markdown for readable prose). |
liner project plan <folder> --request-json <json> |
Build a write-free Change Set from a versioned maintenance request. |
liner project pointer <folder> --environment <codex|claude> --action <install|update|remove> |
Plan an opt-in managed AGENTS.md or CLAUDE.md pointer block update. |
liner project rename <folder> --name <name> |
Plan a display-name change while keeping the same Project ID. |
liner project move <folder> --destination <path> |
Plan an atomic folder move while keeping the same Project ID. |
liner project apply <folder> --change-set-json <json> |
Apply one exact Change Set atomically and save a redacted Change Receipt. |
Structural or semantic plans require --approve. Moving a liner also requires --approved-destination <path> matching the exact path in the reviewed Change Set.
Source maintenance (liner sources)
Section titled “Source maintenance (liner sources)”Every canonical source has an immutable Source ID. Updating metadata or a URL preserves the ID. Replacing a source creates a successor ID linked to its predecessor. Removing a source moves it into a retention vault; purging requires separate approval.
| Command | What it does |
|---|---|
liner sources add <folder> --type <type> ... |
Add a source and write a receipt when approval is not required; otherwise print the plan for review. |
liner sources update <folder> --source-id <id> ... |
Update metadata or a locator while preserving Source ID. |
liner sources replace <folder> --source-id <id> --type <type> ... |
Plan a successor source with explicit predecessor lineage; apply separately. |
liner sources remove <folder> --source-id <id> |
Plan moving a source into the retention vault; apply separately. |
liner sources purge <folder> --source-id <id> |
Plan separately approved deletion of retained source content. |
Agent skills and adapters
Section titled “Agent skills and adapters”| Command | What it does |
|---|---|
liner agent-skill install <codex|claude> |
Preview (or with --yes, install) the main liner skill so your agent can find, load, and build liners. On Claude Code, also adds the read-only reader subagent and approval guard (--no-subagent and --no-guard opt out). |
liner agent-skill inspect <codex|claude> |
Check the installed liner skill and whether its liner list is current. |
liner agent-skill update <codex|claude> |
Refresh the liner skill and the liners it names. |
liner agent-skill remove <codex|claude> |
Remove Liner-managed skill files while keeping your own content. |
liner adapters inspect <codex|claude> |
Inspect the optional Maintenance adapter without changing it. |
liner adapters install <codex|claude> |
Preview installation (add --yes to authorize and print a receipt). |
liner adapters update <codex|claude> |
Preview an update to managed adapter files (add --yes to apply). |
liner adapters remove <codex|claude> |
Preview removal of managed adapter files (add --yes to apply); user content stays intact. |
Process and inspection commands
Section titled “Process and inspection commands”| Command | What it does |
|---|---|
liner manifest <folder> |
Aggregate .liner-runs/ into process.json. |
liner status <folder> |
Show runs, tokens, tool calls, and fetched URLs. For agent-built liners, shows the research funnel: searches, candidates, pages read, evaluated, kept, and final sources. |
liner citations <slug> |
List every footnote in a liner’s synthesis and the compiled source file it opens. |
liner skills list |
List locally installed skills available as inert skill sources (--json supported). |
The navigator also reads two internal data commands: liner library (library feed) and liner handoff <context> (generates the prompts shown when pressing y).
Use liner status <folder> --no-write --json for read-only inspection, or --status-only to refresh the status snapshot in liner.yaml without writing process.json.
Cache and setup commands
Section titled “Cache and setup commands”| Command | What it does |
|---|---|
liner cache info |
Show the source cache path and disk size. |
liner cache list |
List cached source entries. |
liner cache show <url> |
Inspect one cached source. |
liner cache clear |
Clear cached source content (asks for confirmation). |
liner cache purge <url> |
Remove one cached URL. |
liner setup-js |
Download Playwright headless Chromium (about 100 MB download, 220 MB on disk) for JS-rendered pages. |
liner uninstall |
Remove Liner configuration, source cache, shared Playwright browsers, and npm’s npx cache. Supports --dry-run and --yes (-y). Saved liners stay in place. |
Useful flags
Section titled “Useful flags”Stream compile progress as events:
liner compile mobile-design-foundations --emit-eventsRefetch sources without reusing cached copies:
liner compile mobile-design-foundations --no-cachePass a Netscape-format browser cookies file when fetching restricted pages or YouTube transcripts:
liner compile mobile-design-foundations --cookies ~/cookies.txtExport without raw local-sources/ files (check private material rules before sharing):
liner share mobile-design-foundations --no-personalList liner folders as JSON or descend one level below --dir:
liner list --jsonliner list --recursivePreview everything uninstall would delete without touching disk:
liner uninstall --dry-run