Where can I find the complete list of options that I can pass on for each nix commands?

https://discourse.nixos.org/t/direnv-doesnt-accept-flake-config/27743/2

As you can see from the aforementioned topic, some options cannot be passed even though it is listed in the manual or --help. Where can I find the complete list of options that I can pass on for each nix commands?

Specifically, I want to know whether options that can be passed to nix print-dev-env can also be passed to nix flake archive. It is used in the following pull request. https://github.com/nix-community/nix-direnv/pull/350#issuecomment-1577324060

You won’t be able to find a list outside of the documentation. If it’s incorrect then that’s a bug.

You could try the options, and report any inconsistencies upstream?