quick-fire-cli
v1.0.8
Published
CLI tool to quick setup firebase projects and web apps
Maintainers
Readme
Quick Fire CLI
A command-line tool to quickly set up Firebase projects and web apps with minimal configuration.
Features
- 🔥 Quick Firebase Setup: Login, create project, create web app, and get app SDK config.
- 🔐 TOTP Support: Enable Time-based One-Time Password authentication
- ⚡ One-Command Setup: Complete Firebase project setup in a single command
Prerequisites
- Node.js 16.0.0 or higher
- Firebase CLI (
firebase-tools) - For TOTP: Google Cloud SDK and login
Installation
npm install -g quick-fire-cliUsage
Setup a new Firebase project and web app
qfc setup <projectId> <appName>This command will:
- Log you into Firebase
- Create a new Firebase project (or use existing one)
- Create a web app for the project
- Generate and save the SDK configuration to
app-config.json
Example:
qfc setup my-awesome-app my-web-appEnable TOTP for a Firebase project
qfc enableTotp <projectId> [adjacentIntervals]This command enables Time-based One-Time Password authentication for your Firebase project. adjacentIntervals, You can specify the number of adjacent intervals to accept, from 0 to 10. The default is five, meaning the service will accept a password from the current window, plus five before and five after.
Prerequisites:
- Google Cloud SDK must be installed
- You must be authenticated with
gcloud auth login
Example:
qfc enableTotp my-awesome-app 5Commands
| Command | Description | Required Arguments |
| ------------ | ----------------------------------- | ---------------------- |
| setup | Create Firebase project and web app | projectId, appName |
| enableTotp | Enable TOTP authentication | projectId |
Configuration
After running the setup command, you'll find your Firebase SDK configuration saved in app-config.json. This file contains all the necessary configuration to initialize Firebase in your web application.
License
Apache License 2.0
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Issues
If you encounter any issues, please report them on the GitHub Issues page.
