kubectl Command Builder
← all tools
Build kubectl commands visually. Pick a verb, target, and flags — get a copyable command.
kubectl get
Copy
Verb
Target
Resource
Name
(optional)
Namespace
--all-namespaces (-A)
Query options
Label selector (-l)
Field selector
Output (-o)
default
wide
yaml
json
name
jsonpath
custom-columns
JSONPath expression
Custom columns
--watch (-w)
Log options
Tail lines
Since
Container
--follow (-f)
--previous (-p)
Exec options
Container
Command
Appears after
--
in the command.
--stdin (-i)
--tty (-t)
Manifest
Filename (-f)
If set, takes precedence over Resource/Name.
--recursive (-R)
--server-side
--dry-run
off
client
server
none
Delete options
--grace-period
--cascade
default (background)
background
foreground
orphan
--force
Scale options
--replicas
Rollout action
Action
status
history
restart
undo
pause
resume
Port forward
Local port
Remote port
Run options
--image
▸ Advanced (context, kubeconfig)
--context
--kubeconfig
Examples
Copied