Create a simple transaction | --out-file protocol.json NOT WORK

i followed the DOCS and yet when i get to this part and add in the below code its not working

cardano-cli query protocol-parameters
–mainnet
–out-file protocol.json

https://docs.cardano.org/projects/cardano-node/en/latest/stake-pooloperations/simple_transaction.html

no such file get added, all i did was follow the docs and the lesson videos and it will not work as per the docs.

yes, docs a little bit outdated - so if does not work a command it is probably due to that missing the --allegra-era flag

cardano-cli query protocol-parameters \
    --mainnet \
    --allegra-era \
    --out-file protocol.json