@xgent-ai/create-app
v1.2.0
Published
Helper tool to initiate a xgent app module.
Downloads
20
Maintainers
Readme
@xgent-ai/create-app
Helper tool to init a xgent module
Usage
npm init @xgent-ai/app <app-name> [app-directory] [options]or
pnpm add -D @xgent-ai/create-app
pnpm xgent-init <app-name> [app-directory] [options]Options
Options:
-s, --silent
Silent mode
default: false
-v, --version
Show version information
default: false
-l, --list-modes
Show a list of built-in app modes
default: false
-h, --help
Show usage message
default: false
-m, --mode
Target application mode
required
available values:
"custom": [custom] - Custom template with template location
-t, --template
Custom template location
conditional
--auth, --authentication
Authentication of template download
available values:
"none"
"auth-header-token"
"auth-header-bearer"
--token, --access-token
Authentication token
conditional
--skip-install, --skip-npm-install
Skip running npm install after creating the project
default: false
--pm, --package-manager
Specify the package manager (e.g. npm)
required
available values:
"npm"
"pnpm"
"yarn"Create by Template
Case 1 - Create a New Grafton Library Package
pnpm xgent-init <package-name> <package-path> -m custom --pm=pnpm -t https://git.wsjn.hk/api/v1/repos/wsjn/grafton-library-template/archive/main.tar.gz --auth=auth-header-token --token=xxx Case 2 - Create a New Grafton-based Web Module Package
pnpm xgent-init <package-name> <package-path> -m custom --pm=pnpm -t https://git.wsjn.hk/api/v1/repos/wsjn/
web-module-template/archive/main.tar.gz --auth=auth-header-token --token=xxx License
MIT
