|
28 | 28 | \section{
|
29 | 29 | \title{Install Fly}
|
30 | 30 |
|
31 |
| - Next, install the \reference{fly-cli} by downloading it from the web UI and |
32 |
| - \reference{fly-login}{login} to your local Concourse as the \code{test} user: |
33 |
| - |
34 |
| - \titled-codeblock{Unix}{bash}{{ |
35 |
| - # MacOS |
36 |
| - $ curl 'http://localhost:8080/api/v1/cli?arch=amd64&platform=darwin' -o fly \\ |
37 |
| - && chmod +x ./fly && mv ./fly /usr/local/bin/ |
38 |
| - # Linux |
39 |
| - $ curl 'http://localhost:8080/api/v1/cli?arch=amd64&platform=linux' -o fly \\ |
40 |
| - && chmod +x ./fly && mv ./fly /usr/local/bin/ |
41 |
| - |
42 |
| - $ fly -t tutorial login -c http://localhost:8080 -u test -p test |
43 |
| - logging in to team 'main' |
| 31 | + Next, install the \reference{fly-cli} by downloading it from the web UI. |
| 32 | + Following the install steps for your OS: |
44 | 33 |
|
45 |
| - target saved |
| 34 | + \titled-codeblock{Linux}{bash}{{ |
| 35 | + curl 'http://localhost:8080/api/v1/cli?arch=amd64&platform=linux' -o fly |
| 36 | + chmod +x ./fly |
| 37 | + mv ./fly /usr/local/bin/ |
46 | 38 | }}
|
47 | 39 |
|
48 |
| - \titled-codeblock{Powershell One-liner}{bash}{{{ |
49 |
| - # Windows (Powershell) |
50 |
| - % $concoursePath = 'C:\concourse\'; mkdir $concoursePath; ` |
| 40 | + \titled-codeblock{MacOS}{bash}{{ |
| 41 | + curl 'http://localhost:8080/api/v1/cli?arch=amd64&platform=darwin' -o fly |
| 42 | + chmod +x ./fly |
| 43 | + mv ./fly /usr/local/bin/ |
| 44 | + }} |
| 45 | + |
| 46 | + \titled-codeblock{Windows (Powershell One-liner)}{bash}{{{ |
| 47 | + $concoursePath = 'C:\concourse\'; mkdir $concoursePath; ` |
51 | 48 | [Environment]::SetEnvironmentVariable('PATH', "$ENV:PATH;${concoursePath}", 'USER'); `
|
52 | 49 | $concourseURL = 'http://localhost:8080/api/v1/cli?arch=amd64&platform=windows'; `
|
53 | 50 | Invoke-WebRequest $concourseURL -OutFile "${concoursePath}\fly.exe"
|
54 | 51 | }}}
|
55 | 52 |
|
56 |
| - \titled-codeblock{flyinstall.ps1}{bash}{{{ |
57 |
| - # -- Desired fly.exe location ----------- |
58 |
| - $concoursePath = 'C:\concourse\' |
59 |
| - mkdir $concoursePath |
| 53 | + Use \reference{fly-login}{\code{fly login}} to log into your local |
| 54 | + Concourse as the \code{test} user: |
60 | 55 |
|
61 |
| - # -- Sets User Env Variable ------------- |
62 |
| - [Environment]::SetEnvironmentVariable('PATH', "$ENV:PATH;${concoursePath}", 'USER') |
| 56 | + \codeblock{bash}{{{ |
| 57 | + fly -t tutorial login -c http://localhost:8080 -u test -p test |
| 58 | + }}} |
63 | 59 |
|
64 |
| - # -- Sets System Env Variable ----------- |
65 |
| - # [Environment]::SetEnvironmentVariable("PATH", "$ENV:PATH;${concoursePath}", "MACHINE") |
| 60 | + You've successfully logged in if you see the following output: |
66 | 61 |
|
67 |
| - # -- Download fly.exe ------------------- |
68 |
| - $concourseURL = 'http://localhost:8080/api/v1/cli?arch=amd64&platform=windows' |
69 |
| - Invoke-WebRequest $concourseURL -OutFile "${concoursePath}\fly.exe" |
| 62 | + \codeblock{bash}{{{ |
| 63 | + logging in to team 'main' |
| 64 | + |
| 65 | + target saved |
70 | 66 | }}}
|
71 | 67 |
|
72 | 68 | You'll notice that every \code{fly} command in this tutorial has to have the
|
|
0 commit comments