The flox CLI is a multi-platform environment manager built on Nix.
With flox you can:
- Install and run software anywhere
- Share collections of software that others can use
- Build software the same way in any environment
- Publish software for re-use
You can download the flox CLI via one of our native installers for Mac, Linux, or Windows WSL here.
See the docs for more detail on usage.
$ flox search ripgrep
ripgrep - A utility that combines the usability of The Silver Searcher with the raw speed of grep
[email protected]
[email protected]
[email protected]
[email protected]
$ flox install ripgrep
created generation 1
$ flox create
created environment default (aarch64-linux)
$ flox install cowsay
created generation 2
$ flox activate
flox [default] $ cowsay '¡Hola!'
________
< !Hola! >
--------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
flox [default] $ exit
$ flox pull -e flox-examples/demo
Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
To /home/USER/.cache/flox/meta/flox-examples
* [new branch] aarch64-linux.demo -> aarch64-linux.demo
$ flox activate -e flox-examples/demo
flox [flox-examples/demo default] $ fortune | cowsay
_____________________________________
/ Spock: We suffered 23 casualties in \
\ that attack, Captain. /
-------------------------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
flox [flox-examples/demo default] $ exit
The flox CLI gets its packages from the nixpkgs-flox channel, which is created using Nixpkgs. Using packages from a flox channel adds a few features as compared to using Nixpkgs directly: semantic versioning, stabilities, and guaranteed cache hits. See the docs for more.
We welcome contributions to this project. Please read the Contributor guide first.
The flox CLI is written in Rust. Building flox requires a running Nix daemon.
The simplest way to build flox is via flox!
- Download
flox
and runflox build
in the project directory.
If you're a Nix user, you can run the following:
nix build .#flox --extra-experimental-features "nix-command flakes"
.
See the contributor guide for more information.
The flox CLI is licensed under the GPLv2. See LICENSE.
Find us on Twitter and Discourse.
For updates to the flox CLI, follow this repo on GitHub!