|
1 | 1 | --- |
2 | | -description: Learn how to install the Kit CLI on MacOS, Windows, and Linux. Follow our detailed instructions to set up KitOps and start managing your AI/ML ModelKits efficiently. |
| 2 | +title: Install KitOps CLI - macOS, Windows, Linux |
| 3 | +description: Learn how to install KitOps, the open-source CLI for packaging and managing AI/ML models with ModelKits. Supports macOS, Windows, Linux, and source builds. |
| 4 | +keywords: install kitops, kit CLI download, kitops mac brew, kitops windows zip, linux modelkit CLI, install ai model packaging tool, mlops cli tool |
3 | 5 | --- |
4 | 6 |
|
5 | 7 | <script setup> |
6 | 8 | import vGaTrack from '@theme/directives/ga' |
7 | 9 | </script> |
8 | 10 |
|
9 | | -# Installing Kit |
| 11 | +# Installing KitOps |
10 | 12 |
|
11 | | -Kit is a command line tool for building and managing secure and shareable ModelKits. It works on Mac, Windows, and Linux computers. |
| 13 | +`kit` is the command-line tool for building and managing ModelKits. |
12 | 14 |
|
13 | | -This page includes instructions for: |
| 15 | +Pick your platform to get started: |
| 16 | +- [MacOS](#-macos-install) |
| 17 | +- [Windows](#-windows-install) |
| 18 | +- [Linux](#-linux-install) |
| 19 | +- [Build from source](#build-sources) |
14 | 20 |
|
15 | | -* Installing on [MacOS](#🍎-macos-install) with Brew or ZIP |
16 | | -* Installing on [Windows](#🪟-windows-install) with ZIP |
17 | | -* Installing on [Linux](#🐧-linux-install) with Brew or TAR |
18 | | -* Building from the [source code](#🛠️-build-from-source-code) |
| 21 | +Need help? [Join the community on Discord](https://discord.gg/Tapeh8agYy). |
19 | 22 |
|
20 | | -[ discord banner ] |
| 23 | +## 🍎 MacOS KitOps Install |
21 | 24 |
|
22 | | -## 🍎 MacOS Install |
23 | | - |
24 | | -The simplest way to install Kit on a Mac is with [Homebrew](https://brew.sh/). You can also install from [ZIP](#mac-install-from-zip). |
25 | | - |
26 | | -### Mac Brew Install |
27 | | - |
28 | | -1. Open a Terminal window |
29 | | -1. At the prompt type: `brew tap kitops-ml/kitops` (if that doesn't work use the [ZIP instructions](#mac-install-from-zip) |
30 | | -1. When the previous command completes, type `brew install kitops` |
31 | | - |
32 | | -You can verify that `kit` is correctly installed by opening a new terminal or command prompt and typing: |
33 | | - |
34 | | -```shell |
35 | | -kit version |
| 25 | +Install with Homebrew (recommended) |
| 26 | +```sh |
| 27 | +brew tap kitops-ml/kitops |
| 28 | +brew install kitops |
36 | 29 | ``` |
37 | 30 |
|
38 | | -This command should display the version number of the Kit CLI you have installed, indicating that the installation was successful. |
39 | | - |
40 | | -Now follow our [Quick Start](../../get-started/) to learn how to pack and share your first ModelKit. |
41 | | - |
42 | | -**Need Help?** If something isn't working [get help on our Discord channel](https://discord.gg/Tapeh8agYy). |
| 31 | +➡️ [Verify your installation](#verify-the-installation) |
43 | 32 |
|
44 | | -### Mac Install from ZIP |
| 33 | +Or use ZIP instead... |
45 | 34 |
|
46 | | -There are two generations of Mac hardware, if you aren't sure which you have [check here](https://www.sweetwater.com/sweetcare/articles/intel-based-mac-or-mac-with-apple-silicon/#:~:text=Choose%20About%20This%20Mac.,a%20Mac%20with%20Apple%20silicon.&text=As%20of%20this%20writing%2C%20Apple,have%20an%20Intel%2Dbased%20Mac.). |
47 | | - |
48 | | -1. MacOS: <a href="https://github.com/kitops-ml/kitops/releases/latest/download/kitops-darwin-arm64.zip" |
| 35 | +1. Get the ZIP for your Mac chip type. |
| 36 | + - MacOS:<a href="https://github.com/kitops-ml/kitops/releases/latest/download/kitops-darwin-arm64.zip" |
49 | 37 | v-ga-track="{ |
50 | 38 | category: 'link', |
51 | 39 | label: 'MacOS (Apple Silicon)', |
52 | 40 | location: 'docs/installation' |
53 | 41 | }"> |
54 | 42 | Apple Silicon / ARM64 |
55 | 43 | </a> |
56 | | - |
57 | | -2. MacOS: <a href="https://github.com/kitops-ml/kitops/releases/latest/download/kitops-darwin-x86_64.zip" |
| 44 | + - MacOS:<a href="https://github.com/kitops-ml/kitops/releases/latest/download/kitops-darwin-x86_64.zip" |
58 | 45 | v-ga-track="{ |
59 | 46 | category: 'link', |
60 | 47 | label: 'MacOS (Intel)', |
61 | 48 | location: 'docs/installation' |
62 | 49 | }"> |
63 | 50 | Intel / x86_64 |
64 | 51 | </a> |
| 52 | +2. Move the kit executable to `/usr/local/bin` |
| 53 | +3. Test it worked by running `kit version` in your terminal |
| 54 | +4. [Verify your installation](#verify-the-installation) |
65 | 55 |
|
66 | | -The Kit download will happen _so quickly_ on a fast connection that you might miss it... |
67 | | - |
68 | | -* Open the Mac Finder and check your downloads location for a file that starts with `kitops-darwin` |
69 | | -* Double-click the `.zip` file to unpack it |
70 | | -* Select the executable file named `kit` from unpacked folder and move it to `/usr/local/bin` |
71 | | - |
72 | | -You can verify that `kit` is correctly installed by opening a new terminal or command prompt and typing: |
73 | | - |
74 | | -```shell |
75 | | -kit version |
76 | | -``` |
77 | | - |
78 | | -This command should display the version number of the Kit CLI you have installed, indicating that the installation was successful. |
79 | | - |
80 | | -Now follow our [Quick Start](../../get-started/) to learn how to pack and share your first ModelKit. |
81 | | - |
82 | | -**Need Help?** If something isn't working [get help on our Discord channel](https://discord.gg/Tapeh8agYy). |
83 | | - |
84 | | -## 🪟 Windows Install |
85 | | - |
86 | | -Make sure you get the correct download for your hardware. |
| 56 | +## 🪟 Windows KitOps Install |
87 | 57 |
|
88 | | -1. Windows: <a href="https://github.com/kitops-ml/kitops/releases/latest/download/kitops-windows-x86_64.zip" |
| 58 | +1. Get the ZIP for your hardware type: |
| 59 | + - Windows: <a href="https://github.com/kitops-ml/kitops/releases/latest/download/kitops-windows-x86_64.zip" |
89 | 60 | v-ga-track="{ |
90 | 61 | category: 'link', |
91 | 62 | label: 'Windows (AMD64)', |
92 | 63 | location: 'docs/installation' |
93 | 64 | }"> |
94 | 65 | Intel / AMD, 64-bit |
95 | 66 | </a> |
96 | | - |
97 | | -1. Windows: <a href="https://github.com/kitops-ml/kitops/releases/latest/download/kitops-windows-arm64.zip" |
| 67 | + - Windows: <a href="https://github.com/kitops-ml/kitops/releases/latest/download/kitops-windows-arm64.zip" |
98 | 68 | v-ga-track="{ |
99 | 69 | category: 'link', |
100 | 70 | label: 'Windows (ARM64)', |
101 | 71 | location: 'docs/installation' |
102 | 72 | }"> |
103 | 73 | ARM 64-bit |
104 | 74 | </a> |
105 | | - |
106 | | -1. Windows: <a href="https://github.com/kitops-ml/kitops/releases/latest/download/kitops-windows-i386.zip" |
| 75 | + - Windows: <a href="https://github.com/kitops-ml/kitops/releases/latest/download/kitops-windows-i386.zip" |
107 | 76 | v-ga-track="{ |
108 | 77 | category: 'link', |
109 | 78 | label: 'Windows (x86_32)', |
110 | 79 | location: 'docs/installation' |
111 | 80 | }"> |
112 | 81 | Intel / AMD, 32-bit |
113 | 82 | </a> |
| 83 | +2. Unzip the file using “Extract All…” |
| 84 | +3. Move `kit.exe` to a folder in your system PATH |
| 85 | +4. [Verify your installation](#verify-the-installation) |
114 | 86 |
|
115 | | -The Kit download will happen _so quickly_ on a fast connection that you might miss it... |
116 | | - |
117 | | -* Open the File Explorer and check your downloads location for a file that starts with `kitops-windows` |
118 | | -* Right-click the `.zip` file and select "Extract All..." to unzip the archive |
119 | | -* Move the extracted `kit.exe` to a directory that is <a href="https://www.computerhope.com/issues/ch000549.htm" target="_blank">included in your system's PATH variable</a> (this will allow you to run the Kit CLI from anywhere). |
120 | | - |
121 | | -You can verify that `kit` is correctly installed by opening a new terminal or command prompt and typing: |
122 | | - |
123 | | -```shell |
124 | | -kit version |
125 | | -``` |
126 | | - |
127 | | -This command should display the version number of the Kit CLI you have installed, indicating that the installation was successful. |
128 | | - |
129 | | -Now follow our [Quick Start](../../get-started/) to learn how to pack and share your first ModelKit. |
130 | | - |
131 | | -**Need Help?** If something isn't working [get help on our Discord channel](https://discord.gg/Tapeh8agYy). |
| 87 | +## 🐧 Linux KitOps Install |
132 | 88 |
|
133 | | -## 🐧 Linux Install |
134 | | - |
135 | | -The simplest way to install Kit on Linux is with [Homebrew](https://brew.sh/). You can also install from [TAR](#linux-tar-install). |
136 | | - |
137 | | -### Linux Brew Install |
138 | | - |
139 | | -1. Open a Terminal window |
140 | | -1. At the prompt type: `brew tap kitops-ml/kitops` (if that doesn't work use the [TAR instructions](#linux-tar-install) |
141 | | -1. When the previous command completes, type `brew install kitops` |
142 | | - |
143 | | -You can verify that `kit` is correctly installed by opening a new terminal or command prompt and typing: |
144 | | - |
145 | | -```shell |
| 89 | +Install with Homebrew (recommended) |
| 90 | +```sh |
| 91 | +brew tap kitops-ml/kitops |
| 92 | +brew install kitops |
146 | 93 | kit version |
147 | 94 | ``` |
148 | 95 |
|
149 | | -This command should display the version number of the Kit CLI you have installed, indicating that the installation was successful. |
| 96 | +Or use TAR instead... |
150 | 97 |
|
151 | | -Now follow our [Quick Start](../../get-started/) to learn how to pack and share your first ModelKit. |
152 | | - |
153 | | -**Need Help?** If something isn't working [get help on our Discord channel](https://discord.gg/Tapeh8agYy). |
154 | | - |
155 | | -### Linux TAR Install |
156 | | - |
157 | | -Make sure you get the correct download for your hardware. |
158 | | - |
159 | | -1. Linux: <a href="https://github.com/kitops-ml/kitops/releases/latest/download/kitops-linux-x86_64.tar.gz" |
| 98 | +1. Get the ZIP for your Mac chip type. |
| 99 | + - Linux:<a href="https://github.com/kitops-ml/kitops/releases/latest/download/kitops-linux-x86_64.tar.gz" |
160 | 100 | v-ga-track="{ |
161 | 101 | category: 'link', |
162 | 102 | label: 'Linux (AMD64)', |
163 | 103 | location: 'docs/installation' |
164 | 104 | }"> |
165 | 105 | Intel / AMD, AMD 64-bit |
166 | 106 | </a> |
167 | | - |
168 | | -1. Linux: <a href="https://github.com/kitops-ml/kitops/releases/latest/download/kitops-linux-arm64.tar.gz" |
| 107 | + - Linux:<a href="https://github.com/kitops-ml/kitops/releases/latest/download/kitops-linux-arm64.tar.gz" |
169 | 108 | v-ga-track="{ |
170 | 109 | category: 'link', |
171 | 110 | label: 'Linux (ARM64)', |
172 | 111 | location: 'docs/installation' |
173 | 112 | }"> |
174 | 113 | ARM 64-bit |
175 | 114 | </a> |
176 | | - |
177 | | -1. Linux: <a href="https://github.com/kitops-ml/kitops/releases/latest/download/kitops-linux-i386.tar.gz" |
| 115 | + - Linux:<a href="https://github.com/kitops-ml/kitops/releases/latest/download/kitops-linux-i386.tar.gz" |
178 | 116 | v-ga-track="{ |
179 | 117 | category: 'link', |
180 | 118 | label: 'Linux (x86_32)', |
181 | 119 | location: 'docs/installation' |
182 | 120 | }"> |
183 | 121 | Intel / AMD, 32-bit |
184 | 122 | </a> |
| 123 | +2. In a terminal: |
| 124 | + ``` |
| 125 | + tar -xzvf kitops-linux-x86_64.tar.gz |
| 126 | + sudo mv kit /usr/local/bin/ |
| 127 | + ``` |
| 128 | +3. [Verify your installation](#verify-the-installation) |
185 | 129 |
|
186 | | -The Kit download will happen _so quickly_ on a fast connection that you might miss it... |
187 | | - |
188 | | -Open a terminal window in your downloads location and look for a file that starts with `kitops-linux`. |
189 | | - |
190 | | -Use the `tar` command to extract the downloaded file. For example, if you downloaded the `kitops-linux-x86_64.tar.gz` file, you would use the following command: |
191 | | - |
192 | | -```shell |
193 | | -tar -xzvf kitops-linux-x86_64.tar.gz |
194 | | -``` |
195 | | - |
196 | | -Move the extracted `kit` executable to a location in your system's PATH. A common choice is `/usr/local/bin`. You can do this with the `mv` command (this may require administrator privileges): |
197 | | - |
198 | | -``` |
199 | | -sudo mv kit /usr/local/bin/ |
200 | | -``` |
201 | | - |
202 | | -After installation, you can verify that `kit` is correctly installed by opening a new terminal or command prompt and typing: |
| 130 | +## Verify the KitOps Installation |
203 | 131 |
|
| 132 | +After install, open a new terminal and run: |
204 | 133 | ```shell |
205 | 134 | kit version |
206 | 135 | ``` |
207 | 136 |
|
208 | | -This command should display the version number of the Kit CLI you have installed, indicating that the installation was successful. |
| 137 | +If Kit is installed correctly, you'll see a kit version printed. |
209 | 138 |
|
210 | | -Now follow our [Quick Start](../../get-started/) to learn how to pack and share your first ModelKit. |
| 139 | +## Next Step: Use KitOps |
211 | 140 |
|
212 | | -**Need Help?** If something isn't working [get help on our Discord channel](https://discord.gg/Tapeh8agYy). |
| 141 | +You’re ready to go. Head to our Quick Start guide to: |
| 142 | +- Create your first Kitfile |
| 143 | +- Pack a model |
| 144 | +- Push to a registry |
213 | 145 |
|
214 | | -## 🛠️ Build from Source Code |
| 146 | +➡️ [Get Started tutorial](../../get-started.md) |
215 | 147 |
|
216 | | -For those who prefer or require building `kit` from the source code, this section will guide you through the necessary steps. |
217 | | - |
218 | | -Before you begin, make sure you have the following installed on your system: |
| 148 | +## Build KitOps from Source |
219 | 149 |
|
| 150 | +If you'd rather build from source you'll need: |
220 | 151 | - Git |
221 | | -- A recent version of Go |
222 | | - |
223 | | -You can check if you have Go installed by running `go version` in your terminal. If you need to install Go, visit the [official Go download page](https://golang.org/dl/) for instructions. |
224 | | - |
225 | | -### Clone the Repository |
| 152 | +- Go |
226 | 153 |
|
227 | | -First, clone the `kitops` GitHub repository to your local machine. Open a terminal and run: |
| 154 | +You can check if you have Go installed by running go version in your terminal. If you need to install Go, visit the official Go download page for instructions. |
228 | 155 |
|
| 156 | +Steps: |
229 | 157 |
|
230 | | -```shell |
| 158 | +### 1. Clone and build the project |
| 159 | +```sh |
231 | 160 | git clone https://github.com/kitops-ml/kitops.git |
232 | 161 | cd kitops |
233 | | -``` |
234 | | - |
235 | | -This command clones the repository and changes your current directory to the cloned repository's root. |
236 | | - |
237 | | -### Build Sources |
238 | | - |
239 | | -Once inside the `kitops` directory, you can build the `kit` tool using the Go compiler. Run: |
240 | | - |
241 | | -```shell |
242 | 162 | go build -o kit |
243 | 163 | ``` |
| 164 | +This command compiles the source code into an executable named `kit`. If you are on Windows, consider renaming the executable to `kit.exe`. |
244 | 165 |
|
245 | | -This command compiles the source code into an executable named `kit`. If you are on Windows, you might want to name the executable `kit.exe`. |
246 | | - |
247 | | -### Install the Executable |
| 166 | +### 2. Move the binary: |
| 167 | +- macOS/Linux: `sudo mv kit /usr/local/bin/` |
| 168 | +- Windows: move kit.exe to a folder in your PATH |
248 | 169 |
|
249 | | -After the build process completes, you need to move the `kit` executable to a location in your system's PATH to make it accessible from anywhere in the terminal: |
| 170 | +### 3. Verify the installation |
| 171 | +Open a new terminal and run: `kit version` |
250 | 172 |
|
251 | | -#### For MacOS and Linux: |
252 | | - |
253 | | -```shell |
254 | | -sudo mv kit /usr/local/bin/ |
255 | | -``` |
256 | | - |
257 | | -#### For Windows: |
258 | | - |
259 | | -Move `kit.exe` to a directory that's included in your system's PATH variable. This step may vary based on your specific Windows setup. |
260 | | - |
261 | | -### Verify the Installation |
262 | | - |
263 | | -To verify that `kit` was installed successfully, open a new terminal window and type: |
264 | | - |
265 | | -```shell |
266 | | -kit version |
267 | | -``` |
268 | | - |
269 | | -## Optional: Set Your Environment |
| 173 | +You should see your kit version number printed in the terminal. |
270 | 174 |
|
| 175 | +### 4. Optional environment settings |
271 | 176 | You can configure which directory credentials and storage are located: |
| 177 | + |
272 | 178 | * `--config` flag for a specific kit CLI execution |
273 | 179 | * `KITOPS_HOME` environment variable for permanent configurations |
274 | | - |
275 | 180 | If the `KITOPS_HOME` is set in various places the order of precedence is: |
276 | | -1. `--config` flag, if specified |
277 | | -1. `$KITOPS_HOME` environment variable, if set |
278 | | -1. A default OS-dependent value: |
279 | | - |
280 | | - Linux: `$XDG_DATA_HOME/kitops`, falling back to `~/.local/share/kitops` |
281 | | - |
282 | | - Windows: `%LOCALAPPDATA%\kitops` |
| 181 | + 1. `--config` flag, if specified |
| 182 | + 2. `$KITOPS_HOME` environment variable, if set |
| 183 | + 3. A default OS-dependent value: |
| 184 | + - Linux: `$XDG_DATA_HOME/kitops`, falling back to `~/.local/share/kitops` |
| 185 | + - Windows: `%LOCALAPPDATA%\kitops` |
| 186 | + - MacOS: `~/Library/Caches/kitops` |
283 | 187 |
|
284 | | - Darwin: `~/Library/Caches/kitops` |
285 | | - |
286 | | - |
287 | | -## Follow the Quick Start |
288 | | - |
289 | | -Now that everything is set up you can follow our [Quick Start](../../get-started/) to learn how to pack and share your first ModelKit. |
290 | | - |
291 | | -## Become a Design Partner |
| 188 | +--- |
292 | 189 |
|
293 | | -Interested in helping to shape the future of our project? Email < a href= "mailto:[email protected]" target= "blank"> [email protected]</ a> to learn more about our Design Partner program. |
| 190 | +**Have feedback or questions?** |
| 191 | +Open an [issue on GitHub](https://github.com/kitops-ml/kitops/issues) or [join us on Discord](https://discord.gg/Tapeh8agYy). |
0 commit comments