Skip to content

Commit

Permalink
Update nextflow install docs (nextflow-io#5198) [ci skip]
Browse files Browse the repository at this point in the history

Signed-off-by: christopher-hakkaart <chris.hakkaart@seqera.io>
Signed-off-by: Christopher Hakkaart <chris.hakkaart@seqera.io>
Co-authored-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
  • Loading branch information
2 people authored and alberto-miranda committed Nov 19, 2024
1 parent 07d2592 commit a2dbb99
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,21 @@ Nextflow is distributed as a self-installing package, in order to make the insta
chmod +x nextflow
```

3. Move Nextflow into an executable path:
3. Move Nextflow into an executable path. For example:

```bash
sudo mv nextflow /usr/local/bin
mkdir -p $HOME/.local/bin/
mv nextflow $HOME/.local/bin/
```

:::{tip}
Ensure the directory `$HOME/.local/bin/` is included in your `PATH` variable. Temporarily add this directory to `PATH` by setting `export PATH="$PATH:$HOME/.local/bin"`. Add the directory to `PATH` permanently by adding the export command to your shell configuration file, such as `~/.bashrc` or `~/.zshrc`. Alternatively, move the `nextflow` executable to a directory already in your `PATH`.
:::

:::{warning}
Nextflow will update its executable during the self update process, therefore the update can fail if the executable is placed in a directory with restricted permissions.
:::

4. Confirm that Nextflow is installed correctly:

```bash
Expand All @@ -83,7 +92,7 @@ nextflow self-update
You can also temporarily switch to a specific version of Nextflow with the `NXF_VER` environment variable. For example:

```bash
NXF_VER=23.10.0 nextflow run hello
NXF_VER=23.10.0 nextflow info
```

## Stable and edge releases
Expand All @@ -98,10 +107,10 @@ To use the latest edge release, set `NXF_EDGE=1` when updating:
NXF_EDGE=1 nextflow self-update
```

You can also use `NXF_VER` to switch to any edge release:
You can also use `NXF_VER` to temporarily switch to any edge release. For example:

```bash
$ nextflow info
NXF_VER=24.06.0-edge nextflow info
```

## Standalone distribution
Expand Down

0 comments on commit a2dbb99

Please sign in to comment.