@neopress/cli 4.9.0 → 4.10.1
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 +12 -0
- package/dist/bin.cjs +520 -27049
- package/dist/index.d.ts +205 -62
- package/dist/index.js +344 -26950
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -64,6 +64,12 @@ neopress pages create --path /about --i18n @i18n.json --public-locales en,ko
|
|
|
64
64
|
neopress entries create --collection 12 --data @entry.json --title Hello
|
|
65
65
|
neopress entries publish <entryId>
|
|
66
66
|
|
|
67
|
+
# Configure a reusable conversion event and funnel
|
|
68
|
+
neopress analytics events create --data '{"name":"Signup","eventType":"form","path":"*","formId":"3"}'
|
|
69
|
+
neopress analytics events create --data '{"name":"Outbound links","eventType":"outbound"}'
|
|
70
|
+
neopress analytics events update <eventId> --data '{"name":"Completed signup"}'
|
|
71
|
+
neopress analytics funnels create --data @funnel.json
|
|
72
|
+
|
|
67
73
|
# Preview, then publish the whole site
|
|
68
74
|
neopress publish preview
|
|
69
75
|
neopress publish
|
|
@@ -107,3 +113,9 @@ Per-project defaults can also live in `.neopressrc.json` (or
|
|
|
107
113
|
```json
|
|
108
114
|
{ "siteId": 42, "baseUrl": "https://app.neopress.ai" }
|
|
109
115
|
```
|
|
116
|
+
|
|
117
|
+
## Multilingual content
|
|
118
|
+
|
|
119
|
+
`pages update <id> --public-locales en,ko` changes the draft public languages; publish the site to apply it. `--public-locales null` means default-language-only, and `--public-locales '[]'` means no public languages. These lists are independent of translated page text and global visibility.
|
|
120
|
+
|
|
121
|
+
`entries create-translation <sourceId> --locale ko` returns an existing linked translation or copies the source into a new draft. Translate the returned row's text with an update and publish that entry separately. Collection option labels use `optionI18n`; form translations use flat `draftI18n.translations[textKey][locale]`. Both retain shared schemas and stable ids.
|