File tree 3 files changed +42
-0
lines changed
3 files changed +42
-0
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,20 @@ scoop bucket add auth0 https://github.com/auth0/scoop-auth0-cli.git
49
49
scoop install auth0
50
50
```
51
51
52
+ Install via [ Powershell] ( https://learn.microsoft.com/en-us/powershell/ )
53
+
54
+ ``` powershell
55
+ #fetch latest release information
56
+ $latestRelease = Invoke-RestMethod -Uri "https://api.github.com/repos/auth0/auth0-cli/releases/latest"
57
+ $latestVersion = $latestRelease.tag_name
58
+ $version = $latestVersion -replace "^v"
59
+ # Download the binary to the current folder
60
+ Invoke-WebRequest -Uri "https://github.com/auth0/auth0-cli/releases/download/${latestVersion}/auth0-cli_${version}_Windows_x86_64.zip" -OutFile ".\auth0.zip"
61
+ Expand-Archive ".\auth0.zip" .\
62
+ # To be able to run the binary from any directory, make sure you add it to your $PATH
63
+ [System.Environment]::SetEnvironmentVariable('PATH', $Env:PATH + ";${pwd}")
64
+ ```
65
+
52
66
### Linux
53
67
54
68
Install via [ cURL] ( https://curl.se/ ) :
Original file line number Diff line number Diff line change @@ -22,6 +22,21 @@ Install via [Scoop](https://scoop.sh/):
22
22
scoop bucket add auth0 https://github.com/auth0/scoop-auth0-cli.git && scoop install auth0
23
23
```
24
24
25
+ Install via [ Powershell] ( https://learn.microsoft.com/en-us/powershell/ )
26
+
27
+ ```
28
+ #fetch latest release information
29
+ $apiUrl = "https://api.github.com/repos/auth0/auth0-cli/releases/latest"
30
+ $latestRelease = Invoke-RestMethod -Uri $apiUrl
31
+ $latestVersion = $latestRelease.tag_name
32
+ $version = $latestVersion -replace "^v"
33
+ # Download the binary to the current folder
34
+ Invoke-WebRequest "https://github.com/auth0/auth0-cli/releases/download/${latestVersion}/auth0-cli_${version}_Windows_x86_64.zip" -OutFile ".\auth0.zip"
35
+ Expand-Archive ".\auth0.zip" .\
36
+ # To be able to run the binary from any directory, make sure you add it to your '$PATH'
37
+ [System.Environment]::SetEnvironmentVariable('PATH', $Env:PATH + ";${pwd}")
38
+ ```
39
+
25
40
### Linux
26
41
27
42
Install via [ cURL] ( https://curl.se/ ) :
Original file line number Diff line number Diff line change @@ -57,6 +57,19 @@ Install via [Scoop](https://scoop.sh/):
57
57
58
58
{{ wrapWithBackticks "scoop bucket add auth0 https://github.com/auth0/scoop-auth0-cli.git && scoop install auth0" }}
59
59
60
+ Install via [Powershell](https://learn.microsoft.com/en-us/powershell/)
61
+
62
+ {{ wrapWithBackticks ` + "`" + `#fetch latest release information
63
+ $apiUrl = "https://api.github.com/repos/auth0/auth0-cli/releases/latest"
64
+ $latestRelease = Invoke-RestMethod -Uri $apiUrl
65
+ $latestVersion = $latestRelease.tag_name
66
+ $version = $latestVersion -replace "^v"
67
+ # Download the binary to the current folder
68
+ Invoke-WebRequest "https://github.com/auth0/auth0-cli/releases/download/${latestVersion}/auth0-cli_${version}_Windows_x86_64.zip" -OutFile ".\auth0.zip"
69
+ Expand-Archive ".\auth0.zip" .\
70
+ # To be able to run the binary from any directory, make sure you add it to your '$PATH'
71
+ [System.Environment]::SetEnvironmentVariable('PATH', $Env:PATH + ";${pwd}")` + "`" + ` }}
72
+
60
73
### Linux
61
74
62
75
Install via [cURL](https://curl.se/):
You can’t perform that action at this time.
0 commit comments