Skip to content

Commit

Permalink
Split by os
Browse files Browse the repository at this point in the history
  • Loading branch information
RetGal committed Aug 21, 2024
1 parent b62d024 commit c90ec2c
Show file tree
Hide file tree
Showing 3 changed files with 97 additions and 52 deletions.
59 changes: 59 additions & 0 deletions content/en/setup/01/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
---
title: "Installation for Linux"
weight: 1
type: docs
sectionnumber: 1
---

## Installation for Linux

Download and install the latest `dagger` version:

```bash
curl -L https://dl.dagger.io/dagger/install.sh | BIN_DIR=$HOME/.local/bin sh
```

Verify the installation:

```bash
which dagger
dagger version
```

This should output something similar to:

```
~/.local/bin/dagger
dagger v0.12.5 (registry.dagger.io/engine) linux/amd64
```


### macOS

Install the latest `dagger` version using `homebrew`:

```bash
brew install dagger/tap/dagger
```

Or using `sh` and `curl`:

```bash
cd /usr/local
curl -L https://dl.dagger.io/dagger/install.sh | sh
```

Verify the installation:

```bash
which dagger
dagger version
```

This should output something similar to:

```
/opt/homebrew/bin/dagger
dagger v0.12.5 (registry.dagger.io/engine:v0.12.5) darwin/arm64
```

36 changes: 36 additions & 0 deletions content/en/setup/02/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
title: "Installation for macOS"
weight: 2
type: docs
sectionnumber: 1
---

## Installation for macOS

Install the latest `dagger` version using `homebrew`:

```bash
brew install dagger/tap/dagger
```

Or using `sh` and `curl`:

```bash
cd /usr/local
curl -L https://dl.dagger.io/dagger/install.sh | sh
```

Verify the installation:

```bash
which dagger
dagger version
```

This should output something similar to:

```
/opt/homebrew/bin/dagger
dagger v0.12.5 (registry.dagger.io/engine:v0.12.5) darwin/arm64
```

54 changes: 2 additions & 52 deletions content/en/setup/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,56 +9,6 @@ menu:

## Install the Dagger CLI


### Linux

Download and install the latest `dagger` version:

```bash
curl -L https://dl.dagger.io/dagger/install.sh | BIN_DIR=$HOME/.local/bin sh
```

Verify the installation:

```bash
which dagger
dagger version
```

This should output something similar to:

```
~/.local/bin/dagger
dagger v0.12.5 (registry.dagger.io/engine) linux/amd64
```


### macOS

Install the latest `dagger` version using `homebrew`:

```bash
brew install dagger/tap/dagger
```

Or using `sh` and `curl`:

```bash
cd /usr/local
curl -L https://dl.dagger.io/dagger/install.sh | sh
```

Verify the installation:

```bash
which dagger
dagger version
```

This should output something similar to:

```
/opt/homebrew/bin/dagger
dagger v0.12.5 (registry.dagger.io/engine:v0.12.5) darwin/arm64
```
This guide shows you how to install the `dagger` CLI.
Follow the instructions on the subsequent pages to complete the setup on your operating system of choice.

0 comments on commit c90ec2c

Please sign in to comment.