Skip to content

Commit

Permalink
Merge #190
Browse files Browse the repository at this point in the history
190: Describing how to set up credentials for service account locally to r… r=brunoocasali a=virajshah

Describing how to set up credentials for service account locally to run firebase import script

# Pull Request

## Related issue
Fixes #<issue_number>

## What does this PR do?
- ...

## PR checklist
Please check if your PR fulfills the following requirements:
- [x] Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)?
- [x] Have you read the contributing guidelines?
- [x] Have you made sure that the title is accurate and descriptive of the changes?

Thank you so much for contributing to Meilisearch!


Co-authored-by: Viraj Shah <[email protected]>
  • Loading branch information
meili-bors[bot] and virajshah authored Oct 16, 2024
2 parents 84c84cf + 89cf8b8 commit 69c13b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guides/IMPORT_EXISTING_DOCUMENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Run the import script using [`npx` (the Node Package Runner)](https://www.npmjs.
- To access the `npm` command tools, you need to install [Node.js](https://www.nodejs.org/).
- If you use `npm` v5.1 or earlier, you need to explicitly install `npx`. Run `npm install --global npx`.

2. Set up credentials. The import script uses Application Default Credentials to communicate with Firebase. Please follow the instructions to [create and use a service account](https://cloud.google.com/docs/authentication/production#obtaining_and_providing_service_account_credentials_manually).
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.

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

Expand Down

0 comments on commit 69c13b0

Please sign in to comment.