How to trigger "Get Info" for file using command line?
I don't think you can do this with a shell command, but you can use a shell script to run AppleScript, which can do it. See here:
https://stackoverflow.com/questions/24421803/open-info-window-in-finder-by-applescript
https://stackoverflow.com/questions/37231942/open-get-information-window-in-finder-by-applescript-again
For example:
osascript -e &quot;set aFile to (POSIX file \&quot;/Applications/Firefox.app\&quot;) as text&quot; \
          -e &quot;tell application \&quot;Finder\&quot; to open information window of file aFile&quot;

If you want to add in your bash or zsh profile:
getfileinfo() {
  local FILE=&quot;$1&quot;

  if [[ -r &quot;${FILE}&quot; ]]; then
    osascript &lt;&lt;EOF
set aFile to (POSIX file &quot;$FILE&quot;) as alias
tell application &quot;Finder&quot; to open information window of aFile
EOF
  fi
}