# devenv **Repository Path**: anydev/devenv ## Basic Information - **Project Name**: devenv - **Description**: 一个快速、声明式、可重现且可组合的开发者环境工具。 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-09-18 - **Last Updated**: 2025-09-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README
# [devenv.sh](https://devenv.sh) - Fast, Declarative, Reproducible, and Composable Developer Environments [](https://builtwithnix.org) [](https://discord.gg/naMgvexb6q)  [](https://github.com/cachix/devenv/releases) [](https://github.com/cachix/devenv/actions/workflows/buildtest.yml?branch=main) Running ``devenv init`` generates ``devenv.nix``: ```nix { pkgs, ... }: { # https://devenv.sh/basics/ env.GREET = "devenv"; # https://devenv.sh/packages/ packages = [ pkgs.git ]; enterShell = '' hello ''; # https://devenv.sh/tests/ enterTest = '' echo "Running tests" git --version | grep --color=auto "${pkgs.git.version}" ''; # https://devenv.sh/languages/ languages.nix.enable = true; # https://devenv.sh/scripts/ scripts.hello.exec = "echo hello from $GREET"; # https://devenv.sh/services/ services.postgres.enable = true; # https://devenv.sh/git-hooks/ git-hooks.hooks.shellcheck.enable = true; # https://devenv.sh/processes/ processes.ping.exec = "ping localhost"; } ``` And ``devenv shell`` activates the environment. ## Commands ``` $ devenv https://devenv.sh 1.6.0: Fast, Declarative, Reproducible, and Composable Developer Environments Usage: devenv [OPTIONS] [COMMAND] Commands: init Scaffold devenv.yaml, devenv.nix, .gitignore and .envrc. generate Generate devenv.yaml and devenv.nix using AI shell Activate the developer environment. https://devenv.sh/basics/ update Update devenv.lock from devenv.yaml inputs. http://devenv.sh/inputs/ search Search for packages and options in nixpkgs. https://devenv.sh/packages/#searching-for-a-file info Print information about this developer environment. up Start processes in the foreground. https://devenv.sh/processes/ processes Start or stop processes. https://devenv.sh/processes/ tasks Run tasks. https://devenv.sh/tasks/ test Run tests. http://devenv.sh/tests/ container Build, copy, or run a container. https://devenv.sh/containers/ inputs Add an input to devenv.yaml. https://devenv.sh/inputs/ repl Launch an interactive environment for inspecting the devenv configuration. gc Delete previous shell generations. See https://devenv.sh/garbage-collection build Build any attribute in devenv.nix. direnvrc Print a direnvrc that adds devenv support to direnv. See https://devenv.sh/automatic-shell-activation. version Print the version of devenv. help Print this message or the help of the given subcommand(s) Options: -V, --version Print version information and exit -v, --verbose Enable additional debug logs. -q, --quiet Silence all logs --log-format