DEV Community

Cover image for FireCMS Flavours in the CLI
Marian Claudiu Moldovan
Marian Claudiu Moldovan

Posted on • Originally published at firecms.co

FireCMS Flavours in the CLI

Kick a new project with FireCMS in a single command

When was the last time you started a new project using a new tool? Can you remember how easy was it?

We are eager to help you start a new project as soon as possible. We want you to fully focus on your project and not on the setup. Allow us to take care of that, all you need to do is:

firecms init
Enter fullscreen mode Exit fullscreen mode

That's it! You are ready to go. You can now start building your project with FireCMS.

FireCMS Flavors

If you are familiar with FireCMS, you must already know the different flavors we offer. One from Community, Cloud or Pro. Or maybe we just confused you a little bit in the past. No worries, let's recap.

Community

The classic old-fashioned MIT licensed FireCMS. You can use it for free, forever. It's the perfect choice for small projects or personal use. You handle the hosting, we handle the CMS. Create collections, add authentication, set it up and after a working build, deploy it to Firebase Hosting. Or the hosting of your choice.

Batteries included for Firebase Firestore and MongoDB Atlas. Add more than 40 UI components, custom view and even our Notion-style Markdown editor. You can customize the CMS to your needs.

If you've been here for a while and you are 100% this is your choice, don't be shy and start a new project with:

firecms init --community
Enter fullscreen mode Exit fullscreen mode

Cloud

The supercharged Saas version of FireCMS. The amazing editor. And on top of it add user management, roles, permissions. A UI based collection editor, search, autocomplete based on LLMs, customization, App Check, multiple database support, unlimited collections, users, extra customization with code... And the list could go for a while.

Most important, you don't need to worry about hosting, scaling, security, or maintenance. We take care of it. You just need to focus on your project. If you need to add more features or customize, send us the code via the CLI:

We expect this CLI to be less used than the Community one, but if you want to do some work from the code, is up to you. We truly hope that tools we've been building in app.firecms.co will be your main tool.

Pro

The ultimate version of FireCMS. The Cloud version with a custom domain, custom branding, and priority support.

Pro gives you both the blueprint and the fully-furnished building - complete control over the foundation like Community, plus all the premium features of Cloud. With full access to the source code, you can customize every aspect of your CMS while leveraging enterprise-grade capabilities.

What can you expect? A schema editor and data inference, advanced data import and export, Notion-style editor, local text search, user and role management, custom authentication and access control, access to all FireCMS plugins, full CMS components customization, priority support, and roadmap prioritization.

Flavors compared

Who doesn't like a good comparison table? Here is a quick overview of the features you get with each flavor:

Feature Community Cloud Pro
Pricing Free (€0/month) €9.99/user/month €49.99/project/month
License MIT Commercial Commercial
Hosting Model Self-hosted Fully managed Self-hosted
Base Features
Firebase/MongoDB Integration
Component Library (40+ components)
Custom Views and Form Fields
Notion-style Markdown Editor
Subcollection Support
Advanced Features
Data Import/Export
User & Role Management
GPT-4 Content Generation
Schema Editor & Data Inference
Advanced Data Import/Export
Custom Authentication & Access Control
Access to All FireCMS Plugins
Custom Domain
Custom Login Screen

Installation

In the unlikely event that this is your first time using FireCMS, you need to install it first. You have two choices, either you install the FireCMS CLI globally with your desired package manager:

npm install -g firecms
# yarn fan?
yarn global add firecms
# pnpm? Sure!
pnpm add -g firecms
Enter fullscreen mode Exit fullscreen mode

Usage without installation via npx

Of course, if you rather not install it globally, you can use npx to run one-off command:

npx firecms init
Enter fullscreen mode Exit fullscreen mode

Usage

Ok, let's get back to the CLI. You've already installed it, right? Now you can start a new project with FireCMS. Just run:

marian@m ~ % firecms init

 ___ _          ___ __  __ ___
| __(_)_ _ ___ / __|  \/  / __|
| _|| | '_/ -_) (__| |\/| \__ \
|_| |_|_| \___|\___|_|  |_|___/

Welcome to the FireCMS CLI 🔥

You are logged in as hello@getdeardoc.com
? Choose a template
  FireCMS Cloud (use this option if you access FireCMS from app.firecms.co)
❯ FireCMS PRO (self-hosted version with full functionality)
  FireCMS PRO with Next.js frontend(self-hosted version with frontend boilerplate CRUD app)
  FireCMS Community (MIT licensed version with the base functionality)
Enter fullscreen mode Exit fullscreen mode

After carefully choosing the flavor you want to use, you will get a new project with FireCMS. Completely set up and ready to go.

One of the reasons we need to authenticate you is the creation of the firebase project configuration automatically. We want to make sure you have the best experience possible.

After the project is created, you can start the development server with:

cd my-latest-firecms-project
npm i
npm run dev
Enter fullscreen mode Exit fullscreen mode

So we basically did the following for you:

  • Helped you choose the proper Firebase Project
  • Create the Firebase Hosting App Project
  • Create the Firebase Config file
  • Get the proper template for the project with the appropriate flavor
  • Set up the project

Troubleshooting

Problems with the Login/Logout?

If you have any problems with the login/logout, you can always run the following command to reset the authentication:

firecms logout
Enter fullscreen mode Exit fullscreen mode

If the issue persists, you can try to delete all the config folders and files:

rm -rf ~/.firecms
Enter fullscreen mode Exit fullscreen mode

Upgrading the CLI

If you want to upgrade the CLI to the latest version, you can run:

npm install -g firecms@latest
Enter fullscreen mode Exit fullscreen mode

Other issues and feedback

Drop us an email at hello@getdeardoc.com or even better, join our Discord server and let us know about your issue. We are always happy to help.

Conclusion

We hope the new FireCMS CLI brings you joy and saves you time.

We are excited to see what you build next. We are eager to help you start a new project as soon as possible.

Top comments (0)