[activation.env]
MY_ENV_VAR = "Hello, Pixi!"
# 2
pixi task add print-env 'echo $MY_ENV_VAR'
# 3
pixi run print-env
# 4
pixi shell
# 5
echo $MY_ENV_VAR
# Or on Windows:
echo %MY_ENV_VAR%
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
[workspace]
authors = ["Jane Doe <jane.doe@example.com>"]
channels = ["conda-forge", "bioconda"]
name = "my-project"
platforms = ["osx-arm64", "win-64", "osx-64", "linux-64"]
version = "0.1.0"
[activation.env]
MY_ENV_VAR = "Hello, Pixi!"
[tasks]
hello = 'echo "Hello, Pixi!"'
greet = { cmd = 'echo "Hello, {{ name }}!"', args = ["name"] }
greet-YOUR_NAME = [{ task = "greet", args = ["YOUR_NAME"] }]
start = { args = ["name"], depends-on = [{ task = "hello" }, { task = "greet", args = ["{{ name }}"] }] }
print-env = "echo $MY_ENV_VAR"
[dependencies]
python = ">=3.13.5,<3.14"
scipy = "==1.15.1"
numpy = ">=2.3.0,<3"
fastqc = { version = ">=0.12.1,<0.13", channel = "bioconda" }
pandas = ">=2.3.0,<3"
[feature.test.pypi-dependencies]
pytest = { git = "https://github.com/pytest-dev/pytest.git", tag = "8.3.1" }
[feature.format.dependencies]
ruff = "*"
[feature.format.tasks]
fmt = "ruff --version"
[environments]
test = { features = ["test"], solve-group = "group1" }
format = { features = ["format"], no-default-feature = true }
default = { solve-group = "group1" }