Skip to content

Releases: dharayush7/fireclass-cli

Release list

v2.1.17

Choose a tag to compare

@dharayush7 dharayush7 released this 10 Jul 16:48

fireclass-cli v2.1.17

@dharayush7/fireclass-cli v2.1.17 is a complete documentation and
npm discovery release. Command behavior remains compatible with v2.1.16.

What changed

  • Rebuilt the README from every CLI command and fireclass.json page on the
    Fireclass website.
  • Added Firebase prerequisites, project and package-manager detection,
    interactive setup, automation options, generated artifacts, and idempotency.
  • Added complete model naming rules, doctor checks and exit codes, list
    discovery limits, config behavior, and import ownership.
  • Added the Fireclass logo and removed npm and license shield badges.
  • Expanded npm keywords for Firestore CLI, Firebase setup, project scaffolding,
    model generation, diagnostics, Next.js, React, and Express.
  • Added changelog and release notes to the published package contents.
  • Synchronized the CLI-reported version and generated fireclass.json version to
    2.1.17.

Runtime compatibility

No command semantics, flags, templates, or generated SDK ownership rules changed
in this release.

Verify

npm run typecheck
npm test
npm run build
node dist/index.js --version
npm pack --dry-run

Documentation: https://fireclass.ayushdhar.com/docs/cli

v2.1.15

Choose a tag to compare

@dharayush7 dharayush7 released this 09 Jul 20:30

fireclass-cli v2.1.15

@dharayush7/fireclass-cli — the first public release of the Fireclass CLI. It configures a project to use Fireclass in one command, generates models, and health-checks the setup.

Usage

npx fireclass init          # or: npx @dharayush7/fireclass-cli init

No install needed. The bin is also available as fc.

Commands

  • init — detects your framework (Next.js / React / Express) and package
    manager, then: writes fireclass.json, installs the right Fireclass package +
    class-validator / class-transformer / reflect-metadata, scaffolds a
    framework-wired fireclass file (and a firebase file if you don't have one),
    adds Next.js env, creates a models directory + a sample Todo, and patches
    tsconfig for decorators. Idempotent — safe to re-run.
  • model <Name> — generates a minimal model (a createdAt field, correct
    @Collection and relative import). PascalCases the class, kebab-cases the file,
    pluralizes the collection. Flags: -c/--collection, --dir, --force.
  • doctor — verifies config, installed deps, files, the firebase export, and
    the tsconfig decorator flags; exits non-zero on problems (CI-friendly).
  • list (ls) — lists your models (class + collection).
  • config — prints the resolved fireclass.json.

Framework awareness

Framework Package installed fireclass file
Next.js (App Router) @dharayush7/fireclass-ssr server-only + getFireclass(); env-based creds (no firebase file)
React @dharayush7/fireclass-react createFireclass(db) + useQuery / useDoc
Express / Node @dharayush7/fireclass-js createFireclass(db) + fireclassErrorHandler

Quality

  • 45 tests covering detection, templates, idempotent generation, and each
    command's pure logic.
  • Verified end-to-end: real init / model / doctor / list runs on temporary
    React and Next.js projects.
  • ESM, Node ≥ 18, built with tsup. Uses commander + @clack/prompts.

Docs

https://fireclass.ayushdhar.com