903 B
903 B
Firebase CLI usage
The Firebase CLI (firebase-tools) is the primary tool for managing Firebase
projects and resources from the command line.
Use npx for Firebase CLI commands: To ensure you always use the latest
version of the Firebase CLI, always run commands with
npx -y firebase-tools@latest instead of just firebase. (e.g., use
npx -y firebase-tools@latest --version instead of firebase --version).
Exploring commands
The Firebase CLI documents itself. Use help commands to discover functionality.
-
Global help: List all available commands and categories:
npx -y firebase-tools@latest --help -
Command help: Get detailed usage for a specific command:
npx -y firebase-tools@latest [command] --help# Example: npx -y firebase-tools@latest deploy --help npx -y firebase-tools@latest firestore:indexes --help