MCPcopy
hub / github.com/dotenvx/dotenvx / run

Function run

src/cli/examples.js:1–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1const run = function () {
2 return `
3Examples:
4
5 \`\`\`
6 $ dotenvx run -- npm run dev
7 $ dotenvx run -- flask --app index run
8 $ dotenvx run -- php artisan serve
9 $ dotenvx run -- bin/rails s
10 \`\`\`
11
12Try it:
13
14 \`\`\`
15 $ echo "HELLO=World" > .env
16 $ echo "console.log('Hello ' + process.env.HELLO)" > index.js
17
18 $ dotenvx run -f .env -- node index.js
19 [dotenvx] injected env (1) from .env
20 Hello World
21 \`\`\`
22 `
23}
24
25const precommit = function () {
26 return `

Callers 1

examples.test.jsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected