Skip to content

Commit 8572c4e

Browse files
authored
Merge pull request #537 from concourse/fly-install-feedback
incorporate feedback about fly install steps
2 parents 7412014 + 8eb05b0 commit 8572c4e

File tree

1 file changed

+24
-28
lines changed

1 file changed

+24
-28
lines changed

lit/docs/getting-started/quickstart.lit

+24-28
Original file line numberDiff line numberDiff line change
@@ -28,45 +28,41 @@
2828
\section{
2929
\title{Install Fly}
3030

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:
4433

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/
4638
}}
4739

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; `
5148
[Environment]::SetEnvironmentVariable('PATH', "$ENV:PATH;${concoursePath}", 'USER'); `
5249
$concourseURL = 'http://localhost:8080/api/v1/cli?arch=amd64&platform=windows'; `
5350
Invoke-WebRequest $concourseURL -OutFile "${concoursePath}\fly.exe"
5451
}}}
5552

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:
6055

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+
}}}
6359

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:
6661

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
7066
}}}
7167

7268
You'll notice that every \code{fly} command in this tutorial has to have the

0 commit comments

Comments
 (0)