← Files FirebaseARCHIVED FILE
skills/firebase-basics/references/firebase-service-init.md
692 Bytes · Sep 30, 2026 · 23:01 UTC
# Initialization Before initializing, check if you are already in a Firebase project directory by looking for `firebase.json`. 1. **Project Directory:** Navigate to the root directory of the codebase. *(Only if starting a completely new project from scratch without an existing codebase, create a directory first: `mkdir my-project && cd my-project`)* 1. **Initialize Services:** Run the initialization command: ```bash npx -y firebase-tools@latest init ``` The CLI will guide you through: - Selecting features (Firestore, Functions, Hosting, etc.). - Associating with an existing project or creating a new one. - Configuring files (e.g. `firebase.json`, `.firebaserc`).
SHA-256: fdcab600ae7f7e3219992377cf0f57c4964762c0067b6d85458e4866beb42ebf