Command referenceproducts
sorai products upload-file
Upload a file buyers get after paying, such as an ebook or a zip, to a product.
Large files go up in parts. The file is checked after it uploads, and its status turns from uploading to ready.
sorai products upload-file --file <path> --product-id <uuid> [flags]Flags
--file <path>(required): The file on this machine.--store <id|slug>: A store id or slug. Defaults toSORAI_STORE, the saved login's store, or the only store.--product-id <uuid>(required): The product's id, fromsorai products list.--version <int>: Which version of the file this is. Defaults to 1.--dry-run: Print what would be uploaded without uploading it.
Permissions
Needs a key with the catalog:write permission.
This command changes data. Run it with --dry-run first to see what it would do.

