@settlemint/sdk-cli 2.2.0-prc00b96af → 2.2.0-prdfa9d68b

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -131,7 +131,7 @@ settlemint platform create --help
131
131
 
132
132
  To use the SettleMint CLI, you first need to authenticate with the platform. Create a Personal Access Token (PAT) on the SettleMint platformand paste it when prompted by the login command.
133
133
 
134
- Visit [the documentation](https://console.settlemint.com/documentation) to learn how to create a Personal Access Token.
134
+ Visit [the documentation](https://console.settlemint.com/documentation/platform-components/security-and-authentication/personal-access-tokens) to learn how to create a Personal Access Token.
135
135
 
136
136
  Then run the login command and paste your token when prompted:
137
137
 
package/dist/cli.js CHANGED
@@ -245345,7 +245345,7 @@ function pruneCurrentEnv(currentEnv, env2) {
245345
245345
  var package_default = {
245346
245346
  name: "@settlemint/sdk-cli",
245347
245347
  description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
245348
- version: "2.2.0-prc00b96af",
245348
+ version: "2.2.0-prdfa9d68b",
245349
245349
  type: "module",
245350
245350
  private: false,
245351
245351
  license: "FSL-1.1-MIT",
@@ -245394,8 +245394,8 @@ var package_default = {
245394
245394
  "@inquirer/input": "4.1.9",
245395
245395
  "@inquirer/password": "4.0.12",
245396
245396
  "@inquirer/select": "4.2.0",
245397
- "@settlemint/sdk-js": "2.2.0-prc00b96af",
245398
- "@settlemint/sdk-utils": "2.2.0-prc00b96af",
245397
+ "@settlemint/sdk-js": "2.2.0-prdfa9d68b",
245398
+ "@settlemint/sdk-utils": "2.2.0-prdfa9d68b",
245399
245399
  "@types/node": "22.15.3",
245400
245400
  "@types/semver": "7.7.0",
245401
245401
  "@types/which": "3.0.4",
@@ -246587,20 +246587,21 @@ var CommandError = class extends Error {
246587
246587
  }
246588
246588
  };
246589
246589
  async function executeCommand(command, args, options) {
246590
- const child = spawn(command, args, { env: { ...process.env, ...options?.env } });
246590
+ const { silent, ...spawnOptions } = options ?? {};
246591
+ const child = spawn(command, args, { ...spawnOptions, env: { ...process.env, ...options?.env } });
246591
246592
  process.stdin.pipe(child.stdin);
246592
246593
  const output = [];
246593
246594
  return new Promise((resolve, reject) => {
246594
246595
  child.stdout.on("data", (data) => {
246595
246596
  const maskedData = maskTokens2(data.toString());
246596
- if (!options?.silent) {
246597
+ if (!silent) {
246597
246598
  process.stdout.write(maskedData);
246598
246599
  }
246599
246600
  output.push(maskedData);
246600
246601
  });
246601
246602
  child.stderr.on("data", (data) => {
246602
246603
  const maskedData = maskTokens2(data.toString());
246603
- if (!options?.silent) {
246604
+ if (!silent) {
246604
246605
  process.stderr.write(maskedData);
246605
246606
  }
246606
246607
  output.push(maskedData);
@@ -251522,6 +251523,7 @@ var Xe2 = o7(({ config: e10, path: t8 }, s7 = ze2()) => {
251522
251523
  async function codegenTsconfig(env2, thegraphSubgraphNames) {
251523
251524
  const tsconfig = he4();
251524
251525
  if (!tsconfig?.config) {
251526
+ note("No tsconfig found, skipping codegen for hasura, portal, thegraph and blockscout", "warn");
251525
251527
  return {
251526
251528
  hasura: false,
251527
251529
  portal: false,
@@ -253202,7 +253204,20 @@ async function blockchainNodeOrLoadBalancerPrompt({
253202
253204
 
253203
253205
  // src/commands/connect.ts
253204
253206
  function connectCommand() {
253205
- return new Command("connect").option("--prod", "Connect to your production environment").option("-a, --accept-defaults", "Accept the default and previously set values").option("-i, --instance <instance>", "The instance to connect to (defaults to the instance in the .env file)").description("Connects your project to your application on SettleMint").action(async ({ acceptDefaults, prod, instance }) => {
253207
+ return new Command("connect").option("--prod", "Connect to your production environment").option("-a, --accept-defaults", "Accept the default and previously set values").option("-i, --instance <instance>", "The instance to connect to (defaults to the instance in the .env file)").description("Connects your project to your application on SettleMint").usage(createExamples([
253208
+ {
253209
+ description: "Connect to your environment",
253210
+ command: "settlemint connect"
253211
+ },
253212
+ {
253213
+ description: "Connect to your environment using defaults from the .env file",
253214
+ command: "settlemint connect --accept-defaults"
253215
+ },
253216
+ {
253217
+ description: "Connect to your production environment",
253218
+ command: "settlemint connect --prod"
253219
+ }
253220
+ ])).action(async ({ acceptDefaults, prod, instance }) => {
253206
253221
  intro("Connecting your dApp to SettleMint");
253207
253222
  const env2 = await loadEnv(false, !!prod);
253208
253223
  const selectedInstance = instance ? sanitizeAndValidateInstanceUrl(instance) : await instancePrompt(env2, true);
@@ -256651,7 +256666,20 @@ async function downloadAndExtractNpmPackage({
256651
256666
 
256652
256667
  // src/commands/create.ts
256653
256668
  function createCommand2() {
256654
- return new Command("create").description("Bootstrap your SettleMint project").option("-n, --project-name <name>", "The name for your SettleMint project").option("-t, --template <template>", "The template for your SettleMint project (run `settlemint platform config` to see available templates)").option("-v, --version <version>", "Specify the template version to use (defaults to latest stable version)").option("-i, --instance <instance>", "The instance to connect to").action(async ({ projectName, template, version, instance }) => {
256669
+ return new Command("create").description("Create a new application from a template").option("-n, --project-name <name>", "The name for your SettleMint project").option("-t, --template <template>", "The template for your SettleMint project (run `settlemint platform config` to see available templates)").option("-v, --version <version>", "Specify the template version to use (defaults to latest stable version)").option("-i, --instance <instance>", "The instance to connect to").usage(createExamples([
256670
+ {
256671
+ description: "Create a new application from a template",
256672
+ command: "settlemint create"
256673
+ },
256674
+ {
256675
+ description: "Create a new asset tokenization application",
256676
+ command: "settlemint create --template asset-tokenization"
256677
+ },
256678
+ {
256679
+ description: "Create a new asset tokenization application from a specific version",
256680
+ command: "settlemint create --template asset-tokenization --version 1.0.0"
256681
+ }
256682
+ ])).action(async ({ projectName, template, version, instance }) => {
256655
256683
  intro("Creating a new SettleMint project");
256656
256684
  const env2 = await loadEnv(false, false);
256657
256685
  if (version && !template) {
@@ -256965,7 +256993,16 @@ function loginCommand() {
256965
256993
 
256966
256994
  // src/commands/logout.ts
256967
256995
  function logoutCommand() {
256968
- return new Command("logout").description("Logout from your SettleMint account").option("--all", "Logout from all instances").action(async (options) => {
256996
+ return new Command("logout").description("Logout from your SettleMint account").option("--all", "Logout from all instances").usage(createExamples([
256997
+ {
256998
+ description: "Logout from your SettleMint account",
256999
+ command: "settlemint logout"
257000
+ },
257001
+ {
257002
+ description: "Logout from all instances",
257003
+ command: "settlemint logout --all"
257004
+ }
257005
+ ])).action(async (options) => {
256969
257006
  intro("Logging out from SettleMint");
256970
257007
  const instances = await getInstances();
256971
257008
  if (instances.length === 0) {
@@ -257021,7 +257058,16 @@ async function pincodeVerificationPrompt(verificationChallenges) {
257021
257058
 
257022
257059
  // src/commands/pincode-verification-response.ts
257023
257060
  function pincodeVerificationResponseCommand() {
257024
- return new Command("pincode-verification-response").alias("pvr").description("Get pincode verification response for a blockchain node").requiredOption("--wallet-address <walletAddress>", "The wallet address to get pincode verification response for").option("-i, --instance <instance>", "The instance to connect to (defaults to the instance in the .env file)").option("--blockchain-node <blockchainNode>", "Blockchain Node unique name to get pincode verification response for").action(async ({ instance, blockchainNode, walletAddress }) => {
257061
+ return new Command("pincode-verification-response").alias("pvr").description("Get pincode verification response for a blockchain node").requiredOption("--wallet-address <walletAddress>", "The wallet address to get pincode verification response for").option("-i, --instance <instance>", "The instance to connect to (defaults to the instance in the .env file)").option("--blockchain-node <blockchainNode>", "Blockchain Node unique name to get pincode verification response for").usage(createExamples([
257062
+ {
257063
+ description: "Get pincode verification response for a wallet address",
257064
+ command: "settlemint pincode-verification-response --wallet-address 0x1234567890123456789012345678901234567890"
257065
+ },
257066
+ {
257067
+ description: "Get pincode verification response for a wallet address and connect to a specific blockchain node",
257068
+ command: "settlemint pincode-verification-response --wallet-address 0x1234567890123456789012345678901234567890 --blockchain-node my-blockchain-node"
257069
+ }
257070
+ ])).action(async ({ instance, blockchainNode, walletAddress }) => {
257025
257071
  intro("Generating pincode verification response for wallet address");
257026
257072
  const env2 = await loadEnv(false, false);
257027
257073
  const applicationUniqueName = env2.SETTLEMINT_APPLICATION;
@@ -257890,6 +257936,14 @@ function blockscoutInsightsCreateCommand() {
257890
257936
  {
257891
257937
  description: "Create a Blockscout insights service in a different application",
257892
257938
  command: "platform create insights blockscout my-blockscout --application app-123"
257939
+ },
257940
+ {
257941
+ description: "Create a Blockscout insights service and connect to a specific load balancer",
257942
+ command: "platform create insights blockscout my-blockscout --load-balancer my-load-balancer"
257943
+ },
257944
+ {
257945
+ description: "Create a Blockscout insights service and connect to a specific blockchain node",
257946
+ command: "platform create insights blockscout my-blockscout --blockchain-node my-blockchain-node"
257893
257947
  }
257894
257948
  ]
257895
257949
  });
@@ -258146,6 +258200,14 @@ function graphMiddlewareCreateCommand() {
258146
258200
  {
258147
258201
  description: "Create a graph middleware in a different application",
258148
258202
  command: "platform create middleware graph my-graph --application my-app --blockchain-node node-123"
258203
+ },
258204
+ {
258205
+ description: "Create a graph middleware and connect to a specific load balancer",
258206
+ command: "platform create middleware graph my-graph --load-balancer my-load-balancer"
258207
+ },
258208
+ {
258209
+ description: "Create a graph middleware and connect to a specific blockchain node",
258210
+ command: "platform create middleware graph my-graph --blockchain-node my-blockchain-node"
258149
258211
  }
258150
258212
  ]
258151
258213
  });
@@ -258253,6 +258315,14 @@ function smartContractPortalMiddlewareCreateCommand() {
258253
258315
  {
258254
258316
  description: "Create a smart contract portal middleware in a different application",
258255
258317
  command: "platform create middleware smart-contract-portal my-portal --application my-app --blockchain-node node-123"
258318
+ },
258319
+ {
258320
+ description: "Create a smart contract portal middleware and connect to a specific blockchain node",
258321
+ command: "platform create middleware smart-contract-portal my-portal --blockchain-node my-blockchain-node"
258322
+ },
258323
+ {
258324
+ description: "Create a smart contract portal middleware and connect to a specific load balancer",
258325
+ command: "platform create middleware smart-contract-portal my-portal --load-balancer my-load-balancer"
258256
258326
  }
258257
258327
  ]
258258
258328
  });
@@ -258567,7 +258637,7 @@ function storageCreateCommand() {
258567
258637
 
258568
258638
  // src/commands/platform/create.ts
258569
258639
  function createCommand3() {
258570
- return new Command("create").alias("c").description("Create a resource in the SettleMint platform").addCommand(workspaceCreateCommand()).addCommand(applicationCreateCommand()).addCommand(blockchainNetworkCreateCommand()).addCommand(blockchainNodeCreateCommand()).addCommand(privateKeyCreateCommand()).addCommand(middlewareCreateCommand()).addCommand(storageCreateCommand()).addCommand(integrationToolCreateCommand()).addCommand(insightsCreateCommand()).addCommand(applicationAccessTokenCreateCommand()).addCommand(loadBalancerCreateCommand());
258640
+ return new Command("create").alias("c").description("Create a resource in the SettleMint platform").addCommand(applicationAccessTokenCreateCommand()).addCommand(applicationCreateCommand()).addCommand(blockchainNetworkCreateCommand()).addCommand(blockchainNodeCreateCommand()).addCommand(insightsCreateCommand()).addCommand(integrationToolCreateCommand()).addCommand(loadBalancerCreateCommand()).addCommand(middlewareCreateCommand()).addCommand(privateKeyCreateCommand()).addCommand(storageCreateCommand()).addCommand(workspaceCreateCommand());
258571
258641
  }
258572
258642
 
258573
258643
  // src/prompts/delete-confirmation.prompt.ts
@@ -258687,7 +258757,7 @@ function applicationDeleteCommand() {
258687
258757
 
258688
258758
  // src/commands/platform/delete.ts
258689
258759
  function deleteCommand() {
258690
- return new Command("delete").alias("d").description("Delete a resource in the SettleMint platform").addCommand(workspaceDeleteCommand()).addCommand(applicationDeleteCommand());
258760
+ return new Command("delete").alias("d").description("Delete a resource in the SettleMint platform").addCommand(applicationDeleteCommand()).addCommand(workspaceDeleteCommand());
258691
258761
  }
258692
258762
 
258693
258763
  // src/commands/platform/common/restart-command.ts
@@ -258763,6 +258833,19 @@ function blockchainNetworkRestartCommand() {
258763
258833
  });
258764
258834
  }
258765
258835
 
258836
+ // src/commands/platform/blockchain-node/restart.ts
258837
+ function blockchainNodeRestartCommand() {
258838
+ return getRestartCommand({
258839
+ name: "blockchain-node",
258840
+ type: "blockchain node",
258841
+ alias: "bn",
258842
+ envKey: "SETTLEMINT_BLOCKCHAIN_NODE",
258843
+ restartFunction: async (settlemint, id) => {
258844
+ return settlemint.blockchainNode.restart(id);
258845
+ }
258846
+ });
258847
+ }
258848
+
258766
258849
  // src/commands/platform/custom-deployments/restart.ts
258767
258850
  function customDeploymentRestartCommand() {
258768
258851
  return getRestartCommand({
@@ -258894,13 +258977,22 @@ function storageRestartCommand() {
258894
258977
 
258895
258978
  // src/commands/platform/restart.ts
258896
258979
  function restartCommand() {
258897
- const cmd2 = new Command("restart").description("Restart a resource in the SettleMint platform").addCommand(blockchainNetworkRestartCommand()).addCommand(customDeploymentRestartCommand()).addCommand(insightsRestartCommand()).addCommand(integrationToolRestartCommand()).addCommand(middlewareRestartCommand()).addCommand(storageRestartCommand()).addCommand(loadBalancerRestartCommand());
258980
+ const cmd2 = new Command("restart").description("Restart a resource in the SettleMint platform").addCommand(blockchainNetworkRestartCommand()).addCommand(blockchainNodeRestartCommand()).addCommand(customDeploymentRestartCommand()).addCommand(insightsRestartCommand()).addCommand(integrationToolRestartCommand()).addCommand(loadBalancerRestartCommand()).addCommand(middlewareRestartCommand()).addCommand(storageRestartCommand());
258898
258981
  return cmd2;
258899
258982
  }
258900
258983
 
258901
258984
  // src/commands/platform/custom-deployments/update.ts
258902
258985
  function customDeploymentsUpdateCommand() {
258903
- return new Command("custom-deployment").alias("cd").argument("<tag>", "The tag to update the custom deployment to").option("--unique-name <uniqueName>", "The unique name of the custom deployment to update. If not provided, will use SETTLEMINT_CUSTOM_DEPLOYMENT from env").option("--prod", "Connect to your production environment").option("--wait", "Wait for the custom deployment to be redeployed").description("Update a custom deployment in the SettleMint platform").action(async (tag, { uniqueName, prod, wait }) => {
258986
+ return new Command("custom-deployment").alias("cd").argument("<tag>", "The tag to update the custom deployment to").option("--unique-name <uniqueName>", "The unique name of the custom deployment to update. If not provided, will use SETTLEMINT_CUSTOM_DEPLOYMENT from env").option("--prod", "Connect to your production environment").option("--wait", "Wait for the custom deployment to be redeployed").description("Update a custom deployment in the SettleMint platform").usage(createExamples([
258987
+ {
258988
+ description: "Update a custom deployment",
258989
+ command: "settlemint custom-deployment update v1.0.0"
258990
+ },
258991
+ {
258992
+ description: "Update a custom deployment with a specific unique name",
258993
+ command: "settlemint custom-deployment update v1.0.0 --unique-name my-custom-deployment"
258994
+ }
258995
+ ])).action(async (tag, { uniqueName, prod, wait }) => {
258904
258996
  intro("Updating custom deployment in the SettleMint platform");
258905
258997
  const env2 = await loadEnv(false, !!prod);
258906
258998
  const customDeploymentUniqueName = uniqueName ?? env2.SETTLEMINT_CUSTOM_DEPLOYMENT;
@@ -258999,7 +259091,20 @@ function yamlOutput(data) {
258999
259091
 
259000
259092
  // src/commands/platform/config.ts
259001
259093
  function configCommand() {
259002
- return new Command("config").alias("cfg").description("Get platform configuration").option("--prod", "Connect to your production environment").option("-i, --instance <instance>", "The instance to connect to (defaults to the instance in the .env file)").addOption(new Option("-o, --output <output>", "The output format").choices(["json", "yaml"])).action(async ({ prod, instance, output }) => {
259094
+ return new Command("config").alias("cfg").description("Get platform configuration").option("--prod", "Connect to your production environment").option("-i, --instance <instance>", "The instance to connect to (defaults to the instance in the .env file)").addOption(new Option("-o, --output <output>", "The output format").choices(["json", "yaml"])).usage(createExamples([
259095
+ {
259096
+ description: "Get platform configuration",
259097
+ command: "settlemint config"
259098
+ },
259099
+ {
259100
+ description: "Get platform configuration in JSON format",
259101
+ command: "settlemint config -o json"
259102
+ },
259103
+ {
259104
+ description: "Get platform configuration in YAML format",
259105
+ command: "settlemint config -o yaml"
259106
+ }
259107
+ ])).action(async ({ prod, instance, output }) => {
259003
259108
  intro("Getting platform configuration");
259004
259109
  const env2 = await loadEnv(false, !!prod);
259005
259110
  const selectedInstance = instance ? sanitizeAndValidateInstanceUrl(instance) : await instancePrompt(env2, true);
@@ -259424,12 +259529,12 @@ function workspacesListCommand() {
259424
259529
 
259425
259530
  // src/commands/platform/list.ts
259426
259531
  function listCommand() {
259427
- return new Command("list").alias("ls").description("List resources in the SettleMint platform").addCommand(servicesCommand()).addCommand(workspacesListCommand()).addCommand(applicationsListCommand());
259532
+ return new Command("list").alias("ls").description("List resources in the SettleMint platform").addCommand(applicationsListCommand()).addCommand(servicesCommand()).addCommand(workspacesListCommand());
259428
259533
  }
259429
259534
 
259430
259535
  // src/commands/platform.ts
259431
259536
  function platformCommand() {
259432
- return new Command("platform").description("Manage SettleMint platform resources").addCommand(configCommand()).addCommand(createCommand3()).addCommand(updateCommand()).addCommand(deleteCommand()).addCommand(restartCommand()).addCommand(listCommand());
259537
+ return new Command("platform").description("Manage SettleMint platform resources").addCommand(configCommand()).addCommand(createCommand3()).addCommand(deleteCommand()).addCommand(listCommand()).addCommand(restartCommand()).addCommand(updateCommand());
259433
259538
  }
259434
259539
 
259435
259540
  // src/commands/smart-contract-set/create.ts
@@ -259487,7 +259592,12 @@ async function executeFoundryCommand(command, args) {
259487
259592
 
259488
259593
  // src/commands/smart-contract-set/create.ts
259489
259594
  function createCommand4() {
259490
- return new Command("create").description("Bootstrap your smart contract set").option("-n, --project-name <name>", "The name for your smart contract set project").option("--use-case <useCase>", "Use case for the smart contract set (run `settlemint platform config` to see available use cases)").option("-i, --instance <instance>", "The instance to connect to").action(async ({ projectName, useCase, instance }) => {
259595
+ return new Command("create").description("Bootstrap your smart contract set").option("-n, --project-name <name>", "The name for your smart contract set project").option("--use-case <useCase>", "Use case for the smart contract set (run `settlemint platform config` to see available use cases)").option("-i, --instance <instance>", "The instance to connect to").usage(createExamples([
259596
+ {
259597
+ description: "Create a new solidity-token-erc20 smart contract set",
259598
+ command: "settlemint smart-contract-set create --project-name erc20-contracts --use-case solidity-token-erc20"
259599
+ }
259600
+ ])).action(async ({ projectName, useCase, instance }) => {
259491
259601
  intro("Creating a new smart contract set");
259492
259602
  const env2 = await loadEnv(false, false);
259493
259603
  const name3 = await projectNamePrompt(env2, projectName);
@@ -259982,7 +260092,12 @@ function hardhatNetworkCommand() {
259982
260092
 
259983
260093
  // src/commands/smart-contract-set/hardhat/script/local.ts
259984
260094
  function hardhatScriptLocalCommand() {
259985
- return new Command("local").description("Run a Hardhat script to deploy a contract on the platform or interact with a deployed contract.").requiredOption("-s, --script <script>", 'The script to run with Hardhat , e.g. "scripts/deploy.ts"').option("--no-compile", "Don't compile before running this task").action(async ({ script, compile }) => {
260095
+ return new Command("local").description("Run a Hardhat script on a local development network.").requiredOption("-s, --script <script>", 'The script to run with Hardhat , e.g. "scripts/deploy.ts"').option("--no-compile", "Don't compile before running this task").usage(createExamples([
260096
+ {
260097
+ description: "Run a Hardhat script on a local network",
260098
+ command: "settlemint hardhat script local --script scripts/deploy.ts"
260099
+ }
260100
+ ])).action(async ({ script, compile }) => {
259986
260101
  intro("Running Hardhat script on local network");
259987
260102
  await validateIfRequiredPackagesAreInstalled(["hardhat"]);
259988
260103
  const { command, args } = await getPackageManagerExecutable();
@@ -260001,7 +260116,20 @@ function hardhatScriptLocalCommand() {
260001
260116
 
260002
260117
  // src/commands/smart-contract-set/hardhat/script/remote.ts
260003
260118
  function hardhatScriptRemoteCommand() {
260004
- const cmd2 = new Command("remote").description("Run a Hardhat script to deploy a contract on the platform or interact with a deployed contract.").requiredOption("-s, --script <script>", 'The script to run with Hardhat , e.g. "scripts/deploy.ts"').option("--blockchain-node <blockchainNode>", "Blockchain Node unique name (optional, defaults to the blockchain node in the environment)").option("--prod", "Connect to your production environment").option("-a, --accept-defaults", "Accept the default and previously set values").option("--no-compile", "Don't compile before running this task");
260119
+ const cmd2 = new Command("remote").description("Run a Hardhat script on a remote network on the platform.").requiredOption("-s, --script <script>", 'The script to run with Hardhat , e.g. "scripts/deploy.ts"').option("--blockchain-node <blockchainNode>", "Blockchain Node unique name (optional, defaults to the blockchain node in the environment)").option("--prod", "Connect to your production environment").option("-a, --accept-defaults", "Accept the default and previously set values").option("--no-compile", "Don't compile before running this task").usage(createExamples([
260120
+ {
260121
+ description: "Run a Hardhat script on a remote network",
260122
+ command: "settlemint hardhat script remote --script scripts/deploy.ts"
260123
+ },
260124
+ {
260125
+ description: "Run a Hardhat script on a remote network with a specific blockchain node",
260126
+ command: "settlemint hardhat script remote --script scripts/deploy.ts --blockchain-node my-blockchain-node"
260127
+ },
260128
+ {
260129
+ description: "Run a Hardhat script on a remote network without compiling",
260130
+ command: "settlemint hardhat script remote --script scripts/deploy.ts --no-compile"
260131
+ }
260132
+ ]));
260005
260133
  cmd2.action(async ({ script, prod, blockchainNode: blockchainNodeUniqueName, acceptDefaults, compile }) => {
260006
260134
  intro("Running Hardhat script on remote network");
260007
260135
  await validateIfRequiredPackagesAreInstalled(["hardhat"]);
@@ -260216,7 +260344,12 @@ async function getNodeName({
260216
260344
 
260217
260345
  // src/commands/smart-contract-set/subgraph/build.ts
260218
260346
  function subgraphBuildCommand() {
260219
- return new Command("build").description("Build the subgraph").action(async () => {
260347
+ return new Command("build").description("Build the subgraph").usage(createExamples([
260348
+ {
260349
+ description: "Build the subgraph",
260350
+ command: "settlemint subgraph build"
260351
+ }
260352
+ ])).action(async () => {
260220
260353
  intro("Building subgraph");
260221
260354
  await validateIfRequiredPackagesAreInstalled(["@graphprotocol/graph-cli"]);
260222
260355
  await subgraphSetup({
@@ -260234,7 +260367,12 @@ function subgraphBuildCommand() {
260234
260367
  // src/commands/smart-contract-set/subgraph/codegen.ts
260235
260368
  import { dirname as dirname11 } from "node:path";
260236
260369
  function subgraphCodegenCommand() {
260237
- return new Command("codegen").description("Codegen the subgraph types").action(async () => {
260370
+ return new Command("codegen").description("Codegen the subgraph types").usage(createExamples([
260371
+ {
260372
+ description: "Generate subgraph types",
260373
+ command: "settlemint subgraph codegen"
260374
+ }
260375
+ ])).action(async () => {
260238
260376
  intro("Generating subgraph types");
260239
260377
  await validateIfRequiredPackagesAreInstalled(["@graphprotocol/graph-cli"]);
260240
260378
  await subgraphSetup({
@@ -260532,15 +260670,15 @@ ${error5.stack}`));
260532
260670
  function registerCommands() {
260533
260671
  const sdkcli = new Command;
260534
260672
  sdkcli.name("settlemint").usage("[command]").description(`CLI for SettleMint (v${package_default.version})`).version(package_default.version, "-v, --version", "Output the current version").helpOption("-h, --help", "Display help for command").allowUnknownOption().showSuggestionAfterError(true).showHelpAfterError().passThroughOptions();
260535
- sdkcli.addCommand(connectCommand());
260536
260673
  sdkcli.addCommand(codegenCommand());
260537
- sdkcli.addCommand(platformCommand());
260538
- sdkcli.addCommand(smartContractSetCommand());
260674
+ sdkcli.addCommand(connectCommand());
260539
260675
  sdkcli.addCommand(createCommand2());
260676
+ sdkcli.addCommand(hasuraCommand());
260540
260677
  sdkcli.addCommand(loginCommand());
260541
260678
  sdkcli.addCommand(logoutCommand());
260542
260679
  sdkcli.addCommand(pincodeVerificationResponseCommand());
260543
- sdkcli.addCommand(hasuraCommand());
260680
+ sdkcli.addCommand(platformCommand());
260681
+ sdkcli.addCommand(smartContractSetCommand());
260544
260682
  return sdkcli;
260545
260683
  }
260546
260684
  async function sdkCliCommand(argv = process.argv) {
@@ -260560,4 +260698,4 @@ async function sdkCliCommand(argv = process.argv) {
260560
260698
  // src/cli.ts
260561
260699
  sdkCliCommand();
260562
260700
 
260563
- //# debugId=BA9DB8BA4E9687D764756E2164756E21
260701
+ //# debugId=FDA3C16C631724F264756E2164756E21