Commands / kosa8 cloud files
kosa8 cloud files
List, download, upload and remove files in a cloud sandbox
Paths are absolute paths in the sandbox; /workspace is its working folder. get and put stream (no size cap through the API); link makes a presigned URL for one download or upload straight to the host (curl, a browser, CI).
Also known as: file, fs
Example
kosa8 cloud files ls sbx_abc /workspace kosa8 cloud files put sbx_abc ./data.csv /workspace/data.csv tar czf - src | kosa8 cloud files put sbx_abc - /workspace/src.tgz kosa8 cloud files get sbx_abc /workspace/out.json out.json kosa8 cloud files link sbx_abc /workspace/big.bin --ttl 5m
Subcommands
kosa8 cloud files getDownload a file to LOCAL (or -o FILE), else to stdout
kosa8 cloud files linkA presigned URL for one download (or --put upload) of PATH, straight to the host
kosa8 cloud files lsList a folder (default /workspace)
kosa8 cloud files mkdirMake a folder (and its parents)
kosa8 cloud files putUpload a local file (- for stdin) to PATH in the sandbox
kosa8 cloud files rmRemove a file, or a folder with -r