@myop/cli 0.1.54 → 0.1.56

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 CHANGED
@@ -103,6 +103,34 @@ Install dependencies and set up your Myop project.
103
103
  myop install
104
104
  ```
105
105
 
106
+ ### `myop export`
107
+
108
+ Export components as static JSON files for self-hosting. Fetches your components from the Myop cloud and writes them to a local directory.
109
+
110
+ ```bash
111
+ # Full export — all components
112
+ myop export --api-key myop_sk_...
113
+
114
+ # Export to a specific directory
115
+ myop export --api-key myop_sk_... --output ./components
116
+
117
+ # Incremental export — only specific releases (used by CI/CD webhooks)
118
+ myop export --api-key myop_sk_... --releases '[{"componentId":"abc","environment":"production"}]'
119
+
120
+ # Single component export
121
+ myop export --api-key myop_sk_... --component abc --env production
122
+ ```
123
+
124
+ **Options:**
125
+ - `-k, --api-key <key>` - Myop API key (or set `MYOP_API_KEY` env var)
126
+ - `-o, --output <dir>` - Output directory (default: `./myop-static`)
127
+ - `-u, --url <url>` - Myop API URL (or set `MYOP_API_URL` env var)
128
+ - `--releases <json>` - JSON array of releases for incremental sync
129
+ - `--component <id>` - Single component ID
130
+ - `--env <env>` - Environment (used with `--component`)
131
+
132
+ See the [Self-Hosting docs](https://docs.myop.dev/docs/self-hosting/) for setup guides and GitHub Actions workflows.
133
+
106
134
  ### `myop sync`
107
135
 
108
136
  Synchronize your components with the Myop cloud.