algolia / firestore-algolia-search

Apache License 2.0
112 stars 35 forks source link

Can't run firestore-algolia-search in bash script #64

Closed Lucas-L closed 3 years ago

Lucas-L commented 3 years ago

Hello everyone,

I've been trying to run the restore script for firestore-algolia-search. According to other issues, decided to run it from a bash script:

#!/bin/bash

LOCATION=us-central1\
PROJECT_ID=project-id\
ALGOLIA_APP_ID=111111\
ALGOLIA_API_KEY=111111\
ALGOLIA_INDEX_NAME=index\
COLLECTION_PATH=path\
FIELDS=fields\
GOOGLE_APPLICATION_CREDENTIALS=./key.json\
npx firestore-algolia-search

But then the output is firestore-algolia-search: command not found. I'm writing this issue here because other npx script would work in bash scripts. npx is installed globally and the command is working outside of bash (but no with parameters declared beforehand)

Thanks a lot

cvanputt commented 2 years ago

What was the solution for this? I am having this issue