@@ -11,6 +11,28 @@ Kosli CLI can be installed from package managers,
1111by Curling pre-built binaries, or can be used from the distributed Docker images.
1212{{< tabs "installKosli" >}}
1313
14+ {{< tab "Script" >}}
15+ You can download the correct Kosli CLI for your platform, given that you can run bash on it, by invoking this one-line script:
16+
17+ ``` shell {.command}
18+ curl -fL https://raw.githubusercontent.com/kosli-dev/cli/refs/heads/main/install-cli.sh | sh
19+ ```
20+ {{< /tab >}}
21+
22+ {{< tab "Docker" >}}
23+ You can run the Kosli CLI with docker:
24+ ``` shell {.command}
25+ docker run --rm ghcr.io/kosli-dev/cli:v{{< cli-version > }}
26+ ```
27+ The ` entrypoint ` for this container is the kosli command.
28+
29+ To run any kosli command you append it to the ` docker run ` command above –
30+ without the ` kosli ` keyword. For example to run ` kosli version ` :
31+ ``` shell {.command}
32+ docker run --rm ghcr.io/kosli-dev/cli:v{{< cli-version > }} version
33+ ```
34+ {{< /tab >}}
35+
1436{{< tab "Homebrew" >}}
1537If you have [ Homebrew] ( https://brew.sh/ ) (available on MacOS, Linux or Windows Subsystem for Linux),
1638you can install the Kosli CLI by running:
@@ -64,20 +86,7 @@ For example, on Mac with AMD:
6486curl -L https://github.com/kosli-dev/cli/releases/download/v{{< cli-version > }}/kosli_{{< cli-version > }}_darwin_amd64.tar.gz | tar zx
6587sudo mv kosli /usr/local/bin/kosli
6688```
67- {{< /tab >}}
68-
69- {{< tab "Docker" >}}
70- You can run the Kosli CLI with docker:
71- ``` shell {.command}
72- docker run --rm ghcr.io/kosli-dev/cli:v{{< cli-version > }}
73- ```
74- The ` entrypoint ` for this container is the kosli command.
7589
76- To run any kosli command you append it to the ` docker run ` command above –
77- without the ` kosli ` keyword. For example to run ` kosli version ` :
78- ``` shell {.command}
79- docker run --rm ghcr.io/kosli-dev/cli:v{{< cli-version > }} version
80- ```
8190{{< /tab >}}
8291
8392{{< tab "From source" >}}
0 commit comments