/cross-env

run command line in cross platform env 轻量且跨平台的环境变量设置工具

Primary LanguageVMIT LicenseMIT

cross-env

ci Latest Version License Repo Size

cross-platform cli for setting environment variables, written in vlang

Install

  1. Shell (Mac/Linux)
curl -fsSL https://github.com/release-lab/install/raw/v1/install.sh | bash -s -- -r=axetroy/cross-env
  1. PowerShell (Windows):
$r="axetroy/cross-env";iwr https://github.com/release-lab/install/raw/v1/install.ps1 -useb | iex
  1. Github release page (All platforms)

download the executable file and put the executable file to $PATH

Usage

$ cross-env FOO=BAR NODE_ENV=PRODUCTION node index.js

Build from source

$ make

LICENSE

The MIT License