burgee
API reference

burgee/cli

Every export of burgee/cli, with its signature and doc comment: brandCommand, devCommand, migrateCommand, pluginCheckCommand, skillCommand, initCommand and 1 more.

import { brandCommand, devCommand, migrateCommand, … } from 'burgee/cli';

Constants

brandCommand

const brandCommand: import("./execute.js").Command<{
    readonly lead: {
        readonly type: "string";
        readonly required: true;
        readonly description: "leading colour, hex. Your primary; it leads the charge upper-left";
    };
    readonly follow: {
        readonly type: "string";
        readonly required: true;
        readonly description: "following colour, hex. Your secondary; it follows lower-right";
    };
    readonly name: {
        readonly type: "string";
        readonly description: "brand name, used as the accessible label and card title";
    };
    readonly ground: {
        readonly type: "string";
        readonly default: "#0a0a0a";
        readonly description: "the field’s dark midpoint, which is what keeps the charge legible";
    };
    readonly charge: {
        readonly type: "string";
        readonly description: "path to an SVG whose contents replace the bars, drawn in a 0 0 100 100 box";
    };
    readonly bordure: {
        readonly type: "string";
        readonly description: "outline colour, hex. Omit for no outline";
    };
    readonly bordureWidth: {
        readonly type: "string";
        readonly default: "1.5";
        readonly description: "outline width";
    };
    readonly tagline: {
        readonly type: "string";
        readonly description: "one line under the name on the card and cover";
    };
    readonly out: {
        readonly type: "string";
        readonly description: "directory to write into. Omit to print the flag only";
    };
    readonly on: {
        readonly type: "string";
        readonly description: "page colour(s) the flag will fly on, comma separated. Checked for contrast";
    };
    readonly allowLowContrast: {
        readonly type: "boolean";
        readonly description: "emit anyway when a contrast check fails. Says so in the output";
    };
}, import("./manifest.js").CommandOutput, readonly []>;

devCommand

burgee dev <entry> — watch the entry, reload it on change, serve it as MCP on stdio and print every surface on each save (dev-loop). Loaded only when asked for, so the CLI's own weight and the framework's stay what they were (W4).

const devCommand: import("./execute.js").Command<{
    readonly noWatch: {
        readonly type: "boolean";
        readonly description: "load once and serve; do not watch for changes";
    };
}, import("./manifest.js").CommandOutput, readonly [{
    readonly name: "entry";
    readonly description: "the module that exports the program, as program or as its default export";
    readonly required: true;
}]>;

initCommand

burgee init [dir] — a first CLI in one command (first-cli R1–R5): the README quick start as cli.mjs and the package.json that runs it, and nothing else. Loaded on this path only, like migrate and skill, so neither import 'burgee' nor a user's bundle carries it.

const initCommand: import("./execute.js").Command<{
    readonly install: {
        readonly type: "boolean";
        readonly description: "run the install with the package manager this ran under";
    };
    readonly force: {
        readonly type: "boolean";
        readonly description: "overwrite cli.mjs and package.json when they are already there";
    };
}, import("./manifest.js").CommandOutput, readonly [{
    readonly name: "dir";
    readonly description: "the directory to write into. Defaults to the current directory";
    readonly required: false;
}]>;

migrateCommand

burgee migrate [dir] — rewrite a commander or yargs project's imports to burgee's drop-in front-ends and report what changed, with the numbers that say why it was safe.

const migrateCommand: import("./execute.js").Command<{
    readonly dryRun: {
        readonly type: "boolean";
        readonly description: "scan and report; write nothing";
    };
    readonly force: {
        readonly type: "boolean";
        readonly description: "migrate even though the git tree has uncommitted changes";
    };
    readonly only: {
        readonly type: "string";
        readonly multiple: true;
        readonly placeholder: "lib,…";
        readonly description: "rewrite only these incumbents, by package name, declared or not";
    };
    readonly skip: {
        readonly type: "string";
        readonly multiple: true;
        readonly placeholder: "lib,…";
        readonly description: "leave these incumbents alone, by package name";
    };
}, import("./manifest.js").CommandOutput, readonly [{
    readonly name: "dir";
    readonly description: "the project to migrate. Defaults to the current directory";
    readonly required: false;
}]>;

pluginCheckCommand

burgee check <plugin-file> — the feedback loop PRINCIPLES 7 asks every extension surface for, and the one burgee did not have. See check.ts: this one returns its report as data, so --json is the form an agent that just wrote a plugin reads.

const pluginCheckCommand: import("./execute.js").Command<import("./execute.js").OptionSpecs, import("./manifest.js").CommandOutput, readonly [{
    readonly name: "file";
    readonly description: "the plugin module to check";
}]>;

program

const program: import("./manifest.js").Manifest;

skillCommand

burgee skill <entry> [--out <dir>] [--check] — the program's Agent Skill (SKILL.md) and its AGENTS.md, projected from its declaration and written beside its binary (agent-skill R3). --check writes nothing and exits 1 when the files there differ from the projection, for an author's own CI. Loaded on this path only, like dev and migrate.

const skillCommand: import("./execute.js").Command<{
    readonly out: {
        readonly type: "string";
        readonly placeholder: "dir";
        readonly description: "directory to write into. Defaults to the directory of the bin in the entry's package.json";
    };
    readonly check: {
        readonly type: "boolean";
        readonly description: "write nothing; exit 1 when the files there differ from the projection";
    };
}, import("./manifest.js").CommandOutput, readonly [{
    readonly name: "entry";
    readonly description: "the module that exports the program, as program or as its default export";
    readonly required: true;
}]>;

On this page