Dev loop
skaffold dev
Build, deploy, watch, tail logs
Ctrl+C stops it and cleans up the deployment unless
--cleanup=false.
skaffold dev --port-forward=services
Forward service ports locally
The dev default is user: only ports listed under portForward
in skaffold.yaml.
skaffold dev --no-prune --cleanup=false
Keep resources after exit
skaffold dev --auto-build=false
Rebuild only on request
skaffold dev --trigger=polling
Poll for changes
Values: notify (default), polling, manual. Use polling on
network or container file systems.
skaffold dev -w <image>
Watch only matching images
skaffold dev --skip-tests
Skip tests after build
skaffold dev --keep-running-on-failure
Suspend instead of exit on error
skaffold dev --status-check=false
Do not wait for rollout
skaffold dev --tail=false
Do not stream logs
Run, build & deploy
skaffold run
Build and deploy once
skaffold run --tail
Deploy and stream logs
skaffold build
Build images only
skaffold build -q
Print only built image names
skaffold build --push
Push built images
skaffold build --file-output <file>
Save built tags as JSON
skaffold build --dry-run
Compute tags without building
skaffold deploy -a <file>
Deploy pre-built images
Pair with build --file-output for a build once, deploy many
pipeline.
skaffold deploy -i <name>=<tag>
Deploy given image tag
skaffold run -b <substr>
Build only matching artifacts
skaffold run --force
Recreate resources if needed
May cause downtime.
skaffold test
Run tests on built images
skaffold apply <dir>
Apply hydrated manifests
Config & profiles
skaffold init
Generate skaffold.yaml
Detects Dockerfiles and manifests and asks which to use.
skaffold init --generate-manifests
Also create basic manifests
skaffold init -k <glob>
Pick Kubernetes manifests
skaffold init -a <Dockerfile>=<image>
Map Dockerfile to image
skaffold init --compose-file <file>
Start from docker-compose
skaffold fix
Print config in newest schema
skaffold fix --overwrite
Upgrade skaffold.yaml in place
skaffold diagnose
Inspect effective config
skaffold diagnose --yaml-only
Print merged skaffold.yaml
skaffold dev -f <file>
Use another config file
skaffold dev -p <profile>
Activate a profile
skaffold dev -p <a>,-<b>
Enable a, disable b
skaffold dev -m <module>
Select config module
skaffold config set <key> <value>
Set a global option
Render & delete
skaffold render
Print rendered manifests
skaffold render -o <file>
Write manifests to a file
skaffold render --offline
Render without a cluster
skaffold render --digest-source=none
Keep tags, skip digests
skaffold render --set <key>=<val>
Override templated field
skaffold render -i <name>=<tag>
Render with given tag
skaffold delete
Remove deployed resources
skaffold delete --dry-run
List what would be deleted