awesome-repositories.com
博客
MCP
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
toddbluhm avatar

toddbluhm/env-cmd

0
View on GitHub↗
1,818 星标·68 分支·TypeScript·MIT·5 次浏览www.npmjs.com/package/env-cmd↗

Env Cmd

This project is a command-line utility that executes processes by injecting environment variables from local configuration files. It functions as a runtime wrapper, allowing developers to manage application settings and process execution contexts without modifying global system variables.

The tool distinguishes itself by supporting dynamic configuration loading, which allows for the use of files that export objects or promises to compute values at runtime. It provides granular control over environment management, including the ability to group variables into named collections, protect existing environment variables from being overwritten, and handle missing configuration files gracefully.

Beyond basic injection, the utility facilitates cross-platform script execution and automated build pipeline management by replacing placeholders within command arguments with resolved environment values. It creates isolated child processes to ensure that configuration settings remain scoped to specific tasks, maintaining consistent behavior across different development and deployment environments.

Features

  • Shell Command Runners - Acts as a runtime wrapper that applies file-based environment settings to shell commands without modifying global system variables.
  • Environment Variable Loaders - Executes processes with environment variables injected from local configuration files.
  • Runtime Environment Variable Injections - Injects configuration variables into a child process environment before executing a command to isolate settings from the parent shell.
  • Application Configuration - Loads structured environment settings into application processes to manage secrets and dynamic parameters without hardcoding values into the source code.
  • Environment Variable Managers - Injects configuration from files into shell processes to support environment-specific settings without modifying global system variables.
  • Scoped Environment Variable Injections - Applies specific environment variables from designated files before command execution to support environment-specific configurations.
  • Dynamic Placeholder Expansion - Replaces placeholders within command arguments with actual environment variable values at runtime.
  • Cross-Platform Script Runners - Runs shell commands with injected environment variables to maintain consistent application behavior across different operating systems and deployment environments.
  • Command Argument Resolvers - Scans command-line arguments for variable tokens and replaces them with resolved values from the environment before the process starts.
  • Dynamic Module Loading - Imports configuration files as executable code to support computed values and asynchronous data fetching during the environment setup phase.
  • Dynamic Configuration Loaders - Supports importing environment variables from files that export objects or promises, enabling computed values and dynamic settings.
  • Node.js Process Management - Manages environment-specific configurations and process execution contexts within Node.js development and deployment workflows.
  • Shell Command Execution - Creates a new operating system process to run commands within a modified environment context that persists for the duration of the task.
  • Build and Task Automation - Executes build and deployment tasks with dynamic environment variables to ensure consistent behavior across different development and production stages.
  • File-Based Configurations - Reads and transforms external text or script files into structured key-value pairs for dynamic environment variable assignment.

Star 历史

toddbluhm/env-cmd 的 Star 历史图表toddbluhm/env-cmd 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

包含 Env Cmd 的精选搜索

收录 Env Cmd 的精选合集。
  • 环境变量管理工具

Env Cmd 的开源替代方案

相似的开源项目,按与 Env Cmd 的功能重合度排序。
  • joho/godotenvjoho 的头像

    joho/godotenv

    10,483在 GitHub 上查看↗

    godotenv is a Go library designed to load, parse, and serialize environment configuration files. It provides tools to extract configuration data from files into maps and inject those key-value pairs directly into the system environment of a Go application process. The project includes a configuration file serializer for exporting environment variable maps back into formatted files and a parser for extracting data without modifying the system environment. It supports injecting variables from strings or files into the process environment using priority-based overloading and overwriting. The li

    Godotenvenvironment-variablesgo
    在 GitHub 上查看↗10,483
  • kentcdodds/cross-envkentcdodds 的头像

    kentcdodds/cross-env

    6,527在 GitHub 上查看↗

    cross-env is a Node.js command line utility and cross-platform shell script runner. It functions as an environment variable setter that ensures variables are handled identically across Windows, macOS, and Linux. The tool standardizes variable assignment by wrapping shell execution in a uniform interface, allowing scripts to run consistently regardless of the underlying operating system. This enables the use of a single syntax for environment configuration across diverse shell environments. The project covers capabilities for automated build tooling, Node.js environment configuration, and the

    TypeScript
    在 GitHub 上查看↗6,527
  • symfony/dotenvsymfony 的头像

    symfony/dotenv

    3,790在 GitHub 上查看↗

    This library is a PHP environment variable loader and configuration parser. It extracts key-value pairs from local text files to populate global server and system environment arrays, ensuring that sensitive credentials and application settings remain separate from the source code. The tool implements twelve-factor app configuration principles by mapping local files to process-level variables. It utilizes a regex-based parser to identify variable assignments while stripping comments and whitespace, and it includes guards to prevent local configuration files from overwriting existing host-level

    PHP
    在 GitHub 上查看↗3,790
  • laserlemon/figarolaserlemon 的头像

    laserlemon/figaro

    3,749在 GitHub 上查看↗

    Figaro is a configuration manager for Ruby on Rails applications that loads key-value pairs from YAML files and injects them into environment variables. It functions as a configuration validator, raising errors during startup if mandatory configuration keys are missing from the environment to prevent runtime crashes. The project includes a command-line utility for synchronizing local environment settings to remote hosting platforms and production servers. This allows for the generation of remote configuration files based on local source data. The system supports environment-specific settings

    Ruby
    在 GitHub 上查看↗3,749
查看 Env Cmd 的所有 30 个替代方案→

常见问题解答

toddbluhm/env-cmd 是做什么的?

This project is a command-line utility that executes processes by injecting environment variables from local configuration files. It functions as a runtime wrapper, allowing developers to manage application settings and process execution contexts without modifying global system variables.

toddbluhm/env-cmd 的主要功能有哪些?

toddbluhm/env-cmd 的主要功能包括:Shell Command Runners, Environment Variable Loaders, Runtime Environment Variable Injections, Application Configuration, Environment Variable Managers, Scoped Environment Variable Injections, Dynamic Placeholder Expansion, Cross-Platform Script Runners。

toddbluhm/env-cmd 有哪些开源替代品?

toddbluhm/env-cmd 的开源替代品包括: joho/godotenv — godotenv is a Go library designed to load, parse, and serialize environment configuration files. It provides tools to… kentcdodds/cross-env — cross-env is a Node.js command line utility and cross-platform shell script runner. It functions as an environment… symfony/dotenv — This library is a PHP environment variable loader and configuration parser. It extracts key-value pairs from local… laserlemon/figaro — Figaro is a configuration manager for Ruby on Rails applications that loads key-value pairs from YAML files and… bkeepers/dotenv — Dotenv is a Ruby library used for loading key-value pairs from files into an application environment. It includes a… hunvreus/devpush — Devpush is a self-hosted Git-based PaaS that automates the deployment of containerized applications. It maps each Git…