Raspberry Pi os *lite* - pitop[3] sdk cli integration

Hello!
I have some sd cards with different os, one of them is a none-gui RP os lite, just cli.
how can I install just the cli stuff?

when I tried to install pi top coder (sudo apt install -y pt-coder) in ubuntu server
the rp got stack in a loop of trying to install matplotlib…

before i’m trying to install in RP OS LITE
do i need to follow this: https://knowledgebase.pi-top.com/knowledge/pi-top-and-raspberry-pi-os
or this: https://pi-top-pi-top-python-sdk.readthedocs-hosted.com/en/latest/getting_started.html

again my main goal is just using cli.
THANKS