create-zuplo-api 7.8.7 → 7.8.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +34 -116
- package/dist/index.js +9 -9
- package/dist/shared/env.example +12 -0
- package/dist/templates/ai-gateway/README-template.md +85 -22
- package/dist/templates/ai-gateway/modules/zuplo.runtime.ts +42 -0
- package/dist/templates/default-empty/README-template.md +4 -1
- package/dist/templates/shared/env.example +12 -0
- package/dist/templates/shared/vscode/launch.json +30 -0
- package/dist/templates/shared/vscode/settings.json +20 -0
- package/package.json +1 -1
- package/dist/templates/ai-gateway/env.example +0 -6
- package/dist/templates/ai-gateway/gitignore +0 -8
- package/dist/templates/default/env.example +0 -2
- package/dist/templates/default-empty/env.example +0 -2
- /package/dist/{templates/default-empty → shared}/gitignore +0 -0
- /package/dist/{templates/default → shared}/vscode/launch.json +0 -0
- /package/dist/{templates/default → shared}/vscode/settings.json +0 -0
- /package/dist/templates/{default → shared}/gitignore +0 -0
package/README.md
CHANGED
|
@@ -16,130 +16,48 @@ pnpm create zuplo-api
|
|
|
16
16
|
bunx create-zuplo-api
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
-
You will be asked for the name of your project
|
|
20
|
-
|
|
19
|
+
You will be asked for the name of your project and a few setup options, such as
|
|
20
|
+
the linter, formatter, and AI coding agents to configure.
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
✔ Would you like to use TypeScript? … No / Yes
|
|
24
|
-
```
|
|
22
|
+
### Templates
|
|
25
23
|
|
|
26
|
-
|
|
27
|
-
project.
|
|
24
|
+
Pick a built-in template with `--template <name>`:
|
|
28
25
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
26
|
+
| Template | What you get |
|
|
27
|
+
| --------------- | ----------------------------------------------------------------------------- |
|
|
28
|
+
| `default` | A sample API with routes, a developer portal, and VS Code debugging (default) |
|
|
29
|
+
| `default-empty` | The same project structure with no sample routes (same as `--empty`) |
|
|
30
|
+
| `ai-gateway` | A Zuplo AI Gateway: one OpenAI-compatible API in front of many AI providers |
|
|
33
31
|
|
|
34
32
|
```bash
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
Options:
|
|
38
|
-
-V, --version output the version number
|
|
39
|
-
--ts, --typescript
|
|
40
|
-
|
|
41
|
-
Initialize as a TypeScript project. (default)
|
|
42
|
-
|
|
43
|
-
--js, --javascript
|
|
44
|
-
|
|
45
|
-
Initialize as a JavaScript project.
|
|
46
|
-
|
|
47
|
-
--linter <linter>
|
|
48
|
-
|
|
49
|
-
The linter to configure: eslint, biome, oxlint, or none.
|
|
50
|
-
|
|
51
|
-
--formatter <formatter>
|
|
52
|
-
|
|
53
|
-
The formatter to configure: prettier, biome, oxfmt, or none.
|
|
54
|
-
Biome can fill both roles with a single dependency and config.
|
|
55
|
-
|
|
56
|
-
--eslint
|
|
57
|
-
|
|
58
|
-
Initialize with ESLint config. (deprecated: use --linter eslint)
|
|
59
|
-
|
|
60
|
-
--prettier
|
|
61
|
-
|
|
62
|
-
Initialize with Prettier config. (deprecated: use --formatter prettier)
|
|
63
|
-
|
|
64
|
-
--empty
|
|
65
|
-
|
|
66
|
-
Initialize an empty project.
|
|
67
|
-
|
|
68
|
-
--use-npm
|
|
69
|
-
|
|
70
|
-
Explicitly tell the CLI to bootstrap the application using npm
|
|
71
|
-
|
|
72
|
-
--use-pnpm
|
|
73
|
-
|
|
74
|
-
Explicitly tell the CLI to bootstrap the application using pnpm
|
|
75
|
-
|
|
76
|
-
--use-yarn
|
|
77
|
-
|
|
78
|
-
Explicitly tell the CLI to bootstrap the application using Yarn
|
|
79
|
-
|
|
80
|
-
--use-bun
|
|
81
|
-
|
|
82
|
-
Explicitly tell the CLI to bootstrap the application using Bun
|
|
83
|
-
|
|
84
|
-
--no-install
|
|
85
|
-
|
|
86
|
-
Explicitly tell the CLI to skip installing packages
|
|
87
|
-
|
|
88
|
-
--no-git
|
|
89
|
-
|
|
90
|
-
Explicitly tell the CLI to skip initialing the project as a git repository
|
|
91
|
-
|
|
92
|
-
--no-version-check
|
|
93
|
-
|
|
94
|
-
Explicitly tell the CLI to skip checking for the latest version of the CLI
|
|
95
|
-
|
|
96
|
-
--server-project
|
|
97
|
-
|
|
98
|
-
Create a project on portal.zuplo.com and link this working copy
|
|
99
|
-
to it. Skips the interactive prompt and goes straight to account
|
|
100
|
-
selection, project creation, and linking.
|
|
101
|
-
|
|
102
|
-
--no-server-project
|
|
103
|
-
|
|
104
|
-
Don't create a project on portal.zuplo.com. Local files are
|
|
105
|
-
scaffolded as usual; the prompt is skipped.
|
|
106
|
-
|
|
107
|
-
--account <account-name>
|
|
108
|
-
|
|
109
|
-
The Zuplo account that will host the project. Passing this flag
|
|
110
|
-
implies --server-project (the prompt is skipped). If you opt in
|
|
111
|
-
without passing --account, create-zuplo-api will prompt you to
|
|
112
|
-
pick from your accounts, or auto-select if you have exactly one.
|
|
113
|
-
|
|
114
|
-
By default, when run interactively, create-zuplo-api asks whether
|
|
115
|
-
to create a project on portal.zuplo.com before contacting the
|
|
116
|
-
portal. In --yes or non-interactive (CI) mode the default answer
|
|
117
|
-
is "no" — pass --server-project or --account <name> to opt in.
|
|
118
|
-
|
|
119
|
-
-e, --example [name]|[github-url]
|
|
120
|
-
|
|
121
|
-
An example to bootstrap the app with. You can use an example name
|
|
122
|
-
from the official Zuplo repo or a GitHub URL. The URL can use
|
|
123
|
-
any branch and/or subdirectory
|
|
124
|
-
|
|
125
|
-
--example-path <path-to-example>
|
|
126
|
-
|
|
127
|
-
In a rare case, your GitHub URL might contain a branch name with
|
|
128
|
-
a slash (e.g. bug/fix-1) and the path to the example (e.g. foo/bar).
|
|
129
|
-
In this case, you must specify the path to the example separately:
|
|
130
|
-
--example-path foo/bar
|
|
131
|
-
|
|
132
|
-
--reset-preferences
|
|
133
|
-
|
|
134
|
-
Explicitly tell the CLI to reset any stored preferences
|
|
33
|
+
npm create zuplo-api@latest my-gateway -- --template ai-gateway
|
|
34
|
+
```
|
|
135
35
|
|
|
136
|
-
|
|
36
|
+
`--template` can't be combined with `--example` or `--empty`.
|
|
137
37
|
|
|
138
|
-
|
|
139
|
-
explicitly specified, without prompting.
|
|
38
|
+
### Non-interactive
|
|
140
39
|
|
|
141
|
-
|
|
142
|
-
|
|
40
|
+
You can also pass command line arguments to set up a new project
|
|
41
|
+
non-interactively. Common options:
|
|
42
|
+
|
|
43
|
+
| Option | Description |
|
|
44
|
+
| ---------------------------------------------------- | -------------------------------------------------------------------------------- |
|
|
45
|
+
| `--template <name>` | Built-in template: `default`, `default-empty`, or `ai-gateway` |
|
|
46
|
+
| `--empty` | Initialize an empty project (same as `--template default-empty`) |
|
|
47
|
+
| `-e, --example <name\|github-url>` | Bootstrap from a Zuplo example or a public GitHub URL |
|
|
48
|
+
| `--example-path <path>` | Path to the example when the GitHub branch name contains a slash |
|
|
49
|
+
| `--linter <linter>` | Linter to configure: `eslint`, `biome`, `oxlint`, or `none` |
|
|
50
|
+
| `--formatter <formatter>` | Formatter to configure: `prettier`, `biome`, `oxfmt`, or `none` |
|
|
51
|
+
| `--agents <agents>` | AI coding agents to configure (`claude,copilot,cursor,windsurf,codex`) or `none` |
|
|
52
|
+
| `--use-npm`, `--use-pnpm`, `--use-yarn`, `--use-bun` | Package manager to bootstrap with |
|
|
53
|
+
| `--no-install` | Skip installing packages |
|
|
54
|
+
| `--no-git` | Skip initializing a git repository |
|
|
55
|
+
| `--server-project` / `--no-server-project` | Create (or skip creating) a linked project on portal.zuplo.com |
|
|
56
|
+
| `--account <account-name>` | Zuplo account to host the project. Implies `--server-project` |
|
|
57
|
+
| `--yes` | Use saved preferences or defaults without prompting |
|
|
58
|
+
| `--reset-preferences` | Reset saved preferences |
|
|
59
|
+
|
|
60
|
+
Run `create-zuplo-api --help` for the full list.
|
|
143
61
|
|
|
144
62
|
### Why use Create Zuplo API?
|
|
145
63
|
|