Documentation
Configure Fireclass, scaffold models, and health-check your setup from the terminal.
The fireclass CLI configures a project, generates models, inspects the model
directory, and verifies that the local setup is coherent.
The short unscoped package delegates to @dharayush7/fireclass-cli:
$ npx fireclass init
You can also run the scoped package directly:
npx @dharayush7/fireclass-cli --helpAfter a local or global installation, both fireclass and fc are available
as binary names.
| Command | What it does |
|---|---|
init | Detect the framework and package manager, then configure Fireclass. |
model <name> | Generate a model in the configured directory. |
doctor | Check dependencies, files, exports, and decorator settings. |
list | List discovered model classes and collections; alias: ls. |
config | Print the resolved fireclass.json. |
Every command starts in the current working directory and walks upward to the
nearest package.json. This lets commands work from a nested source directory,
but it also means the nearest package controls a workspace command.
model, doctor, list, and config additionally require a readable
fireclass.json at that project root.
# 1. Configure the project
npx fireclass init
# 2. Verify generated files and dependencies
npx fireclass doctor
# 3. Generate and inspect models
npx fireclass model User
npx fireclass list
# 4. Inspect the active configuration
npx fireclass config| Option | Description |
|---|---|
-h, --help | Print command or root help. |
-v, --version | Print the CLI version. |
help [command] | Print help for a specific command. |
npx fireclass --version
npx fireclass model --help
npx fireclass help doctor0.The CLI does not contact Firestore
doctor, list, and config inspect local files only. They do not verify
credentials, Firestore Security Rules, indexes, or network connectivity.