← Back
SIGNAL SERIES · REFERENCE

Command Cheatsheet

Every command used across the labs and guides, grouped by tool. Copy-paste ready; details live in the linked chapters.
Git
npm / Builds
Docker / GHCR
Jenkins (Compose lab)
Jenkins backup
V4 · 2026 · REFERENCE · verified 2026-09-18
Contents

Table of Contents

8 sheets
How to use this book legend
NOTE · context
KEY · must retain
WATCH OUT · gotcha
VERIFIED · check
NOTERead cover to cover once, then use the Contents to jump. Every chapter ends with a 🎓 EXAM box — if you can answer it cold, move on.
📘 Command Cheatsheet · By Nabawy— 2 —Start ▶
REFERENCE

Git

03
git checkout -b feat/x      # short branch, merge daily
git push -u origin feat/x
gh pr create --fill         # PR with CI gate

See also: Git, Branching & Pull Requests.

📘 Command Cheatsheet · By Nabawy— 3 —▤ TOC Next
REFERENCE

npm / Builds

04
npm ci                      # lockfile-exact install (CI only)
npm test
./gradlew build             # wrapper pins toolchain

See also: Build Systems.

📘 Command Cheatsheet · By Nabawy— 4 —▤ TOC ◀ Prev · Next
REFERENCE

Docker / GHCR

05
docker build -t ghcr.io/OWNER/APP:sha-SHORT .
docker push ghcr.io/OWNER/APP:sha-SHORT
docker pull ghcr.io/OWNER/APP:sha-SHORT   # same digest everywhere

See also: Artifact Management.

📘 Command Cheatsheet · By Nabawy— 5 —▤ TOC ◀ Prev · Next
REFERENCE

Jenkins (Compose lab)

06
docker compose up -d
docker exec jenkins cat /var/jenkins_home/secrets/initialAdminPassword
docker compose stop jenkins          # before backup
docker compose down -v               # destroy everything

See also: Lab 06, Lab 08.

📘 Command Cheatsheet · By Nabawy— 6 —▤ TOC ◀ Prev · Next
REFERENCE

Jenkins backup

07
docker run --rm -v LAB_jenkins_home:/data -v "$PWD":/out alpine \
  tar czf /out/jenkins-backup.tar.gz -C /data .

See also: Jenkins Advanced.

📘 Command Cheatsheet · By Nabawy— 7 —▤ TOC ◀ Prev · Next
REFERENCE

GitHub Actions snippets

08
runs-on: ubuntu-latest
needs: build                # DAG edge
permissions: { packages: write }
environment: production     # approval gate

See also: GitHub Actions.

📘 Command Cheatsheet · By Nabawy— 8 —▤ TOC ◀ Prev · Next
REFERENCE

Interview Notes

09
  • Reproduce any pipeline in this file from memory: trigger, build, gate, promote, rollback.
  • Which snippet pins versions — and what breaks first when nothing is pinned.
  • Where the approval gate lives in each platform's snippet, and what happens without it.
📘 Command Cheatsheet · By Nabawy— 9 —▤ TOC ◀ Prev · Next
REFERENCE

Related Topics

10
  • [Topic Index](../TOPIC_INDEX.md)
  • [Glossary](../GLOSSARY.md)
📘 Command Cheatsheet · By Nabawy— 10 —▤ TOC ◀ Prev · ▲ Top

⏭️ Cycle back: Start Here: Foundations, Git & CI

Related books