retrieve
Retrieve a file or directory by its CID from the Storacha network.
Downloads content from a space and writes it to the specified output path.
Your agent must be authorized to space/content/retrieve before running this command. This typically delegated to any account granted access to a space.
Aliases: retrieve, get
Usage
Arguments
| Argument | Description |
|---|---|
space |
Space DID or name |
content-path |
CID or content path to retrieve |
output-path |
Local path to write the retrieved content |
The content-path supports several formats:
/ipfs/<cid>[/<subpath>]ipfs://<cid>[/<subpath>]<cid>[/<subpath>]
Using a subpath retrieves a specific file or directory beneath the root CID.
Example
Retrieve data at a root CID:
Retrieve a file at a subpath: