Skip to content

Commit 9703385

Browse files
committed
fix: config the subgraph
1 parent 4e483f8 commit 9703385

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/cli/src/commands/connect.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export function connectCommand(): Command {
5858
"-tg, --the-graph-gql <url>",
5959
"The url to the graph gql api (SETTLEMINT_THE_GRAPH_GQL_URL environment variable)",
6060
)
61-
.option("-ds, --default-subgraph", "Use the default subgraph (starterkits)")
61+
.option("-sub, --subgraph <name>", "The name of the subgraph to use (SETTLEMINT_SUBGRAPH environment variable)")
6262
.option(
6363
"-h, --hasura-gql <url>",
6464
"The url to the hasura gql api (SETTLEMINT_HASURA_GQL_URL environment variable)",
@@ -98,7 +98,7 @@ export function connectCommand(): Command {
9898
defaultApplication,
9999
authSecret,
100100
userWallet,
101-
defaultSubgraph,
101+
subgraph,
102102
customDeployment,
103103
}) => {
104104
printAsciiArt();
@@ -326,7 +326,8 @@ export function connectCommand(): Command {
326326
},
327327
],
328328
noneOption: false,
329-
cliParamValue: defaultSubgraph ? "starterkits" : undefined,
329+
cliParamValue: subgraph,
330+
envValue: process.env.SETTLEMINT_SUBGRAPH,
330331
configValue: configApplication?.subgraphName,
331332
validate: (value) => !!value?.trim(),
332333
message: "Select the subgraph to use",

0 commit comments

Comments
 (0)