From 94abacbf61aea85d954b3765abc44f71758eec68 Mon Sep 17 00:00:00 2001 From: Maidul Islam Date: Fri, 18 Nov 2022 18:24:58 -0500 Subject: [PATCH] Update docs for cli install to use tabs --- docs/installCLI.mdx | 139 +++++++++++++++++++++++--------------------- 1 file changed, 74 insertions(+), 65 deletions(-) diff --git a/docs/installCLI.mdx b/docs/installCLI.mdx index 903f989c84..a805b801ec 100644 --- a/docs/installCLI.mdx +++ b/docs/installCLI.mdx @@ -7,74 +7,83 @@ description: "Install the official Infisical CLI for both your development and p Installing Infisical CLI is simple. Just follow the guide for your OS below. - - Use [brew](https://brew.sh/) package manager - - ``` - $ brew install infisical/get-cli/infisical - $ infisical --version - ``` - - To update: - - ``` - $ brew upgrade infisical - ``` - - - - Use [Scoop](https://scoop.sh/) package manager - - ``` - $ scoop bucket add org https://github.com/Infisical/scoop-infisical.git - $ scoop install infisical - $ infisical --version - ``` - - To update: - - ``` - $ scoop update infisical - ``` - - - - - ``` - $ curl https://raw.githubusercontent.com/Infisical/infisical/main/infisical-cli.repo | tee /etc/yum.repos.d/infisical-cli.repo - - $ yum update && sudo yum install infisical - ``` - - - - ``` - $ apk add --no-cache bash sudo curl - $ curl -1sLf \ - 'https://dl.cloudsmith.io/public/infisical/infisical-cli/setup.alpine.sh' \ + + + Use [brew](https://brew.sh/) package manager + + ``` + $ brew install infisical/get-cli/infisical + $ infisical --version + ``` + + To update: + + ``` + $ brew upgrade infisical + ``` + + + Use [Scoop](https://scoop.sh/) package manager + + ``` + $ scoop bucket add org https://github.com/Infisical/scoop-infisical.git + $ scoop install infisical + $ infisical --version + ``` + + To update: + + ``` + $ scoop update infisical + ``` + + + Install prerequisite + ``` + $ sudo apk add --no-cache bash sudo + ``` + + Add Infisical repository + ``` + $ curl -1sLf \ + 'https://dl.cloudsmith.io/public/infisical/infisical-cli/setup.alpine.sh' \ + | sudo -E bash + ``` + + Then install CLI + ``` + $ apk update && apk add infisical + ``` + + + Add Infisical repository + ``` + $ curl -1sLf \ + 'https://dl.cloudsmith.io/public/infisical/infisical-cli/setup.rpm.sh' \ | sudo -E bash + ``` + + Then install CLI + ``` + $ yum install infisical + ``` + + + Add Infisical repository + + ``` + $ curl -1sLf \ + 'https://dl.cloudsmith.io/public/infisical/infisical-cli/setup.deb.sh' \ + | sudo -E bash + ``` - $ sudo apk add infisical - - $ infisical --help - ``` - - - - ``` - Add Infisical apt repo - $ echo "deb [trusted=yes] https://apt.fury.io/infisical/ /" | tee -a /etc/apt/sources.list.d/infisical.list - - Add prerequisites - $ apt update && apt -y curl ca-certificates sudo - - Install infisical cli - $ sudo apt update && apt install infisical + Then install CLI + ``` + $ apt-get update && apt-get install -y infisical + ``` - To make sure the CLI has been installed, you may run this command. - $ infisical --version - ``` - + + ## Usage Once you have the CLI installed in your system, follow the guide to login and sync your first project.