These command line parameters are in the documentation under section 9. QGIS Configuration (9.6.1. Command line and environment variables)
I just tested using QGIS 3.26.2 (on Linux) and it worked fine and loaded the specified project. If it does not work for you, please edit your question to provide more detail, such as exactly how you are trying to run the qgis --project projectfile
command and what does happen when you run it.