How do I interact with IPFS desktop from the command line?

ipfs add and ipfs pin do not show up on IPFS desktop files list.

The desktop files list will show files in your MFS! Try something like:

ipfs files cp /ipfs/$(echo "Hello world" | ipfs add -Q) /hello

That’ll add a file named “hello” to your MFS directory with the contents of “Hello World”.