CLI & Developer Experience
The combric CLI is optional. Install Combric as packages when you want direct
control; use the CLI when you want it to configure an existing project. The
CLI and framework packages are synchronized stable 1.1.1 releases published
on npm. Install this snapshot’s CLI with:
pnpm add --save-dev @combric/cli@1.1.1Commands
combric --helpcombric --versioncombric info --jsoncombric doctor --jsoncombric init --mode react --css-file src/styles.css --dry-runcombric init --mode react --css-file src/styles.css --yesinfo reports detected facts, including package-manager evidence, workspace,
React, Tailwind, and declared Combric packages. doctor checks configuration
health with pass, warning, and error findings. Both are read-only and support
human or JSON output. JSON success responses use schema version 1; errors
include a stable code, message, and exit status. A warning-only doctor result
is successful.
Setup modes
| Mode | Required public CSS imports | Package path |
|---|---|---|
css |
@combric/tokens/css |
Standard tokens and CSS. |
react |
@combric/react/css |
React 19 components and standard CSS. |
tailwind |
tailwindcss, @combric/tailwind |
Optional Tailwind v4 adapter. |
react-tailwind |
tailwindcss, @combric/tailwind, @combric/react/css |
React plus optional adapter. |
Tailwind modes require an existing compatible Tailwind CSS >=4.3 <5 project.
The CLI does not convert a project to Tailwind. React modes use the public React
CSS entry and React 19 peer contract. The CLI adds missing required packages
from the configured package registry using the detected package manager. The
public Combric packages, including @combric/cli@1.1.1, are published; normal
registry access is required for installation.
Safe planning
Pass an existing project-relative CSS file with --css-file; the CLI never
guesses a target. It inspects the manifest, package-manager metadata and
lockfiles, optional config, and that CSS file. Conflicts stop with guidance. If
no package manager can be established, use --package-manager. For a workspace,
select the intended member package with --project when packages are missing.
--dry-run computes the actual plan without changing files or installing
packages. --dry-run --json exposes the operation types, targets, reasons, and
package list. Apply with --yes; setup never opens a TTY prompt. If neither
flag is supplied when changes are needed, it exits with a usage/configuration
error and explains how to proceed. Repeated setup does not duplicate imports
or rewrite an unchanged config.
Config and exits
Setup records only schema version 1, package manager, mode, and relative CSS
file in combric.config.json. Unknown future schema versions are reported
instead of rewritten. Unknown fields can be inspected, but init leaves them
untouched. Exit 0 means success (doctor warnings may remain), 1 means a
request/configuration or doctor error, and 2 means an operational failure.
The CLI does not scaffold applications, copy components, run consumer project
code for inspection, send telemetry, or check for updates. info and doctor
are local-only. On Windows, invoke setup through the selected package manager,
such as pnpm exec combric, so its executable can be spawned safely. Supported
package-manager names are pnpm, npm, yarn, and bun; resolve conflicting
project evidence manually before setup.
