Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

newman-env

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

newman-env

Command-line utility for update Postman Environment

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

newman-env

Command-line helper for updating Postman environment variables before running Newman. Use it to patch values in an exported Postman environment JSON so your CI/CD runs always target the right endpoints.

Features

  • Update one or more environment variables from the CLI.
  • Overwrite the source file or write to a separate output path.
  • Leaves values untouched when a key does not exist in the environment file.

Installation

npm install -g newman-env

Usage

Export your Postman Environment as JSON, then run:

newman-env run postman-environments.json --env-var endpoint=http://localhost:3000 --env-var email=gemini.wind285@gmail.com

To write to a new file:

newman-env run postman-environments.json -o postman-environments.updated.json --env-var endpoint=http://localhost:3000

Command

newman-env run <environment-file> [options]

Options

  • -o, --output [path] Specify an output environment file path. Defaults to overwriting the input file.
  • --env-var <key=value> Set an environment variable. Repeat for multiple values.

Notes

  • The input file must be a valid Postman environment JSON with a values array of { key, value } entries.
  • If the output directory does not exist, the command fails.

Development

yarn test

Keywords

newman-env

FAQs

Package last updated on 20 Jan 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts