Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.

Commit 81fa0e3

Browse files
removing sh from commands in favor of bash-based
1 parent 7c8bcea commit 81fa0e3

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

README.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -62,26 +62,24 @@ Before starting this codelab, make sure that you've installed:
6262

6363
The Firebase Command Line Interface (CLI) allows you to serve your web app locally and deploy your web app to Firebase Hosting.
6464
> Note: To install the CLI, you need to install npm which typically comes with Node.js.
65-
1. Install the CLI by running the following npm command: `sh npm -g install firebase-tools`
66-
- if you're in git-bash, run `npm -g install firebase-tools` instead.
65+
1. Install the CLI by running the following npm command: `npm -g install firebase-tools`
6766
- On unix and doesn't work? You may need to run the command using sudo instead.
68-
1. Verify that the CLI has been installed correctly by running the following command: `sh firebase --version`
69-
- `firebase --version` on git-bash
67+
1. Verify that the CLI has been installed correctly by running the following command: `firebase --version`
7068
- Make sure the version of the Firebase CLI is v6.7.1 or later.
71-
1. Authorize the Firebase CLI by running the following command: `sh firebase login`
72-
- `firebase login --interactive` on git-bash
69+
1. Authorize the Firebase CLI by running the following command: `firebase login`
70+
- if the terminal you use is 'non-interactive' (eg. git-bash) you may need to append `--interactive` to the above command.
7371

7472
You've set up the web app template to pull your app's configuration for Firebase Hosting from your app's local directory and files. But to do this, you need to associate your app with your Firebase project.
75-
1. Associate your app with your Firebase project by running the following command: `sh firebase use --add`
76-
- `firebase use --add --interactive` on git-bash
73+
1. Associate your app with your Firebase project by running the following command: `firebase use --add`
74+
- you may need to append `--interactive` to the above command.
7775
- When prompted, select your Project ID (from the Create Firestore Project step), then give your Firebase project an alias. An alias is useful if you have multiple environments (production, staging, etc). However, for this codelab, let's just use the alias of default.
7876
1. Follow the remaining instructions in your command line.
7977

8078
1. __Run the local server__
8179

8280
You're ready to actually start work on our app! Let's run the app locally!
83-
1. Run the following Firebase CLI command: `sh firebase serve --only hosting`
84-
- `firebase serve --only hosting --interactive` on git-bash
81+
1. Run the following Firebase CLI command: `firebase serve --only hosting`
82+
- you may need to append `--interactive` to the above command.
8583
- Your command line should display the following response:
8684
> hosting: Local server: http://localhost:5000
8785
- We're using the Firebase Hosting emulator to serve our app locally. The web app should now be available from http://localhost:5000.

0 commit comments

Comments
 (0)