create-xrp

CLI tool to scaffold polished XRPL payment apps with Next.js or Nuxt
928 7
Install
npm install create-xrp
Latest Version:0.5.0
License:MIT
Last Updated:Oct 12, 2026
Links: GitHub  ·  npm
Maintainer: xrpl-commons-admin

create-xrp

CLI tool to scaffold polished XRPL payment apps with Next.js or Nuxt.

The default project contains account, payment, and header components. Experimental Bedrock primitives are opt-in so a new project does not depend on experimental network support.

Requires Node.js ^22.18.0 || >=24.11.0.

Usage

npx create-xrp my-app

The CLI asks whether to enable experimental features. Answering no creates the standard payment starter. To choose every option non-interactively:

# Standard starter
npx create-xrp my-app --framework nextjs --pm npm --no-experimental

# Experimental starter with selected Bedrock primitives
npx create-xrp my-app --framework nextjs --pm pnpm \
  --experimental --primitives contract,vault

--experimental is required before --primitives. Available primitives are contract, vault, and escrow. Experimental contracts require a Bedrock- compatible local network or AlphaNet; standard XRPL Testnet and Devnet may reject them. Use --skip-install when dependencies will be installed later.

Generated Next.js projects use .env.local; generated Nuxt projects use .env for runtime variables. The generated README lists the exact network and wallet keys for each framework.

Or use any package manager:

# npm
npx create-xrp my-app

# pnpm
pnpm create xrp my-app

# yarn
yarn create xrp my-app

What it does

  1. Prompts for project name, framework, package manager, and experimental features
  2. Copies the packaged scaffold snapshot (without fetching a GitHub branch)
  3. Removes the CLI package and unselected feature modules
  4. Updates package.json with your project name
  5. Installs dependencies unless --skip-install is set
  6. Initializes a new git repository

Development

To test locally:

# Build the CLI
pnpm build

# Link it globally
npm link

# Test it
create-xrp test-project --framework nextjs --pm npm --no-experimental

pnpm build refreshes the packaged snapshot from the repository before compiling the CLI. The snapshot is included in the npm tarball so published generations are reproducible.

Publishing

# Build
pnpm build

# Publish to npm
npm publish

License

MIT

Related Packages

@0xbojack/create-fhevm-dapp

Create FHEVM dApps with framework templates

1,977
@dashboardstack/cli

CLI for scaffolding full-stack DashboardStack projects with Next.js, Nuxt, and T...

6,403
@drmhse/authos-cli

Pre-1.0 CLI for scaffolding AuthOS integrations

3,866 6
create-strapi-launchpad

CLI to scaffold the official Strapi LaunchPad demo application with the frontend...

368
vue3-quickstart-cli

一个用于快速创建 Vue3 项目的脚手架工具。

3,251

Version History

Version Released License
0.5.0 MIT
0.4.2 MIT
0.4.0 MIT
0.3.1 MIT
0.3.0 MIT