Properly rebuild a flagged package?

Hi,
Which is the right command to rebuild a flagged package after using checkrebuild???
Tell me if am wrong if am doing this : yay -S --rebuild “package”

Thank you

Yes, that is one way to rebuild an AUR package.

There are many ways so there is no single “correct” way to do it.

Thank you @dalto