buildx-cli 1.0.21 → 1.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.
- package/README.md +70 -0
- package/dist/README.md +70 -0
- package/dist/index.cjs +2 -2
- package/dist/index.js +2 -2
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -160,6 +160,76 @@ Shows currently selected default project.
|
|
|
160
160
|
npx buildx-cli projects:current
|
|
161
161
|
```
|
|
162
162
|
|
|
163
|
+
### Users
|
|
164
|
+
|
|
165
|
+
#### `user:list`
|
|
166
|
+
Lists users in project scope.
|
|
167
|
+
|
|
168
|
+
```bash
|
|
169
|
+
npx buildx-cli user:list --project-id hello-world
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
#### `user:create`
|
|
173
|
+
Creates a user in project scope.
|
|
174
|
+
|
|
175
|
+
```bash
|
|
176
|
+
npx buildx-cli user:create --project-id hello-world --username demo --password secret --name "Demo User" --email demo@example.com
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
### Data Commands
|
|
180
|
+
|
|
181
|
+
#### `data:list <collection-id>`
|
|
182
|
+
List documents from a collection.
|
|
183
|
+
|
|
184
|
+
```bash
|
|
185
|
+
npx buildx-cli data:list employees --project-id hello-world --limit 20 --sort '{"createdAt":-1}'
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
#### `data:get <collection-id> <document-id>`
|
|
189
|
+
Get one document by ID.
|
|
190
|
+
|
|
191
|
+
```bash
|
|
192
|
+
npx buildx-cli data:get employees 65fabc... --project-id hello-world
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
#### `data:create <collection-id>`
|
|
196
|
+
Create one document from JSON.
|
|
197
|
+
|
|
198
|
+
```bash
|
|
199
|
+
npx buildx-cli data:create employees --project-id hello-world --data '{"name":"Alice","email":"alice@example.com"}'
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
#### `data:update <collection-id> <document-id>`
|
|
203
|
+
Update one document from JSON.
|
|
204
|
+
|
|
205
|
+
```bash
|
|
206
|
+
npx buildx-cli data:update employees 65fabc... --project-id hello-world --data '{"name":"Alice Updated"}'
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
#### `data:delete <collection-id> <document-id>`
|
|
210
|
+
Delete one document.
|
|
211
|
+
|
|
212
|
+
```bash
|
|
213
|
+
npx buildx-cli data:delete employees 65fabc... --project-id hello-world
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
#### `data:export <collection-id>`
|
|
217
|
+
Export collection data to JSON file.
|
|
218
|
+
|
|
219
|
+
```bash
|
|
220
|
+
npx buildx-cli data:export employees --project-id hello-world --output ./employees.json --filter '{"status":"active"}'
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
#### `data:import <collection-id>`
|
|
224
|
+
Import JSON array into a collection.
|
|
225
|
+
|
|
226
|
+
```bash
|
|
227
|
+
npx buildx-cli data:import employees --project-id hello-world --input ./employees.json
|
|
228
|
+
npx buildx-cli data:import employees --project-id hello-world --input ./employees.json --mode upsert
|
|
229
|
+
npx buildx-cli data:import employees --project-id hello-world --input ./employees.json --mode upsert --upsert-key email
|
|
230
|
+
npx buildx-cli data:import employees --project-id hello-world --input ./employees.json --mode upsert --upsert-key tenant_id,employee_code
|
|
231
|
+
```
|
|
232
|
+
|
|
163
233
|
### Schema Commands
|
|
164
234
|
|
|
165
235
|
#### `schema:pull`
|
package/dist/README.md
CHANGED
|
@@ -160,6 +160,76 @@ Shows currently selected default project.
|
|
|
160
160
|
npx buildx-cli projects:current
|
|
161
161
|
```
|
|
162
162
|
|
|
163
|
+
### Users
|
|
164
|
+
|
|
165
|
+
#### `user:list`
|
|
166
|
+
Lists users in project scope.
|
|
167
|
+
|
|
168
|
+
```bash
|
|
169
|
+
npx buildx-cli user:list --project-id hello-world
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
#### `user:create`
|
|
173
|
+
Creates a user in project scope.
|
|
174
|
+
|
|
175
|
+
```bash
|
|
176
|
+
npx buildx-cli user:create --project-id hello-world --username demo --password secret --name "Demo User" --email demo@example.com
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
### Data Commands
|
|
180
|
+
|
|
181
|
+
#### `data:list <collection-id>`
|
|
182
|
+
List documents from a collection.
|
|
183
|
+
|
|
184
|
+
```bash
|
|
185
|
+
npx buildx-cli data:list employees --project-id hello-world --limit 20 --sort '{"createdAt":-1}'
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
#### `data:get <collection-id> <document-id>`
|
|
189
|
+
Get one document by ID.
|
|
190
|
+
|
|
191
|
+
```bash
|
|
192
|
+
npx buildx-cli data:get employees 65fabc... --project-id hello-world
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
#### `data:create <collection-id>`
|
|
196
|
+
Create one document from JSON.
|
|
197
|
+
|
|
198
|
+
```bash
|
|
199
|
+
npx buildx-cli data:create employees --project-id hello-world --data '{"name":"Alice","email":"alice@example.com"}'
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
#### `data:update <collection-id> <document-id>`
|
|
203
|
+
Update one document from JSON.
|
|
204
|
+
|
|
205
|
+
```bash
|
|
206
|
+
npx buildx-cli data:update employees 65fabc... --project-id hello-world --data '{"name":"Alice Updated"}'
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
#### `data:delete <collection-id> <document-id>`
|
|
210
|
+
Delete one document.
|
|
211
|
+
|
|
212
|
+
```bash
|
|
213
|
+
npx buildx-cli data:delete employees 65fabc... --project-id hello-world
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
#### `data:export <collection-id>`
|
|
217
|
+
Export collection data to JSON file.
|
|
218
|
+
|
|
219
|
+
```bash
|
|
220
|
+
npx buildx-cli data:export employees --project-id hello-world --output ./employees.json --filter '{"status":"active"}'
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
#### `data:import <collection-id>`
|
|
224
|
+
Import JSON array into a collection.
|
|
225
|
+
|
|
226
|
+
```bash
|
|
227
|
+
npx buildx-cli data:import employees --project-id hello-world --input ./employees.json
|
|
228
|
+
npx buildx-cli data:import employees --project-id hello-world --input ./employees.json --mode upsert
|
|
229
|
+
npx buildx-cli data:import employees --project-id hello-world --input ./employees.json --mode upsert --upsert-key email
|
|
230
|
+
npx buildx-cli data:import employees --project-id hello-world --input ./employees.json --mode upsert --upsert-key tenant_id,employee_code
|
|
231
|
+
```
|
|
232
|
+
|
|
163
233
|
### Schema Commands
|
|
164
234
|
|
|
165
235
|
#### `schema:pull`
|