firebase-basics
Firebaseのコア原理と基本的なワークフローをデモンストレーションし、ユーザーがクラウドサービスを迅速に開始できるよう支援します。
npx skills add firebase/agent-skills --skill firebase-basicsBefore / After 効果比較
1 组Firebaseに初めて触れる際、開発者はその核となる概念やワークフローに戸惑うことがよくあります。迅速に習得することが難しく、クラウドアプリケーション開発の効率が低下し、プロジェクトの進行が遅れる原因となります。
このスキルは、Firebaseの核となる原理とワークフローを明確に説明します。開発者がFirebaseの様々なサービスを迅速に理解し活用できるよう支援し、それによってクラウドアプリケーションを効率的に構築・デプロイすることを可能にします。
Prerequisites
Make sure you follow firebase-local-env-setup skill first. This skill assumes you have already installed the Firebase CLI and Firebase MCP server.
Core Workflow
1. Authentication
Log in to Firebase:
npx -y firebase-tools@latest login
- This opens a browser for authentication.
- For environments where localhost is not available (e.g., remote shell), use
npx -y firebase-tools@latest login --no-localhost.
2. Creating a Project
To create a new Firebase project from the CLI:
npx -y firebase-tools@latest projects:create
You will be prompted to:
- Enter a Project ID (must be unique globally).
- Enter a display name.
3. Initialization
Initialize Firebase services in your project directory:
mkdir my-project
cd my-project
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 (firebase.json, .firebaserc).
Exploring Commands
The Firebase CLI documents itself. Instruct the user to 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
SDK Setup
Detailed guides for adding Firebase to your app:
- Web: See references/web_setup.md
Common Issues
- Login Issues: If the browser doesn't open, try
npx -y firebase-tools@latest login --no-localhost.
ユーザーレビュー (0)
レビューを書く
レビューなし
統計データ
ユーザー評価
この Skill を評価