@@ -30,6 +30,7 @@ Options:
30
30
-l --version-label <label> Version label used for the deployment
31
31
-h, --help Show usage information
32
32
-i, --ipfs <node> Upload build results to an IPFS node (default: ${ DEFAULT_IPFS_URL } )
33
+ --debug-fork ID of a remote subgraph whose store will be GraphQL queried
33
34
-o, --output-dir <path> Output directory for build results (default: build/)
34
35
--skip-migrations Skip subgraph migrations (default: false)
35
36
-w, --watch Regenerate types when subgraph files change (default: false)
@@ -96,6 +97,7 @@ module.exports = {
96
97
skipMigrations,
97
98
w,
98
99
watch,
100
+ debugFork,
99
101
} = toolbox . parameters . options
100
102
101
103
// Support both long and short option variants
@@ -189,6 +191,8 @@ module.exports = {
189
191
return
190
192
}
191
193
194
+ // TODO: validate that debugFork is a valid IPFS hash
195
+
192
196
let protocol
193
197
try {
194
198
// Checks to make sure deploy doesn't run against
@@ -264,7 +268,7 @@ module.exports = {
264
268
// `Failed to deploy to Graph node ${requestUrl}`,
265
269
client . request (
266
270
'subgraph_deploy' ,
267
- { name : subgraphName , ipfs_hash : ipfsHash , version_label : versionLabel } ,
271
+ { name : subgraphName , ipfs_hash : ipfsHash , version_label : versionLabel , debug_fork : debugFork } ,
268
272
async ( requestError , jsonRpcError , res ) => {
269
273
if ( jsonRpcError ) {
270
274
spinner . fail (
0 commit comments