Is there a macOS equivalent of the Windows assoc command?
No. Apple file mapping is implemented very differently than windows does it. The file metadata has many variables that affect launch services and mapping a particular file to a particular app.