For the nvme command, you need to install the nvme-cli package. In Debian, at least, it's called nvme-cli. Not sure about other distributions. If it's apt-based, try "apt search nvme", if it's yum-based, try "yum search nvme"
As far as adding quirks, they're in this file in the Linux kernel...