File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
packages/cli/src/commands Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff 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" ,
You can’t perform that action at this time.
0 commit comments