Skip to main content

CLI reference

npx @rtorcato/brand-kit [init|render|doctor] [options]

Commands​

CommandDoes
init (default)Writes the brand/ SVG sources and render.sh, renders PNGs when rsvg-convert is installed, adds the README banner, and copies assets into a Docusaurus site.
renderRe-renders stale PNGs and favicon.ico from brand/*.svg.
doctorReports missing sources, stale PNGs and a README without the banner. Exits 1 when a source is missing, and with --strict on any warning too.

Options​

OptionApplies toDoes
--dir <path>allTarget repo. Default: the current directory.
--tagline <text>initBanner tagline. See Configuration.
--accent <hex>initAccent colour as #rrggbb. See Configuration.
--updateinitRewrite generated sources that differ. Never touches favicon.svg.
--socialinitAlso write the social images.
--lightinitAlso write banner-light and banner-mobile-light, and add them to the README <picture> for GitHub's light theme.
--aiinitGenerate a logo and background. See AI artwork.
--ai-provider <p>inithiggsfield, openai or gemini instead of the first key found.
--ai-model <id>initOverride the provider's default model.
--ai-prompt <text>initStyle hint added to both prompts, e.g. "neon line art".
--strictdoctorExit 1 on warnings (stale renders, a bannerless README) too.
--jsonallMachine-readable output on stdout.
--yes, -yallAccepted for parity; the CLI never prompts.
-v, --versionPrint the version.
-h, --helpPrint help.

Examples​

npx @rtorcato/brand-kit # init
npx @rtorcato/brand-kit --tagline "Short line" --accent "#e879f9"
npx @rtorcato/brand-kit --tagline "New line" --update # rewrite changed sources
npx @rtorcato/brand-kit --social # add the social images
npx @rtorcato/brand-kit render # re-render stale PNGs
npx @rtorcato/brand-kit doctor --strict # CI check
npx @rtorcato/brand-kit --dir ../other-repo # run against another repo