You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/install.md
+32-18
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,8 @@
8
8
9
9
Nextflow can be used on any POSIX-compatible system (Linux, macOS, etc), and on Windows through [WSL](https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux). It requires Bash 3.2 (or later) and [Java 17 (or later, up to 23)](http://www.oracle.com/technetwork/java/javase/downloads/index.html) to be installed. You can see which version you have using the following command:
10
10
11
-
```bash
11
+
```{code-block} bash
12
+
:class: copyable
12
13
java -version
13
14
```
14
15
@@ -22,21 +23,24 @@ To install Java with SDKMAN:
22
23
23
24
1.[Install SDKMAN](https://sdkman.io/install):
24
25
25
-
```bash
26
+
```{code-block} bash
27
+
:class: copyable
26
28
curl -s https://get.sdkman.io | bash
27
29
```
28
30
29
31
2. Open a new terminal.
30
32
31
33
3. Install Java:
32
34
33
-
```bash
35
+
```{code-block} bash
36
+
:class: copyable
34
37
sdk install java 17.0.10-tem
35
38
```
36
39
37
40
4. Confirm that Java is installed correctly:
38
41
39
-
```bash
42
+
```{code-block} bash
43
+
:class: copyable
40
44
java -version
41
45
```
42
46
@@ -48,25 +52,28 @@ Nextflow is distributed as a self-installing package, in order to make the insta
48
52
49
53
1. Install Nextflow:
50
54
51
-
```bash
55
+
```{code-block} bash
56
+
:class: copyable
52
57
curl -s https://get.nextflow.io | bash
53
58
```
54
59
55
60
This will create the `nextflow` executable in the current directory.
56
61
57
62
:::{tip}
58
-
You can set`export CAPSULE_LOG=none` to make the installation logs less verbose.
63
+
Set `export CAPSULE_LOG=none` to make the installation logs less verbose.
59
64
:::
60
65
61
66
2. Make Nextflow executable:
62
67
63
-
```bash
68
+
```{code-block} bash
69
+
:class: copyable
64
70
chmod +x nextflow
65
71
```
66
72
67
73
3. Move Nextflow into an executable path. For example:
68
74
69
-
```bash
75
+
```{code-block} bash
76
+
:class: copyable
70
77
mkdir -p $HOME/.local/bin/
71
78
mv nextflow $HOME/.local/bin/
72
79
```
@@ -81,21 +88,24 @@ Nextflow is distributed as a self-installing package, in order to make the insta
81
88
82
89
4. Confirm that Nextflow is installed correctly:
83
90
84
-
```bash
91
+
```{code-block} bash
92
+
:class: copyable
85
93
nextflow info
86
94
```
87
95
88
96
## Updates
89
97
90
98
With Nextflow installed in your environment, you can update to the latest version using the following command:
91
99
92
-
```bash
100
+
```{code-block} bash
101
+
:class: copyable
93
102
nextflow self-update
94
103
```
95
104
96
105
You can also temporarily switch to a specific version of Nextflow with the `NXF_VER` environment variable. For example:
97
106
98
-
```bash
107
+
```{code-block} bash
108
+
:class: copyable
99
109
NXF_VER=23.10.0 nextflow info
100
110
```
101
111
@@ -107,13 +117,15 @@ Additionally, an *edge* version is released on a monthly basis. The edge release
107
117
108
118
To use the latest edge release, set `NXF_EDGE=1` when updating:
109
119
110
-
```bash
120
+
```{code-block} bash
121
+
:class: copyable
111
122
NXF_EDGE=1 nextflow self-update
112
123
```
113
124
114
125
You can also use `NXF_VER` to temporarily switch to any edge release. For example:
115
126
116
-
```bash
127
+
```{code-block} bash
128
+
:class: copyable
117
129
NXF_VER=24.06.0-edge nextflow info
118
130
```
119
131
@@ -128,16 +140,18 @@ of the corresponding Nextflow plugins.
128
140
129
141
To use the standalone distribution:
130
142
131
-
1. Download it from the [GitHub releases page](https://github.com/nextflow-io/nextflow/releases), under the "Assets" section for a specific
143
+
1. Download the standalone distribution from Assets section of the [GitHub releases page](https://github.com/nextflow-io/nextflow/releases).
132
144
133
-
2. Grant execution permissions to the downloaded file e.g.
145
+
2. Grant execution permissions to the downloaded file. For example:
134
146
135
-
```
147
+
```{code-block} bash
148
+
:class: copyable
136
149
chmod -x nextflow-24.10.1-dist
137
150
```
138
151
139
-
3. Then you can use it as a drop-in replacement for`nextflow` command. For example:
152
+
3. Use it as a drop-in replacement for `nextflow` command. For example:
0 commit comments