1.0.2 • Published 2 years ago

next-env-cli v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

next-env-cli

Similar to dotenv-cli but build with @next/env and without any flags or config.

It is usefull if you want to run a script and use the same environment variables as your Next.js project.

Note: This has nothing to do with next-env which you should not use.

The code for @next/env is in the Next.js monorepo.

Usage

yarn add -D @next/env next-env-cli

package.json

{
  "scripts": {
    "my-script": "next-env-cli some-executable -p 123",
    "my-dev-script": "NODE_ENV='development' next-env-cli some-executable -p 123"
  }
}

Contributors ✨

(emoji key documentation)