Rustup: command not found

I am using Ubuntu Budgie 22.04 and I have installed rustup successfully using:
curl -sSf | sh
I have restarted my PC to allow Rust to be added to my system PATH automatically and I have even written, compiled && run the hello, world! program with success, but while trying to retrieve the docs using rustup doc the terminal gives me an error message:
rustup: command not found
How do I install the rustup command?

Check your path printenv PATH
Should contain .cargo/bin
ls -lh ~/.cargo/bin/rustup should show the program.

btw: restarts should not be required for this; in general opening a new shell or, worst case, logging out / logging back in should resolve path issues

Thanks, I didn't know this.

Thanks, your guidance helped me tackle the challenge