gio list prints the contents of a location through the GVfs layer, which also understands remote schemes like sftp:// and trash://. It is ls for anything the file manager can open. Use -a attributes to request metadata columns.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.