mirror of
https://github.com/kubescape/kubescape.git
synced 2026-02-14 09:59:54 +00:00
Move Building to wiki and installation back to docs
Signed-off-by: Hollow Man <hollowman@opensuse.org>
This commit is contained in:
112
docs/installation.md
Normal file
112
docs/installation.md
Normal file
@@ -0,0 +1,112 @@
|
||||
# Installation
|
||||
## Manually
|
||||
> **Note**: We do not recommend this method if you want to get auto-updating from package managers or have more platforms supported.
|
||||
### X86_64 or ARM64 (M1/M2) Linux / macOS
|
||||
```bash
|
||||
curl -s https://raw.githubusercontent.com/kubescape/kubescape/master/install.sh | /bin/bash
|
||||
```
|
||||
|
||||
### X86_64 Windows
|
||||
You must have PowerShell v5.0 or higher:
|
||||
```powershell
|
||||
iwr -useb https://raw.githubusercontent.com/kubescape/kubescape/master/install.ps1 | iex
|
||||
```
|
||||
|
||||
If you get an error, you may need to change the execution policy:
|
||||
```powershell
|
||||
Set-ExecutionPolicy RemoteSigned -scope CurrentUser
|
||||
```
|
||||
|
||||
## openSUSE
|
||||
> **Note**: openSUSE community-supported.
|
||||
|
||||
```bash
|
||||
sudo zypper refresh
|
||||
sudo zypper install kubescape
|
||||
```
|
||||
|
||||
## Arch
|
||||
```bash
|
||||
yay -S kubescape
|
||||
```
|
||||
If you would like to save some time and do not want to compile, install `kubescape-bin` instead:
|
||||
> **Note**: kubescape-bin is AUR community-supported.
|
||||
```bash
|
||||
yay -S kubescape-bin
|
||||
```
|
||||
|
||||
## Ubuntu
|
||||
```bash
|
||||
sudo add-apt-repository ppa:kubescape/kubescape
|
||||
sudo apt update
|
||||
sudo apt install kubescape
|
||||
```
|
||||
|
||||
## Other Debian-based or RPM-based Linux Distros
|
||||
Please follow the [guidelines here](https://software.opensuse.org/download.html?project=home%3Akubescape&package=kubescape).
|
||||
|
||||
## Homebrew
|
||||
> **Note**: The kubescape delivered by [official Homebrew](https://formulae.brew.sh/formula/kubescape#default) comes with git disabled.
|
||||
|
||||
```bash
|
||||
brew install kubescape
|
||||
```
|
||||
|
||||
If you want to have the git enabled one, you can install via the [homebrew-tap](https://github.com/kubescape/homebrew-tap):
|
||||
```bash
|
||||
brew tap kubescape/tap
|
||||
brew install kubescape-cli
|
||||
```
|
||||
|
||||
## Chocolatey
|
||||
> **Note**: Chocolatey [community-supported](https://community.chocolatey.org/packages/kubescape).
|
||||
```powershell
|
||||
choco install kubescape
|
||||
```
|
||||
|
||||
## Scoop
|
||||
> **Note**: Scoop [community-supported](https://scoop.sh/#/apps?q=kubescape&s=0&d=1&o=true&id=1f5ae05eaafe3e7a26505f0889101e0da91ffe91).
|
||||
```powershell
|
||||
scoop install kubescape
|
||||
```
|
||||
|
||||
## Krew
|
||||
```bash
|
||||
kubectl krew update
|
||||
kubectl krew install kubescape
|
||||
kubectl kubescape
|
||||
```
|
||||
|
||||
## Snap
|
||||
> **Note**: If installed using snap, the executable is called cli-kubescape and not kubescape.
|
||||
|
||||
[](https://snapcraft.io/cli-kubescape)
|
||||
|
||||
## NixOS or with nix
|
||||
> **Note**: This method is community-supported. If you are having trouble, please reach out to [NixOS support](https://nixos.wiki/wiki/Support).
|
||||
|
||||
You can use `nix` on Linux or macOS.
|
||||
|
||||
Try it out in an ephemeral shell: `nix-shell -p kubescape`.
|
||||
|
||||
NixOS:
|
||||
|
||||
```
|
||||
# your other config ...
|
||||
environment.systemPackages = with pkgs; [
|
||||
# your other packages ...
|
||||
kubescape
|
||||
];
|
||||
```
|
||||
|
||||
home-manager:
|
||||
|
||||
```
|
||||
# your other config ...
|
||||
home.packages = with pkgs; [
|
||||
# your other packages ...
|
||||
kubescape
|
||||
];
|
||||
```
|
||||
|
||||
Or, to your profile (not preferred): `nix-env --install -A nixpkgs.kubescape`.
|
||||
Reference in New Issue
Block a user