Linux command
flox 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Initialize environment
flox init
Install package
flox install [ripgrep]
Activate environment
flox activate
Search for packages
flox search [nodejs]
List installed packages
flox list
说明
flox is a virtual environment manager built on Nix. It creates reproducible development environments with declarative package management, shareable across machines and teams. Environments are defined in a manifest file and can be pushed to FloxHub for sharing. Unlike traditional virtual environments, flox handles any language or tool from the Nix package collection. flox simplifies Nix's complexity while preserving its reproducibility guarantees.
参数
- init
- Initialize new environment.
- install _PACKAGES_
- Install packages.
- activate
- Enter environment shell.
- search _QUERY_
- Search for packages.
- list
- Show installed packages.
- uninstall _PACKAGES_
- Remove packages.
- push
- Publish environment.
- --help
- Display help information.
FAQ
What is the flox command used for?
flox is a virtual environment manager built on Nix. It creates reproducible development environments with declarative package management, shareable across machines and teams. Environments are defined in a manifest file and can be pushed to FloxHub for sharing. Unlike traditional virtual environments, flox handles any language or tool from the Nix package collection. flox simplifies Nix's complexity while preserving its reproducibility guarantees.
How do I run a basic flox example?
Run `flox init` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does init do in flox?
Initialize new environment.