Search code examples
command-linestreamminio

Stream object from MinIO using command line (mcli)


I'm using the command line tool of MinIO (mcli). I want to download a file/folder and directly pipe it into zip and something like

mcli get myinstance/output/file.csv | zip myfile.zip -

but I only find options to pipe a stream TO MinIO not FROM. Is there something like that without having an intermediate step of saving the data to the harddrive?


Solution

  • can you try with this command mcli cat alias/bucket/object | zip myfile.zip - ?