New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to pull variables in manual sync approach #4
Comments
Hey neyara! Sorry to hear about the trouble ... So to clarify:
We always recommend using Infisical with the automatic approach. In our case, since you're using NestJS, you'd want to modify your package.json file dev script to the following:
Afterward, you should be able top run Can you hop over to our Slack channel here? — I'd be more than happy to assist you in real-time! |
Oh, I didn't realize the .env.infisical was actually supposed to have the project ID... And I had deleted it before executing |
You should be able to modify the dev script in your package.json as above with |
Thanks, that worked! Even though the .env file was not filled visually, the project started with no complaints 😅 |
Yay! That's awesome — The automatic approach works like magic 🙂 We support .env files as well (you'd have to manually type |
Hey there,
I was following Infisical's doc and, at first, tried the auto sync approach in my NestJS project. Everything seemed to work fine (it asked for credentials and the project's ID), but the
.env.infisical
file content was just the project ID and no variables.So then I tried the manual approach where I emptied the env file and executed
npx infisical pull dev
, and as a result, I got the following message:The "path" argument must be of type string. Received undefined
. This time no info about credentials or project ID was asked (maybe because I informed it in the previous step?). Also, the env file remained empty.The text was updated successfully, but these errors were encountered: