79 lines
2.0 KiB
Markdown
79 lines
2.0 KiB
Markdown
# Acupedia CLI
|
|
|
|
acupedia-ops bootstrap all \
|
|
--content-config ./config.json \
|
|
--content-modules-root ./modules-data \
|
|
--content-module-code M0001 \
|
|
--media-manifest ./media.json \
|
|
--media-media-root ./modules-data/M0001-Acupuncture Points
|
|
|
|
acupedia-ops bootstrap media \
|
|
--manifest "./modules-data/M0001-Acupuncture Points/media.json" \
|
|
--media-root "./modules-data/M0001-Acupuncture Points" \
|
|
--validate-only
|
|
|
|
acupedia-ops bootstrap media \
|
|
--manifest "./modules-data/M0001-Acupuncture Points/media.json" \
|
|
--media-root "./modules-data/M0001-Acupuncture Points"
|
|
|
|
acupedia-ops bootstrap content \
|
|
--config ./modules-data/config.json \
|
|
--modules-root ./modules-data \
|
|
--module-code M0001 \
|
|
--publish-content
|
|
|
|
acupedia-ops bootstrap content \
|
|
--config ./modules-data/config.json \
|
|
--modules-root ./modules-data \
|
|
--module-code M0001 \
|
|
--seed-search-facets-only
|
|
|
|
acupedia-ops bootstrap content \
|
|
--config ./modules-data/config.json \
|
|
--modules-root ./modules-data \
|
|
--module-code M0001 \
|
|
--template-code M0001_CT0003 \
|
|
--content-code LU-1 \
|
|
--publish-content
|
|
|
|
aacupedia-ops bootstrap commerce --plans ./modules-data/plans.json
|
|
|
|
acupedia-ops reset \
|
|
--scope module \
|
|
--module-code M0002 \
|
|
--execute
|
|
|
|
acupedia-access grant-plan \
|
|
--email av.salunke@gmail.com \
|
|
--plan-code POINTS_ACU
|
|
|
|
|
|
Grant a plan and all modules mapped through `commerce.access_plan_modules`:
|
|
|
|
```bash
|
|
acupedia-ops access grant-plan \
|
|
--email user@example.com \
|
|
--plan-code POINTS_ACU
|
|
```
|
|
|
|
Optional finite test access:
|
|
|
|
```bash
|
|
acupedia-ops access grant-plan \
|
|
--email user@example.com \
|
|
--plan-code POINTS_ACU \
|
|
--expires-in-days 30
|
|
```
|
|
|
|
Revoke access sourced from the plan:
|
|
|
|
```bash
|
|
acupedia-ops access revoke-plan \
|
|
--email user@example.com \
|
|
--plan-code POINTS_ACU
|
|
```
|
|
|
|
`--user-id <uuid>` can be used instead of `--email`.
|
|
|
|
The grant operation is idempotent for an already-active subscription and active module entitlements. It never invents plan/module mappings; the selected plan must already have rows in `commerce.access_plan_modules`.
|