I've created a cheatsheet to keep track of the kubectl commands I often forget, and I'm sharing it here for anyone who might find it useful. You can check it out at this link: [kubectl cheatsheet](https://github.com/maryamtb/rook/blob/main/community-notes/kubectl.md). I'm looking for suggestions on anything I should add or remove to improve it!
5 Answers
Check this out: [kubectl cheatsheet](https://devoriales.github.io/cheatsheets/kubectl-cheatsheet/#/). It's way more comprehensive than what you have! Mine is more tailored for daily use, but I appreciate the heads-up about this one.
Thanks a ton for sharing this! It's really helpful.
You should definitely add the command `kubectl cp`. It's super handy for copying files to and from containers! You can find more details here: [kubectl cp documentation](https://kubernetes.io/docs/reference/kubectl/generated/kubectl_cp/)
Good call, just added it. Thanks!
If you're looking for alternatives, maybe try using k9s for a while. It's quite user-friendly, but you'll still need to drop back to kubectl for certain commands like `cp` and `apply` unless you set them up as plugins in the config YAML. I’d love to see a k9s cheatsheet from someone who's more experienced with it!
I find `kubectl explain` to be one of my most-used commands. While I often rely on k9s or GitOps for a lot of tasks, that command is a game changer!
I haven’t tried `kubectl explain` yet, but I just did and will add it to the list—thanks for the suggestion! I might lean towards k9s eventually, but we'll see how my muscle memory holds up.

Glad it helped! I’m gathering more cheatsheets in the repo, so if you have any to add or want to see more (I also have one for AWS CLI), feel free to contribute!