@rodyssey/cli 0.4.1 → 0.6.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 (3) hide show
  1. package/README.md +30 -0
  2. package/dist/cli.js +936 -311
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -125,6 +125,36 @@ scripts after `wrangler deploy` and widget manifest sync.
125
125
  after `bun run build`. It reads `build/client/widgets.manifest.json` by default,
126
126
  then PATCHes the CMS webapp config with `details.widgetManifest`.
127
127
 
128
+ ## Webapp Config
129
+
130
+ - `ro app config get` — fetch the current webapp config from the CMS.
131
+ - `ro app config set` — update webapp config fields (title, description, cover image, etc.) via delta PATCH.
132
+ - `ro app config pull` — write the CMS webapp config to a committed `webapp.config.json`.
133
+ - `ro app config push` — push `webapp.config.json` back to the CMS (diff preview + confirm; `--dry-run`, `-y`).
134
+ - `ro app deploy --push-config` — after deploying, push `webapp.config.json` if it differs from the CMS (otherwise you're prompted).
135
+
136
+ ## Entity groups
137
+
138
+ Manage membership of CMS entity groups (webapps, characters, scenes, stories). Requires a CLI session with the `cms:entity-groups:read`/`cms:entity-groups:write` scopes (`ro auth login`).
139
+
140
+ ```bash
141
+ ro group list --type webapp # groups with id, name, description, school, item count
142
+ ro group items <group-id> --type webapp # members of a group
143
+ ro group assign <group-id> --type webapp # add (defaults --id to WEBAPP_ID from .env; idempotent)
144
+ ro group remove <group-id> --type webapp --id <webapp-id>
145
+ ```
146
+
147
+ All subcommands accept `--json` for machine-readable output; writes accept `-y` and `--dry-run`.
148
+
149
+ ## Webapp assets
150
+
151
+ Upload or update R2-hosted webapp assets without a full deploy (uses `DEPLOY_TOKEN` from `.env`). Re-pushing a path overwrites it; the public URL is printed.
152
+
153
+ ```bash
154
+ ro app assets push ./cover.png --dest images # → prints public URL
155
+ ro app assets push ./public/img --dest img # recursive
156
+ ```
157
+
128
158
  ## Release
129
159
 
130
160
  Release automation lives in `.github/workflows/release.yml` and uses Changesets.