Tool Hub

CLI チートシート

git/docker/kubectl/curl/find の一般的なコマンド検索可能なチートシート

34 commands

git
Show last 10 commits as one-line summaries
git log --oneline -10
git
Compact summary of changed files
git diff --stat
git
Save uncommitted changes with a label
git stash push -m 'wip'
git
Create and switch to new branch
git checkout -b feature/foo
git
Force-push safely (fails if remote moved)
git push origin HEAD --force-with-lease
git
Interactive rebase last 5 commits
git rebase -i HEAD~5
git
Visual branch graph
git log --all --graph --oneline
git
Show all HEAD movements (recovery from accidents)
git reflog
git
Who changed lines 10-20 in file.ts
git blame file.ts -L 10,20
git
Binary search for the commit that introduced a bug
git bisect start && git bisect bad && git bisect good <sha>
docker
List all containers in tabular format
docker ps -a --format 'table {{.ID}}\t{{.Image}}\t{{.Status}}'
docker
Open a shell inside a running container
docker exec -it <container> sh
docker
Follow container logs (tail -f)
docker logs -f <container>
docker
Remove all unused images, containers, networks, and volumes
docker system prune -a --volumes
docker
Rebuild images and start services in detached mode
docker compose up -d --build
docker
One-shot container resource usage
docker stats --no-stream
docker
Container state with jq
docker inspect <container> | jq '.[].State'
kubectl
Watch pod status in a namespace
kubectl get pods -n <namespace> -w
kubectl
Follow logs from a specific container
kubectl logs -f <pod> -c <container>
kubectl
Open a shell in a pod
kubectl exec -it <pod> -- /bin/sh
kubectl
Detailed pod info (events, conditions)
kubectl describe pod <pod>
kubectl
Preview changes without applying
kubectl apply -f manifest.yaml --dry-run=client -o yaml
kubectl
Watch deployment rollout
kubectl rollout status deployment/<name>
kubectl
Rollback to previous deployment
kubectl rollout undo deployment/<name>
curl
GET with response headers shown
curl -i https://api.example.com
curl
POST JSON body
curl -X POST -H 'Content-Type: application/json' -d '{"k":"v"}' https://api.example.com
curl
Follow redirects, save to file
curl -L https://x.com -o output.html
curl
Measure total time, discard body
curl -w '\ntime_total: %{time_total}s\n' -o /dev/null -s https://x.com
curl
HTTP basic auth
curl -u user:pass https://x.com
find
All .ts files excluding node_modules
find . -name '*.ts' -not -path '*/node_modules/*'
find
Files larger than 100 MB
find . -size +100M -type f
find
Files modified in the last 7 days
find . -mtime -7 -type f
find
Delete all .log files (be careful!)
find . -name '*.log' -delete
find
All .py files containing 'TODO'
find . -type f -name '*.py' -exec grep -l 'TODO' {} +

使い方

  1. 説明またはフラグ名でコマンドをフィルタリングするため、検索フィールドにキーワードを入力します。
  2. ツールタブ (すべて、git、docker、kubectl、curl、find) を使用して、結果を特定の CLI に絞り込みます。
  3. 各行に対応するコマンド行を確認し、ツールバッジ、平易な英語の説明、正確なコマンドが表示されます。
  4. 任意の行のコピーボタンをクリックして、コマンドを直接クリップボードにコピーします。

  • git フィルタがアクティブな「rebase」を入力すると、git rebase --onto や git rebase -i HEAD~3 などのコマンドが表示されます。
  • 「prune」を入力すると、すべてが選択されているときに docker system prune -af と git remote prune origin が並んで表示されます。

本番環境で使用する前に出力を検証してください。保証なし — 詳細は 利用規約.