Here are the commands I use for my validator, I try my best to keep this updated as changes/improvements happen. Feel free to copy and make your own script.

https://gitlab.com/davidfeder/validatorscript