10x-cli
CLI tool for 10xDevs course content. Fetch and apply AI coding skills,
prompts, and configs directly into your workspace.
Requirements
- Node 20+ — this is the only runtime dependency.
Corporate firewall / proxy allowlist (for security and sysadmin teams):
Polish docs/wymagania-sieciowe.md,
English docs/network-requirements.md.
Install
# Zero-install — run directly with npx (no global install needed)
npx @przeprogramowani/10x-cli auth
npx @przeprogramowani/10x-cli get m1l1
# Or install globally for shorter commands
npm install -g @przeprogramowani/10x-cli
# Or download a standalone binary from GitHub Releases
# https://github.com/przeprogramowani/10x-cli/releases
Install the bundled CLI helpers (unreleased)
10x helpers install is implemented on this branch for the next CLI release;
it is not available in 1.21.0 or the 1.22.0 master baseline. A checkout build
may still print 1.22.0 until the release process assigns a version. Check
10x helpers --help on your actual executable before using this command; do not
assume that installing today's npm version includes it.
Once your release includes it, run from the intended project directory:
10x helpers install --tool copilot --dry-run
10x helpers install --tool copilot
This installs both 10x-cli-setup and 10x-cli-guide, each with its complete
SKILL.md and references/compatibility.md, into .github/skills/. Use
--tool claude-code, cursor, codex, devin-desktop, factory, gemini, kiro, or generic
when that is your intended tool. The target must be explicit; installation is
project-only. There is no --global, automatic agent detection, skills/npx
subprocess, authentication, or network access. The helper bytes come from the
same CLI build, including the standalone binary; fetching the npm CLI itself
still requires npm/network in the usual way.
Identical existing files are unchanged; missing files are created. If any existing
helper file differs, neither helper is written and the command exits 1. Keep the
existing copy or back up your changes outside managed skill directories before
replacing it deliberately. Files managed by course 10x get/sync remain under
that channel; this command does not register or take over a course manifest.
It never deletes extra local files. A filesystem failure also exits 1; any files
already created remain, and rerunning safely checks them again. --dry-run
performs the same path/conflict checks without writes. Invalid/missing targets or
unsupported flags exit 2 in both human and JSON use.
For Copilot CLI, run /skills reload, then /skills info 10x-cli-setup and
/skills info 10x-cli-guide in the same project. Installing helpers does not
execute them or authenticate the course CLI. VS Code Copilot also reads project
.github/skills; open the same project there.
To try the unreleased source checkout without changing a global installation:
run bun run /absolute/path/to/10x-cli/src/index.ts helpers install --tool copilot
from a disposable project, with dependencies already installed in the checkout.
The public skills route below remains available for older CLI releases. Its
Copilot agent ID is github-copilot, whereas this CLI uses --tool copilot.
Agentic Installation
The 10x-cli-setup helper prepares the CLI and
passes project context to 10x-cli-guide, which
leads through download → an actual agent task → sync. Each ships its own
compatibility reference.
Installing the npm CLI does not activate these helpers in your agent.
For public installation on demand, choose a full retained public CLI master SHA
containing the helper version you want. From your project root (macOS/zsh):
: "${CLI_SKILLS_REF:?Set the full public CLI master SHA containing the helpers}"
npx --yes skills@1.5.26 add "https://github.com/przeprogramowani/10x-cli/tree/$CLI_SKILLS_REF/skills" --skill 10x-cli-setup --agent claude-code --copy
# Install guide when needed using the same channel:
npx --yes skills@1.5.26 add "https://github.com/przeprogramowani/10x-cli/tree/$CLI_SKILLS_REF/skills" --skill 10x-cli-guide --agent claude-code --copy
These are project copies. Installer prompts remain enabled; npx --yes only
accepts running the pinned tool. Inspect the actual installed paths and ask the
agent to read that SKILL.md and its references. No automatic discovery is assumed.
Both helpers can also be downloaded through the CLI once filtered get is supported
by your verified release and v4 m1l1 content is published and accessible. In a
separate project from public copies, after setup/auth:
: "${CLI_VERSION:?Set the actual verified published CLI version}"
10x_cli() { npx --yes "@przeprogramowani/10x-cli@$CLI_VERSION" "$@"; }
10x_cli --version
10x_cli get --help
10x_cli get m1l1 --type skills --name 10x-cli-setup --tool claude-code --lang pl --dry-run
10x_cli get m1l1 --type skills --name 10x-cli-setup --tool claude-code --lang pl
10x_cli get m1l1 --type skills --name 10x-cli-guide --tool claude-code --lang pl --dry-run
10x_cli get m1l1 --type skills --name 10x-cli-guide --tool claude-code --lang pl
Source membership does not prove publication. Confirm skill-filter support and direct
sync against the actual package and content; do not infer it from a version label
or silently replace the name with a full lesson. CLI-owned copies update through
sync; public copies update through a deliberate new source SHA and pinned add.
The CLI executable has its own npm/binary update procedure.
Keep one updater per copy. Before either route, inspect destination paths/symlinks
and CLI/installer ownership. For public→CLI takeover, back up the whole helper
outside managed trees, unregister only that helper through the original installer,
verify its destination and registration are gone, then filtered get. Preserve local
edits for conscious merging. For CLI→public use a new project; no verified CLI
per-skill unregister is promised. See the compatibility reference for details.
Quick Start
Use an existing verified global/standalone 10x, or the pinned 10x_cli runner
above. Retain your v3 project and use a separate v4 exercise directory. Leave
--course out: an unbound directory takes the highest edition your account can
reach, a bound one keeps its own, and 10x doctor reports which edition this
project is on. After checking skill-filter capability and content availability. Sync later refreshes
whole downloaded lessons, so inspect its preview and accept any additional
artifacts/rules before applying; repeat a skill filter for a narrow update:
10x_cli auth --status
# If login is needed: 10x_cli auth (email or Circle); see auth commands below.
10x_cli list
10x_cli get m1l1 --type skills --name 10x-idea-check --tool claude-code --lang pl --dry-run
10x_cli get m1l1 --type skills --name 10x-idea-check --tool claude-code --lang pl
10x_cli get m1l1 --type skills --name 10x-init --tool claude-code --lang pl --dry-run
10x_cli get m1l1 --type skills --name 10x-init --tool claude-code --lang pl
10x_cli get m1l1 --type skills --name 10x-shape --tool claude-code --lang pl --dry-run
10x_cli get m1l1 --type skills --name 10x-shape --tool claude-code --lang pl
10x_cli get m1l1 --type skills --name 10x-prd --tool claude-code --lang pl --dry-run
10x_cli get m1l1 --type skills --name 10x-prd --tool claude-code --lang pl
# Follow the guide: read each installed SKILL.md and references, then
# init → shape with the learner’s 10xCards inputs → PRD from approved notes.
10x_cli sync --tool claude-code --lang pl --dry-run
10x_cli sync --tool claude-code --lang pl
10x_cli doctor
The guide uses lesson 1's existing 10xCards example and produces
context/foundation/shape-notes.md, then context/foundation/prd.md.
Lesson setup installs all four skill trees. Use 10x-idea-check and its references
first when you want to assess an idea; it is optional before init → shape → PRD.
Read the installed entrypoints and their references; PRD requires the sibling
.claude/skills/10x-shape/references/prd-schema.md. Preserve existing outputs and
follow the skills' collision choices. CLAUDE-m1l1 is a separate lesson rule;
see the guide for prerequisite checks without a full-get fallback. 10x-plan
is not available for this launch demonstration. CLI 1.21.0 and v4 m1 EN/PL are
published; these revised helpers remain a separate source change. Verify each
filtered preview and complete PL references before the walkthrough. A download alone is not successful skill use.
Inspect sync conflicts even on exit 0; never apply automatic --force. A missing
tool directory before first get can explain that doctor check; other failures
remain visible. Full lesson downloads and other commands remain available below.
Commands
| Command |
Description |
10x auth |
Magic-link login with your Circle-registered email |
10x auth --method circle |
No email received? Get the approval link as a Circle message instead |
10x list |
Browse modules and lessons in your course |
10x get <ref> |
Fetch a lesson and apply artifacts to your workspace |
10x sync |
Bulk-download / refresh lessons and report what changed upstream |
10x changelog |
Show 10x-toolkit release notes since your last sync |
10x skill <name> |
Explain a skill: problem, solution, when to use it, what it produces, related skills |
10x skill <name> --install |
Install one course skill without naming a lesson |
10x skill-group <name> |
Explain a group of skills, e.g. core-skill-chain; --install writes all of them |
10x doctor |
Diagnose auth, API connectivity, and local config |
10x bench |
Live top-10 AI model leaderboard from 10xbench.ai — no login needed |
10x bench-kit <action> |
Create (init) and update (update) a company benchmark instance from the 10x-bench-kit template |
10x get Flags
| Flag |
Description |
--tool <tool> |
AI coding tool: claude-code, cursor, copilot, codex, devin-desktop, gemini, kiro, factory, generic |
--print |
Output artifact content to stdout instead of writing files |
--type <type> |
Filter by artifact type: skills, prompts, rules, configs |
--name <name> |
Filter by artifact name (requires --type) |
--dry-run |
Show what would be written without touching the filesystem |
--course <slug> |
Select an entitled course ID or slug; default is the project edition or API recommendation |
--no-course-rules |
Skip the course rules block in your rules file (CLAUDE.md/AGENTS.md); removes an unchanged block whose ownership and baseline are known. Broken or duplicate markers are left untouched so skills and prompts can still apply. Use --course-rules to re-enable. |
Examples
# Fetch full lesson — writes skills, prompts, rules, configs
10x get m1l1
# Write only skills (skip prompts, rules, configs)
10x get m1l1 --type skills
# Write a single artifact
10x get m1l1 --type skills --name code-review
# Print to stdout (pipe-friendly)
10x get m1l1 --print --type skills --name code-review
10x get m1l1 --print --type skills --name code-review | pbcopy
# Use with a different AI coding tool
10x get m1l1 --tool cursor
# Skip the course rules block (use only your rules). Persisted across runs;
# an unchanged block with a known baseline is removed. Re-enable later with --course-rules.
# Also the recovery path when CLAUDE.md markers are broken (orphan/duplicate).
10x get m1l1 --no-course-rules
10x get m1l2 --course-rules
# An explicit rules request always applies, even with the opt-out persisted
10x get m1l1 --type rules
The --no-course-rules / --course-rules choice is saved as courseRules
in config.json and applies to subsequent plain 10x get runs. An explicit
--type rules request overrides the opt-out for that run. Skills, prompts,
and config-templates are unaffected.
10x sync
10x sync keeps your downloaded lessons up to date and tells you what changed
upstream since you last fetched. By default it refreshes only the lessons you've
already downloaded; --all pulls every unlocked lesson at once.
Unchanged lessons are skipped without a download — the catalog advertises a
per-lesson contentHash that the CLI compares against what it last applied, so the
common "nothing changed" case avoids lesson downloads. Skipping also requires the same language/tool/rules representation and intact tracked local files; missing files are repaired and local edits still surface as conflicts.
| Flag |
Description |
--all |
Sync every unlocked lesson, not just the ones you've downloaded |
--module <m> |
Limit to one module (e.g. m2 or 2) |