@payload-cc/payload-collection-cli 1.0.0 → 1.0.8
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 +4 -6
- package/dist/bin.mjs +0 -0
- package/package.json +16 -7
package/README.md
CHANGED
|
@@ -6,11 +6,9 @@ Allows for magical, easy-to-use bulk imports, updates, deletions and operations
|
|
|
6
6
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
9
|
-
*(Note: The package requires publishing to the npm registry. It is currently built for CI/CD)*
|
|
10
|
-
|
|
11
9
|
```bash
|
|
12
|
-
pnpm add payload-collection-cli
|
|
13
|
-
# or npm install payload-collection-cli
|
|
10
|
+
pnpm add @payload-cc/payload-collection-cli
|
|
11
|
+
# or npm install @payload-cc/payload-collection-cli
|
|
14
12
|
```
|
|
15
13
|
|
|
16
14
|
## Quick Start
|
|
@@ -19,10 +17,10 @@ You can immediately start using the commands without any configuration!
|
|
|
19
17
|
|
|
20
18
|
```bash
|
|
21
19
|
# Bulk create/upsert from jsonlines
|
|
22
|
-
npx payload-collection-cli posts upsert data.jsonl
|
|
20
|
+
npx @payload-cc/payload-collection-cli posts upsert data.jsonl
|
|
23
21
|
|
|
24
22
|
# Simple JSON update
|
|
25
|
-
npx payload-collection-cli users update '{"email": "user@example.com", "name": "New Name"}'
|
|
23
|
+
npx @payload-cc/payload-collection-cli users update '{"email": "user@example.com", "name": "New Name"}'
|
|
26
24
|
```
|
|
27
25
|
|
|
28
26
|
## Available Actions
|
package/dist/bin.mjs
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@payload-cc/payload-collection-cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"description": "Functional CLI for Payload 3.0 collection management",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/payload-cc/payload-collection-cli.git"
|
|
8
|
+
},
|
|
9
|
+
"publishConfig": {
|
|
10
|
+
"access": "public",
|
|
11
|
+
"provenance": true
|
|
12
|
+
},
|
|
5
13
|
"bin": {
|
|
6
14
|
"payload-collection-cli": "./dist/bin.js"
|
|
7
15
|
},
|
|
@@ -11,13 +19,19 @@
|
|
|
11
19
|
"files": [
|
|
12
20
|
"dist"
|
|
13
21
|
],
|
|
22
|
+
"scripts": {
|
|
23
|
+
"build": "tsup src/index.ts src/bin.ts --format cjs,esm --dts --clean --shims && chmod +x dist/bin.js",
|
|
24
|
+
"release": "pnpm build && pnpm publish --access public",
|
|
25
|
+
"test": "vitest run"
|
|
26
|
+
},
|
|
14
27
|
"keywords": [
|
|
15
28
|
"payload",
|
|
16
29
|
"payload-cms",
|
|
17
30
|
"cli"
|
|
18
31
|
],
|
|
19
32
|
"author": "",
|
|
20
|
-
"license": "
|
|
33
|
+
"license": "Apache-2.0",
|
|
34
|
+
"packageManager": "pnpm@10.32.1",
|
|
21
35
|
"peerDependencies": {
|
|
22
36
|
"payload": "^3.0.0"
|
|
23
37
|
},
|
|
@@ -32,10 +46,5 @@
|
|
|
32
46
|
"tsup": "^8.5.1",
|
|
33
47
|
"typescript": "^5.9.3",
|
|
34
48
|
"vitest": "^4.1.0"
|
|
35
|
-
},
|
|
36
|
-
"scripts": {
|
|
37
|
-
"build": "tsup src/index.ts src/bin.ts --format cjs,esm --dts --clean --shims",
|
|
38
|
-
"release": "pnpm build && pnpm publish --access public",
|
|
39
|
-
"test": "vitest run"
|
|
40
49
|
}
|
|
41
50
|
}
|