Platformio cli command for teensy configuration information

When I do a platformio build, in the output I get this info:

teensy_size: Memory Usage on Teensy 4.1:
teensy_size: FLASH: code:87524, data:9404, headers:8540 free for files:8020996
teensy_size: RAM1: variables:17152, code:84488, padding:13816 free for local variables:408832
teensy_size: RAM2: variables:12416 free for malloc/new:511872

Is there a cli command that will tell me the model, version, and memory config of the teensy? I need that info in a script.

Also is there a cli command that will scan i2c devices and tell me info about each one detected? (I know there’s an arduino program but I wanted a command that I can run on the raspberry pi side.)