Skip to content

Commit e7f90b9

Browse files
committed
Add install commands for linux & mac
1 parent 39a1da7 commit e7f90b9

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

docs/docs/getting-started/installation.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,18 @@ del "%Temp%\install-devspace.bat"
1919
**Note:** After running the install script, you should reopen the terminal window to refresh the environment variables.
2020

2121
### For Linux
22-
1. Run this install script with **root privileges**:
22+
1. Run the command:
2323
```bash
24-
tmpdir=$(dirname $(mktemp -u))
25-
curl -s "https://raw.githubusercontent.com/covexo/devspace/master/scripts/installer-linux.sh" >"$tmpdir/install-devspace.sh"
26-
"$tmpdir/install-devspace.sh" "/usr/bin/devspace"
27-
rm -r "$tmpdir"
24+
curl --silent "https://api.github.com/repos/covexo/devspace/releases/latest" | sed -nr 's!.*"(https://github.com[^"]*devspace-linux-amd64)".*!\1!p' | xargs -n 1 curl -L -o devspace && chmod +x devspace && sudo mv devspace /usr/local/bin
25+
```
26+
27+
### For Mac
28+
1. Run the command:
29+
```bash
30+
curl --silent "https://api.github.com/repos/covexo/devspace/releases/latest" | sed -nr 's!.*"(https://github.com[^"]*devspace-darwin-amd64)".*!\1!p' | xargs -n 1 curl -L -o devspace && chmod +x devspace && sudo mv devspace /usr/local/bin
2831
```
2932

3033
## Binary Download
3134
An alternative to the install scripts is to:
3235
1. download the latest release from the [GitHub releases page](https://github.com/covexo/devspace/releases)
33-
2. add the binary folder path to the PATH environment variable **OR** run `PATH_TO_YOUR_RELEASE_FILE install` with admin/root priveleges
36+
2. add the binary folder path to your PATH environment variable **OR** run `PATH_TO_YOUR_RELEASE_FILE install` with admin/root priveleges

0 commit comments

Comments
 (0)