sequence-cli
v0.6.2
Published
CLI for Sequence
Readme
Sequence CLI
Sequence CLI is a collection of commands to help developers bootstrap, integrate, and operate with Sequence services from the terminal. It focuses on fast starts, sensible prompts, and running everything via npx.
Quick start
Run any command directly with npx:
npx sequence-cli --helpSee help for a specific group or command:
npx sequence-cli marketplace --help
npx sequence-cli marketplace create-listings --helpMost commands are interactive and will prompt for any missing options.
Command groups and common tasks
Wallet
- create-single-signer: Create a single-signer Sequence wallet for any EOA and print its address.
- Example:
npx sequence-cli wallet create-single-signer
- Example:
- identify-sequence-wallet: Identify the Sequence wallet address from a given transaction hash.
- Example:
Usenpx sequence-cli wallet identify-sequence-wallet--helpfor available flags; otherwise you’ll be prompted.
- Example:
Boilerplates
Clone ready-to-run starter projects that integrate Sequence SDKs and features:
- create-embedded-wallet-react-starter
- create-ecosystem-wallet-react-starter
- create-embedded-wallet-nextjs-starter
- create-embedded-wallet-epic-nextjs-starter (includes Epic Games login support)
- create-google-embedded-wallet-react-starter
- create-email-embedded-wallet-react-starter
- create-stytch-embedded-wallet-react-starter
- create-server-side-transactions
- create-embedded-wallet-linking-starter
- create-embedded-wallet-verify-session-starter
- create-universal-wallet-starter
- create-primary-drop-sales-erc721-starter
- create-primary-sales-erc1155-starter
- create-telegram-embedded-wallet-react-starter
- create-sequence-pay-starter
- create-crypto-onramp-starter
- create-trails-starter
- create-trails-nextjs-starter
Example usage:
npx sequence-cli boilerplates create-embedded-wallet-react-starter my-appTip: Run npx sequence-cli boilerplates --help to list all boilerplates and options.
Marketplace
- create-listings: Create listings for minted tokens in your wallet.
- Example:
You’ll be prompted for required details (network, collection, pricing, etc.).npx sequence-cli marketplace create-listings
- Example:
- create-marketplace-boilerplate: Clone a Marketplace + Next.js starter.
- Example:
npx sequence-cli marketplace create-marketplace-boilerplate my-marketplace
- Example:
Usage patterns
- Interactive first: Most commands prompt for missing inputs.
- Idempotent: Boilerplate generators won’t overwrite existing folders unless you choose so.
- npx-friendly: Prefer invoking via
npxso you always get the latest released version:npx sequence-cli@latest <group> <command> [options]
Requirements
- Node.js 18+ (recommended)
- Git installed (for cloning boilerplates)
New version release flow
This project is intended to be consumed via npx. To release a new version:
- Ensure your changes are merged to
mainand working locally. - Bump the package version:
npm version patch # or: minor | major - Build artifacts:
pnpm build - Publish to npm:
npm publish --scope=0xsequence --access=public - Push commits and tags:
git push origin main --tags - Sanity check the release:
npx sequence-cli@<new-version> --help
Notes:
- Keep releases backwards-compatible whenever possible.
- Prefer small, frequent releases. Document breaking changes clearly.
Local development (optional)
pnpm install
pnpm dev # run the CLI from source (TypeScript, watches for changes)
pnpm build # produce ./dist and make the binary executableLicense
MIT — see the LICENSE file for details.
