ship

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

@codewithbeto/ship

@codewithbeto/ship

Ship a revenue-ready AI image app this weekend. Built by Code with BetoPlatano landing page
本周末即可上线一款可变现的AI图像应用。 由Code with Beto开发——Platano落地页

Quick start

快速开始

bash
bunx @codewithbeto/ship --name my-app
bash
bunx @codewithbeto/ship --name my-app

Flags

可用参数

FlagRequiredDefault
--name <dir>
Yes
--template <name>
No
platano
--app-name <name>
Notitle-cased
--name
--bundle-id <id>
No
com.<user>.<slug>
--payments
/
--no-payments
No
--payments
--rc-key-ios <key>
No
--rc-key-android <key>
Nosame as iOS key
--dry-run
No
参数必填默认值
--name <dir>
--template <name>
platano
--app-name <name>
--name
的首字母大写格式
--bundle-id <id>
com.<user>.<slug>
--payments
/
--no-payments
--payments
--rc-key-ios <key>
--rc-key-android <key>
与iOS密钥相同
--dry-run

What it does

功能说明

  1. Clone the template repo (shallow, then remove
    .git
    )
  2. Configure app name, bundle ID, slug, and payment keys
  3. Run
    bun install
  4. Initialize a fresh git repo with baseline commit
  1. 克隆模板仓库(浅克隆,之后删除
    .git
    目录)
  2. 配置应用名称、bundle ID、slug和支付密钥
  3. 执行
    bun install
  4. 初始化全新的git仓库并提交基线提交

Output

输出说明

  • stderr — progress logs (checking access, cloning, configuring)
  • stdout — structured result on success:
name: my-app
app_name: My App
bundle_id: com.beto.my-app
slug: my-app
payments: true
template: platano
directory: my-app
  • stderr — 进度日志(权限检查、克隆、配置过程)
  • stdout — 执行成功时返回结构化结果:
name: my-app
app_name: My App
bundle_id: com.beto.my-app
slug: my-app
payments: true
template: platano
directory: my-app

Error handling

错误处理

Errors go to stderr and exit with code 1. Common failures:
  • Access denied — user needs Pro access at https://cwb.sh/platano
  • Directory exists — pick a different
    --name
  • Install failed — ensure
    bun
    is available
错误会输出到stderr并以退出码1结束进程,常见失败场景:

After scaffolding

搭建完成后

bash
cd <project-name>
npx expo start
bash
cd <project-name>
npx expo start

Links

相关链接