diff --git a/Readme.md b/Readme.md index 44c6528..24afcbf 100644 --- a/Readme.md +++ b/Readme.md @@ -12,14 +12,14 @@ Turns a Token Host Schema (THS) document into deterministic Solidity artifacts a ## Quickstart (New Pipeline) -Prereqs: Node >= 20, pnpm (repo uses `packageManager`), Foundry required for local anvil (`th dev` default) and for `th verify`. +Prereqs: Node >= 20, pnpm (repo uses `packageManager`), Foundry required for local anvil (`th up` default) and for `th verify`. ```bash pnpm install pnpm th doctor -# One command: validate + build + start anvil + deploy + serve UI -pnpm th dev apps/example/job-board.schema.json +# One command: validate + build + start anvil + deploy + serve UI + local faucet +pnpm th up apps/example/job-board.schema.json # Open http://127.0.0.1:3000/ # MetaMask: approve switching/adding the Anvil network (chainId 31337). diff --git a/packages/cli/src/index.ts b/packages/cli/src/index.ts index 02841a4..a8eda70 100644 --- a/packages/cli/src/index.ts +++ b/packages/cli/src/index.ts @@ -1074,7 +1074,7 @@ function buildFromSchema( console.log(''); console.log('Next steps:'); if (opts.schemaPathForHints) { - console.log(` th dev ${opts.schemaPathForHints} # build+deploy+preview (local)`); + console.log(` th up ${opts.schemaPathForHints} # build+deploy+preview (local)`); } console.log(` th deploy ${resolvedOutDir} --chain anvil # start anvil first`); console.log(` th deploy ${resolvedOutDir} --chain sepolia # requires RPC + funded key`); @@ -1302,7 +1302,7 @@ program '', '```bash', `pnpm th doctor`, - `pnpm th dev ${schemaPath}`, + `pnpm th up ${schemaPath}`, '```', '' ].join('\n') @@ -1473,9 +1473,11 @@ function anyPaidCreates(schema: ThsSchema): boolean { } program - .command('dev') + .command('up') + .alias('run') + .alias('dev') .argument('[schema]', 'Path to THS schema JSON file (defaults to an example schema when available)') - .description('All-in-one local dev: validate + build + (start anvil) + deploy + preview') + .description('All-in-one local flow: validate + build + (start anvil) + deploy + preview + faucet') .option('--out