Security News
vlt Debuts New JavaScript Package Manager and Serverless Registry at NodeConf EU
vlt introduced its new package manager and a serverless registry this week, innovating in a space where npm has stagnated.
firebase-tools
Advanced tools
The firebase-tools npm package provides a command-line interface (CLI) for managing Firebase projects and their resources. It allows developers to deploy, configure, and manage Firebase services such as Firestore, Realtime Database, Authentication, Hosting, Cloud Functions, and more.
Deploying Firebase Hosting
This command deploys your web app to Firebase Hosting. It uploads your local files to Firebase and makes them available on your Firebase project's web URL.
firebase deploy --only hosting
Deploying Cloud Functions
This command deploys your Cloud Functions to Firebase. It uploads your function code to Firebase and makes it available to be triggered by events.
firebase deploy --only functions
Deploying Firestore Rules
This command deploys your Firestore security rules. It uploads your rules to Firebase, ensuring that your Firestore database is protected according to your specifications.
firebase deploy --only firestore:rules
Emulating Firebase Services
This command starts the Firebase emulators for local development. It allows you to test your Firebase app locally without interacting with the live Firebase services.
firebase emulators:start
Initializing a Firebase Project
This command initializes a new Firebase project in your local directory. It sets up the necessary configuration files and allows you to select which Firebase services you want to use.
firebase init
The AWS CLI is a unified tool to manage your AWS services. It provides similar functionalities to firebase-tools but for AWS services. It allows you to control multiple AWS services from the command line and automate them through scripts.
The gcloud CLI is a command-line tool for interacting with Google Cloud Platform services. It offers functionalities similar to firebase-tools but for a broader range of Google Cloud services. It allows you to deploy, manage, and configure Google Cloud resources.
The Netlify CLI provides a command-line interface for interacting with Netlify services. It offers functionalities similar to Firebase Hosting, allowing you to deploy and manage web projects on the Netlify platform.
These are the Firebase Command Line Tools for administering your account and interacting with the Firebase Hosting beta.
To install, first you'll need to sign up for a Firebase account and have installed Node.js and npm. Then run
npm install -g firebase-tools
This will install the globally accessible command firebase
The command firebase --help
lists the available commands and
firebase <command> --help
shows more details.
Usage: firebase <command>
Available commands are:
bootstrap
Creates a new Firebase powered app from a number of prebuild templates to
quickly get a project up and running. This creates a new folder and prompts
you through all the required settings.
deploy
Deploys the current app to Firebase Hosting and creates your subdomain on
firebaseapp.com if it doesn't exist already.
init
Initializes an existing Firebase app in the current directory and prompts
you through configuring it for firebaseapp.com.
list
Lists the Firebases available to the currently logged in user.
login
Logs the user into Firebase. All commands that require login will prompt
you if you're not currently logged in.
logout
Logs the user out of Firebase.
--help
Shows this help screen. Use `firebase <command> --help` for more detailed
help instructions.
--version
Displays the current version.
For a quick start guide, see https://www.firebase.com/docs/hosting.html
Inspired by Luke Vivier's Firebase command line tools.
FAQs
Command-Line Interface for Firebase
The npm package firebase-tools receives a total of 294,729 weekly downloads. As such, firebase-tools popularity was classified as popular.
We found that firebase-tools demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt introduced its new package manager and a serverless registry this week, innovating in a space where npm has stagnated.
Security News
Research
The Socket Research Team uncovered a malicious Python package typosquatting the popular 'fabric' SSH library, silently exfiltrating AWS credentials from unsuspecting developers.
Security News
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.