Skip to content

Commit 650760f

Browse files
committed
Adjust headings for CLI so that the table of contents renders correctly
1 parent 9e3f8ce commit 650760f

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

builder-cookbook/filecoin-pin/filecoin-pin-cli.md

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,25 @@ description: How to use the Filecoin Pin CLI to store and retrieve IPFS data on
66

77
## Get Started Now
88

9-
### 1. Setup Payments
9+
### Setup Payments
1010

1111
Configure permissions for automatic payment handling:
1212

1313
<figure><img src="../../.gitbook/assets/1 (2).png" alt=""><figcaption></figcaption></figure>
1414

15-
### 2. Upload Data
15+
### Upload Data
1616

1717
Upload your file with automatic funding:
1818

1919
<figure><img src="../../.gitbook/assets/2 (2).png" alt=""><figcaption></figcaption></figure>
2020

21-
### 3. Retrieve over an IPFS Gateway
21+
### Retrieve over an IPFS Gateway
2222

2323
Retrieve your data using the IPFS gateway:
2424

2525
<figure><img src="../../.gitbook/assets/3 (2).png" alt=""><figcaption></figcaption></figure>
2626

27-
### 4. Prove Storage
27+
### Prove Storage
2828

2929
Verify your data is stored with cryptographic proofs:
3030

@@ -86,11 +86,11 @@ cast --version
8686

8787
***
8888

89-
## Part 0: Wallet Setup from Scratch
89+
## Wallet Setup from Scratch
9090

9191
> **Note**: The `filecoin-pin` CLI expects a `PRIVATE_KEY` environment variable. This section shows initial setup.
9292
93-
### Step 0.1: Generate a New Wallet
93+
### Generate a New Wallet
9494

9595
Generate wallet using Foundry:
9696

@@ -100,15 +100,15 @@ cast wallet new
100100

101101
Save the private key and wallet address.
102102

103-
### Step 0.2: Get Testnet FIL
103+
### Get Testnet FIL
104104

105105
Get 100 tFIL from ChainSafe faucet (requires browser):
106106

107107
```bash
108108
open "https://faucet.calibnet.chainsafe-fil.io/funds.html"
109109
```
110110

111-
### Step 0.3: Get USDFC Stablecoin
111+
### Get USDFC Stablecoin
112112

113113
1. [Setup MetaMask with Filecoin Calibration](https://docs.filecoin.io/basics/assets/metamask-setup) (1-click import available)
114114
2. Import your private key to MetaMask
@@ -119,7 +119,7 @@ Final state: \~2 tFIL (gas) + 200 USDFC (storage payments)
119119

120120
***
121121

122-
### Step 0.4: Create Environment File
122+
### Create Environment File
123123

124124
> I put my private key on this repo for DEMO purposes. It is a TESTNET KEY. **NEVER USE YOUR PRIVATE KEY IN A REPOSITORY OR EXPOSE IT**.
125125
@@ -143,9 +143,11 @@ echo "RPC URL: $RPC_URL"
143143

144144
***
145145

146-
## Step 1: Setup Payments
146+
## Using the CLI
147147

148-
All commands in this section use the environment variables set in Part 0 (Step 0.4). If you're starting a new terminal session, reload them:
148+
### Setup Payments
149+
150+
All commands in this section use the environment variables set in [Create Environment File](#create-environment-file). If you're starting a new terminal session, reload them:
149151

150152
```bash
151153
source ~/.filecoin-pin-env
@@ -165,7 +167,7 @@ filecoin-pin payments setup --auto
165167
166168
***
167169

168-
### Step 2: Upload Data
170+
### Upload Data
169171

170172
Use `--auto-fund` flag to automatically handle payment deposits (v0.7.0+).
171173

@@ -192,7 +194,7 @@ filecoin-pin add demo.txt
192194

193195
***
194196

195-
### Step 4b: Upload Directory
197+
### Upload Directory
196198

197199
Package multiple files into a single CAR:
198200

@@ -218,7 +220,7 @@ filecoin-pin add --auto-fund my-data/
218220
219221
***
220222

221-
### Step 5: Prove Storage
223+
### Prove Storage
222224

223225
Get detailed information about a specific data set (this queries the blockchain directly) that includes proofs:
224226

@@ -305,7 +307,7 @@ Data set inspection complete
305307

306308
> 💡 **Note**: This command queries the smart contracts on-chain to retrieve all data set information. The data shown is live blockchain state, not cached data.
307309
308-
### Links
310+
## Links
309311

310312
* FAQ: [Frequently Asked Questions](faq.md)
311313
* Filecoin Pin Docs: [https://docs.filecoin.io/builder-cookbook/filecoin-pin](https://docs.filecoin.io/builder-cookbook/filecoin-pin)

0 commit comments

Comments
 (0)