Skip to content

Commit

Permalink
Update docs for cli install to use tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
maidul98 committed Nov 18, 2022
1 parent 688aa85 commit 94abacb
Showing 1 changed file with 74 additions and 65 deletions.
139 changes: 74 additions & 65 deletions docs/installCLI.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<Accordion title="Install on MacOS ">
Use [brew](https://brew.sh/) package manager

```
$ brew install infisical/get-cli/infisical
$ infisical --version
```

To update:

```
$ brew upgrade infisical
```
</Accordion>

<Accordion title="Install on Windows ">
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
```
</Accordion>


<Accordion title="Install on RedHat/CentOS">
```
$ 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
```
</Accordion>

<Accordion title="Install on Alpine">
```
$ apk add --no-cache bash sudo curl
$ curl -1sLf \
'https://dl.cloudsmith.io/public/infisical/infisical-cli/setup.alpine.sh' \
<Tabs>
<Tab title="MacOS">
Use [brew](https://brew.sh/) package manager

```
$ brew install infisical/get-cli/infisical
$ infisical --version
```

To update:

```
$ brew upgrade infisical
```
</Tab>
<Tab title="Windows">
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
```
</Tab>
<Tab title="Alpine">
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
```
</Tab>
<Tab title="RedHat/CentOs/Amazon">
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
```
</Tab>
<Tab title="Debian/Ubuntu">
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
```
</Accordion>

<Accordion title="Install on Debian/Ubuntu">
```
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
```
</Accordion>
</Tab>
</Tabs>

## Usage
Once you have the CLI installed in your system, follow the guide to login and sync your first project.
Expand Down

0 comments on commit 94abacb

Please sign in to comment.