File tree Expand file tree Collapse file tree 1 file changed +26
-5
lines changed Expand file tree Collapse file tree 1 file changed +26
-5
lines changed Original file line number Diff line number Diff line change 1
1
# Installation
2
2
3
- We provide two versions of Context Generator:
4
- - a native binary
5
- - a PHAR file.
3
+ We provide two versions of Context Generator:
6
4
7
- The native binary is the recommended version, because it does not require PHP to be installed on your system. You can
8
- use it on Linux and MacOS.
5
+ - a native binary
6
+ - a PHAR file.
7
+
8
+ The native binary is the recommended version, because it does not require PHP to be installed on your system. You can
9
+ use it on Linux and MacOS.
9
10
10
11
The PHAR file can be used on any system with PHP 8.2 or higher.
11
12
@@ -30,6 +31,26 @@ curl -sSL https://raw.githubusercontent.com/context-hub/generator/main/download-
30
31
- Installs it (` ctx ` ) to your bin directory (default: ` /usr/local/bin ` )
31
32
- Makes it executable
32
33
34
+ <br >
35
+
36
+ If you install to a system directory like ` /usr/local/bin ` , you probably need ` sudo ` :
37
+
38
+ ``` bash
39
+ curl -sSL https://raw.githubusercontent.com/context-hub/generator/main/download-latest.sh | sudo sh
40
+ ```
41
+
42
+ Install to a custom path to avoid using ` sudo ` :
43
+
44
+ ``` bash
45
+ curl -sSL https://raw.githubusercontent.com/context-hub/generator/main/download-latest.sh | sh -s $HOME /.local/bin
46
+ ```
47
+
48
+ <br >
49
+
50
+ ---
51
+
52
+ <br >
53
+
33
54
After installation, you can use it by simply running the command to generate context:
34
55
35
56
``` bash
You can’t perform that action at this time.
0 commit comments