kubectl create

Create resources imperatively

medium risk

interactive breakdown — edit the command and press Explain
$ 
⚠ Risks & cautions
What it does

Creates deployments, secrets, namespaces etc.

Common flags
FlagMeaning
--dry-run=client --dry-run=clientSimulate
-o yamlPrint the manifest
Examples
kubectl create deploy web --image=nginx --dry-run=client -o yamlGenerate YAML · explain & risk-check →
Related
kubectl apply
Open the full explainer →More in Kubernetes & Helm

Reference text is hand-written and may be incomplete — check man kubectl for your version. Test destructive commands on a non-production system first.