JSPM

@settlemint/sdk-cli

0.6.46
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7693
  • Score
    100M100P100Q126881F
  • License FSL-1.1-MIT

SettleMint SDK, integrate SettleMint into your application with ease.

Package Exports

    Readme

    SettleMint logo

    SettleMint SDK

    https://settlemint.com
    Integrate SettleMint into your application with ease.


    CI status License npm stars

    Documentation   •   Discord   •   NPM   •   Issues

    Getting started

    First we will create a new Next JS project using the following command.

    # Using npx
    npx @settlemint/sdk-cli@latest create
    
    # Using bun
    bunx @settlemint/sdk-cli@latest create
    
    # Using pnpm
    pnpm dlx @settlemint/sdk-cli@latest create

    Then following the next steps in your terminal.

    Local development

    Debugging

    To debug with interactive input you need to start the command from the terminal and then attach the debugger.

    bun --inspect-wait=localhost:6499/ sdk/cli/src/cli.ts create
    # Attach the debugger using the "SDK: Attach to process" configuration
    
    # Run from the directory created by the create command
    bun --inspect-wait=localhost:6499/ sdk/cli/src/cli.ts connect
    # Attach the debugger using the "SDK: Attach to process" configuration

    e2e tests

    Create a ".env" file in the root folder of this project.

    SETTLEMINT_ACCESS_TOKEN_E2E_TESTS="sm_pat_xxx"
    SETTLEMINT_INSTANCE="https://me.settlemint.be"
    DISABLE_WORKSPACE_DELETE=true