Skip to content

Commit

Permalink
docs: image example
Browse files Browse the repository at this point in the history
  • Loading branch information
SgtPooki committed Apr 2, 2024
1 parent 4d2a1cd commit 43dc632
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,15 @@ To fetch a resource, simply provide the resource URL as follows:
This example shows how you can fetch a "hello world" CID from peers using bitswap. (note that `-t false` is disabling trustless gateway usage)

```
npm i -g @sgtpooki/helia-verified-fetch-cli
helia-verified-fetch-cli ipfs://bafkqaddimvwgy3zao5xxe3debi --debug 'helia*,helia*:trace' --data ~/tmp/hvf-data -t false
```

### XKCD image example

```
helia-verified-fetch-cli 'ipfs://QmdmQXB2mzChmMeKY47C43LxUdg1NDJ5MWcKMKxDu7RgQm/1 - Barrel - Part 1/1 - Barrel - Part 1.png' --data ~/tmp/hvf-data > file.png && open file.png
```

## Options

- `--data, -d`: Specify the directory to persist data/blockstore. By default, data is stored in-memory and will not persist between requests.
Expand Down

0 comments on commit 43dc632

Please sign in to comment.