mirror of
https://github.com/atxp-dev/cli.git
synced 2026-09-14 20:46:39 +08:00
v1.0.6
Core Features Updated template repository from atxp-express-example to atxp-express-starter Added Framework type for type safety and extensibility Changed createProject to require app name as first parameter (eliminates interactive prompt) Added command line argument support for framework selection (--framework) Added smart git initialization with --git and --no-git flags Fixed help flag handling to show help instead of running commands Wrapper Package Updates Updated create-atxp wrapper to support new API Fixed argument passing from npm create atxp to underlying atxp create command
ATXP CLI
Command line tools for the ATXP ecosystem - create projects and run demos.
About ATXP
ATXP is a platform for building web agents with OAuth and payment capabilities. The CLI helps you:
- Create new projects with ATXP integration
- Set up development environments quickly
- Run interactive demos to explore ATXP features
Packages
This monorepo contains:
atxp- Main CLI package for creating projects and running demoscreate-atxp- Wrapper package fornpm create atxpsupport
Commands
npx atxp- Show help and available commandsnpx atxp demo- Run the interactive demo applicationnpx atxp create <app-name>- Create a new ATXP projectnpx atxp help- Display help information
Demo Options
--verbose, -v- Show detailed logs--refresh- Force refresh demo from GitHub--port, -p- Specify port number (default: 8017)--dir, -d- Specify demo directory (default: ~/.cache/atxp/demo)
Create Options
--framework, -f- Specify framework template (default: express)--git- Force git initialization--no-git- Skip git initialization
Examples
Get Started
# Show available commands and help
npx atxp
Try the Demo
# Run the interactive demo
npx atxp demo
# Run with detailed output
npx atxp demo --verbose
# Use custom port
npx atxp demo --port 3000
# Use custom directory
npx atxp demo --dir ./my-demo
# Combine options
npx atxp demo --port 3000 --dir ./my-demo --verbose
# Force refresh from GitHub
npx atxp demo --refresh
Create a New Project
# Create a new project (auto-detects git)
npx atxp create my-app
# Create with specific framework
npx atxp create my-app --framework express
# Skip git initialization
npx atxp create my-app --no-git
# Force git initialization
npx atxp create my-app --git
# Alternative method using npm create
npm create atxp my-app
# Set up the project
cd my-app
npm install
npm start
Development
Install dependencies:
npm install
Build all packages:
npm run build
Test the CLI locally:
cd packages/atxp
npm run dev
Publishing
Each package is published independently:
cd packages/atxp
npm publish
cd ../create-atxp
npm publish
License
MIT
Description
Agent wallet, identity, and paid tools in one package. Register an agent, fund it via Stripe or USDC, then use the balance for web search, AI image generation,…
Languages
TypeScript
94.1%
JavaScript
5.9%