Life saving concourse commands

Arian Al Lami
2 min readJan 3, 2023

--

concourse

If you use concourse to run and update your pipeline you must know the below commands.

Note: in below commands for the variable i am using <> it means you should delete them and add the correct name that is relavent to your organisation.

Logout from concourse:

fly logout --all

Login in concourse:

fly -t <target-name> login -n <team-name> -c  <ulr of your concourse>

OR

fly -t test-target login -n test-team-name -c https:concourse-test.com

above code can also be written like below: because -t is short or target -c is short for the concourse-url and -n is short for the team-name

fly --target <target-name> login --team-name <team-name> --concourse-url <concourse url>

To see what targets are currently known to fly, run:

$ fly targets

This will show each target’s name, URL, and when its token expires.

Delete pipeline:

fly --target <target-name> destroy-pipeline --pipeline <name of the pipeline>

OR

fly --target test-target destroy-pipeline --pipeline test-pipeline-name

Add pipeline:

fly -t <target-name> set-pipeline -c <pipeline-file-saved-in-your-repo> -p <pipeline-name>

OR

fly -t test-target set-pipeline -c dev/ci/pipeline.yml -p test-pipeline

I hope the above are helpful I have used the above lots of time so decide to write about them to help others and and safe keeping too. You can read more about the concourse pipeline and find-out even more commands in concourse website

--

--

Arian Al Lami

Hi was Front End developer for 6 years, I am now Software Engineer since 5 years+ follow me so can share the tips and tricks I picked in all these years.