← 返回命令列表

Linux command

devenv 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Initialize a new project

devenv init

Enter the development shell

devenv shell

Start background processes

devenv up

Start processes detached

devenv processes up

Run a command in the environment

devenv shell -- [command]

Search for a package

devenv search [package_name]

Update inputs and lockfile

devenv update

Run project tests

devenv test

说明

devenv is a development environment management tool built on Nix. It provides declarative, reproducible development environments with automatic dependency management. Configuration is defined in devenv.nix, specifying packages, services, environment variables, and scripts. devenv simplifies Nix usage for development environments with a user-friendly API and pre-configured services like databases, language runtimes, and development tools. The tool supports running services in the background, automatic environment activation with direnv integration, and deterministic builds through Nix's reproducibility guarantees.

FAQ

What is the devenv command used for?

devenv is a development environment management tool built on Nix. It provides declarative, reproducible development environments with automatic dependency management. Configuration is defined in devenv.nix, specifying packages, services, environment variables, and scripts. devenv simplifies Nix usage for development environments with a user-friendly API and pre-configured services like databases, language runtimes, and development tools. The tool supports running services in the background, automatic environment activation with direnv integration, and deterministic builds through Nix's reproducibility guarantees.

How do I run a basic devenv example?

Run `devenv init` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

Where can I find more devenv examples?

This page includes 8 examples for devenv, plus related commands for nearby Linux tasks.