Skip to content

Commit 4e60cb7

Browse files
authored
Merge pull request #206 from virajshah/patch-2
Correct Google Credentials Environment Variable
2 parents b98baa5 + 6881bd7 commit 4e60cb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/IMPORT_EXISTING_DOCUMENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Run the import script using [`npx` (the Node Package Runner)](https://www.npmjs.
3535
- To access the `npm` command tools, you need to install [Node.js](https://www.nodejs.org/).
3636
- If you use `npm` v5.1 or earlier, you need to explicitly install `npx`. Run `npm install --global npx`.
3737

38-
2. Set up credentials. The import script uses Application Default Credentials to communicate with Firebase. Using an existing service account or create a new one in the IAM section. Give this service account 'Cloud Datastore User' role. In the Service Accounts section, generate a service key for this service account and proceed to download the json file. In Mac and Linux, run the command export GOOGLE_APP_CREDENTIALS="/pathto/file.json" where /pathto/file.json is the location of your json file. This will set up the credentials locally.
38+
2. Set up credentials. The import script uses Application Default Credentials to communicate with Firebase. Using an existing service account or create a new one in the IAM section. Give this service account 'Cloud Datastore User' role. In the Service Accounts section, generate a service key for this service account and proceed to download the json file. In Mac and Linux, run the command export GOOGLE_APPLICATION_CREDENTIALS="/pathto/file.json" where /pathto/file.json is the location of your json file. This will set up the credentials locally.
3939

4040
3. Run the import script interactively via `npx` by running the following command:
4141

0 commit comments

Comments
 (0)