Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
How to use Infisical to inject environment variables and secrets with PM2 into a Node.js app
# navigate to the root of your of your project cd /path/to/project # then initialize infisical infisical init
infisical run -- npm start
const spawn = require("child_process").spawn; const infisical = spawn("infisical", ["run", "--", "npm", "start"]); infisical.stdout.on("data", (data) => console.log(`${data}`)); infisical.stderr.on("data", (data) => console.error(`${data}`));
pm2 start infisical-run.sh
pm2 start infisical-run.js
Was this page helpful?