@hyper3d/cli 0.1.0-beta.3.1 → 0.1.0

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.
Files changed (2) hide show
  1. package/README.md +61 -36
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,15 +1,16 @@
1
1
  # Hyper3D CLI
2
2
 
3
- Generate 3D models from text or images, follow their progress, and get the finished
4
- files from your terminal.
3
+ Generate Rodin Gen-2.5 3D models from text or reference images, split completed
4
+ models into parts with BANG, and retrieve download links from your terminal.
5
+ Use readable output interactively or JSON output in scripts.
5
6
 
6
7
  ## Install
7
8
 
8
- Requires **Node.js 22 or newer**. The package is being prepared for its first npm
9
- release; the registry commands below become available after that release.
9
+ Requires **Node.js 22 or newer** and a Hyper3D account. Install the stable release:
10
10
 
11
11
  ```sh
12
- npm install --global @hyper3d/cli
12
+ npm install --global @hyper3d/cli@latest
13
+ hyper3d --version
13
14
  hyper3d --help
14
15
  ```
15
16
 
@@ -26,8 +27,8 @@ yarn dlx @hyper3d/cli@latest --help
26
27
  ```
27
28
 
28
29
  For a project-local installation, run `npm install --save-dev @hyper3d/cli`, then
29
- `npx hyper3d --help`. To try the latest beta build, use `@hyper3d/cli@beta`
30
- in place of `@hyper3d/cli`.
30
+ `npx hyper3d --help`. For preview builds or switching from beta to stable, see
31
+ [Updates](#updates).
31
32
 
32
33
  ## Sign in
33
34
 
@@ -50,7 +51,8 @@ Signing out locally does not revoke your server-side authorization.
50
51
 
51
52
  ## Generate a model
52
53
 
53
- Generation uses credits from your authorized workspace.
54
+ Generation uses credits from the personal or team workspace you authorized at
55
+ sign-in. Run `hyper3d auth status` to check that workspace and its credit balances.
54
56
 
55
57
  ```sh
56
58
  # From text
@@ -73,7 +75,7 @@ Provide a prompt, one to five images, or both. Generation options:
73
75
  | `--quality` | Target polygon count: Raw `500–1,000,000`; Quad `1,000–50,000` | Raw `500,000`; Quad `18,000` |
74
76
 
75
77
  Defaults are applied by the server. The response includes a generation ID; use
76
- it to check progress and retrieve the result:
78
+ it in place of `<generation-id>` to check progress and retrieve the result:
77
79
 
78
80
  ```sh
79
81
  hyper3d status <generation-id>
@@ -81,10 +83,15 @@ hyper3d poll <generation-id> --timeout 300
81
83
  hyper3d result <generation-id>
82
84
  ```
83
85
 
84
- `poll` waits up to the requested number of seconds. `result` returns download URLs;
85
- it does not download files to your machine.
86
+ `status` checks progress once. `poll` waits until generation finishes or the
87
+ timeout expires (30 seconds by default). A polling timeout does not cancel the
88
+ generation; run `status` or `poll` again to keep following it. Once generation
89
+ completes, `result` returns download URLs; it does not save files to your machine.
86
90
 
87
- To separate a completed model into parts:
91
+ ## Split a model with BANG
92
+
93
+ Pass a completed model's generation ID to BANG. Omit `--instruction` for automatic
94
+ split planning, or describe the parts you want to separate:
88
95
 
89
96
  ```sh
90
97
  hyper3d bang <generation-id> --instruction "separate the handle and lid"
@@ -96,6 +103,9 @@ hyper3d bang <generation-id> --instruction "separate the handle and lid"
96
103
  | `--strength` | Integer `1–12`; soft target for the number of parts, so the actual count may vary | `5` |
97
104
  | `--format` | `glb`, `usdz`, `fbx`, `obj`, `stl` | `glb` |
98
105
 
106
+ BANG uses credits and returns a new generation ID. Use that new ID with `status`,
107
+ `poll`, and `result` to follow the split and retrieve its output.
108
+
99
109
  Run `hyper3d <command> --help` for more options. If a generation request times out,
100
110
  check your existing tasks before submitting it again; the CLI never retries
101
111
  billable generation automatically.
@@ -115,15 +125,19 @@ exit with code `1`.
115
125
 
116
126
  ## Updates
117
127
 
128
+ For a global npm installation:
129
+
118
130
  ```sh
119
131
  hyper3d update --check
120
132
  hyper3d update
121
133
  ```
122
134
 
135
+ `update --check` reports the installed version, the channel's target version, and
136
+ whether an update is available. `update` installs it when the target is newer.
137
+ Stable versions follow `latest`; beta versions follow `beta`.
138
+
123
139
  An interactive **npm global installation** checks for updates once a day before
124
- model commands and only displays an update notice by default. Stable installations
125
- follow `latest`; prerelease-branch builds follow `beta`. Run `hyper3d update` to install
126
- an available update.
140
+ model commands and only displays an update notice by default.
127
141
 
128
142
  Set `HYPER3D_AUTO_UPDATE=1` to opt into automatic installation (which asks you to
129
143
  rerun your command before submitting the model operation), or
@@ -143,9 +157,37 @@ npm install --save-dev @hyper3d/cli@latest
143
157
  npx @hyper3d/cli@latest --help
144
158
  ```
145
159
 
146
- To switch channels explicitly, install `@hyper3d/cli@latest` or
147
- `@hyper3d/cli@beta` with your package manager. `hyper3d update` only upgrades to a
148
- newer version and never downgrades a pinned installation.
160
+ Beta installations continue following beta after a stable release. To switch
161
+ channels explicitly, install the desired tag with your package manager:
162
+
163
+ ```sh
164
+ # Switch to the stable release, including from beta
165
+ npm install --global @hyper3d/cli@latest
166
+
167
+ # Opt into beta builds
168
+ npm install --global @hyper3d/cli@beta
169
+ ```
170
+
171
+ `hyper3d update` only installs newer versions. Reinstalling a tag explicitly also
172
+ lets you switch to a channel whose current version is older than yours.
173
+
174
+ ## Configuration
175
+
176
+ The defaults work with the public Hyper3D service. To use another environment:
177
+
178
+ ```sh
179
+ hyper3d --base-url https://api.hyper3d.com/api auth status
180
+ ```
181
+
182
+ | Setting | Purpose | Default |
183
+ | ---------------------- | ----------------------------------------------------------------- | ----------------------------- |
184
+ | `BASE_URL` | API base URL; `--base-url` takes precedence | `https://api.hyper3d.com/api` |
185
+ | `HYPER3D_CONFIG_DIR` | Directory for credentials and update state | `~/.hyper3d` |
186
+ | `HYPER3D_AUTO_UPDATE` | Set to `1` to install updates automatically before model commands | Disabled |
187
+ | `HYPER3D_UPDATE_CHECK` | Set to `0` to disable automatic update checks and installation | Enabled |
188
+
189
+ API URLs require HTTPS except for localhost. Use a nonempty absolute path when
190
+ setting `HYPER3D_CONFIG_DIR`.
149
191
 
150
192
  ## Troubleshooting
151
193
 
@@ -161,24 +203,7 @@ newer version and never downgrades a pinned installation.
161
203
  directory (`~/.hyper3d` by default, or the directory set by `HYPER3D_CONFIG_DIR`),
162
204
  then run `hyper3d update`.
163
205
 
164
- The API base URL defaults to `https://api.hyper3d.com/api`. Set `BASE_URL` to
165
- use another environment; a trailing slash is optional:
166
-
167
- ```sh
168
- BASE_URL=https://api.hyper3d.com/api/ hyper3d auth status
169
- hyper3d --base-url https://api.hyper3d.com/api auth status
170
- ```
171
-
172
- `--base-url` overrides `BASE_URL`. MCP (`mcp`), account (`user/get_info`) and
173
- team (`group/group_info`) endpoints are derived from this base. HTTPS is required
174
- except for localhost. OAuth endpoints remain server-discovered, and upload/result
175
- URLs remain server-provided.
176
-
177
- `HYPER3D_CONFIG_DIR` changes the directory for credentials, the update cache
178
- (`update-check.json`), and the update lock (`update.lock`). If unset, it defaults to
179
- `~/.hyper3d`. Relative paths resolve from the current working directory; an empty
180
- value uses the current working directory rather than the default. Use a nonempty
181
- absolute path for a consistent location across commands.
206
+ ## Contributing and support
182
207
 
183
208
  For development and releases, see [CONTRIBUTING.md](https://github.com/DeemosTech/hyper3d-cli/blob/main/CONTRIBUTING.md) and the
184
209
  [release guide](https://github.com/DeemosTech/hyper3d-cli/blob/main/docs/releasing.md). Report problems in
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyper3d/cli",
3
- "version": "0.1.0-beta.3.1",
3
+ "version": "0.1.0",
4
4
  "description": "Hyper3D CLI backed by MCP",
5
5
  "repository": {
6
6
  "type": "git",