directus-template-cli 0.6.0-beta.1 → 0.6.0-beta.2
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 +14 -0
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -181,6 +181,18 @@ Using email/password:
|
|
|
181
181
|
npx directus-template-cli@latest extract -p --templateName="My Template" --templateLocation="./my-template" --userEmail="admin@example.com" --userPassword="admin" --directusUrl="http://localhost:8055"
|
|
182
182
|
```
|
|
183
183
|
|
|
184
|
+
Skipping extracting content from sensitive or large collections:
|
|
185
|
+
|
|
186
|
+
```
|
|
187
|
+
npx directus-template-cli@latest extract -p --templateName="My Template" --templateLocation="./my-template" --directusToken="admin-token-here" --directusUrl="http://localhost:8055" --excludeCollections="posts,globals"
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
Skipping extracting files and assets:
|
|
191
|
+
|
|
192
|
+
```
|
|
193
|
+
npx directus-template-cli@latest extract -p --templateName="My Template" --templateLocation="./my-template" --directusToken="admin-token-here" --directusUrl="http://localhost:8055" --skipFiles
|
|
194
|
+
```
|
|
195
|
+
|
|
184
196
|
Available flags for programmatic mode:
|
|
185
197
|
|
|
186
198
|
- `--directusUrl`: URL of the Directus instance to extract the template from (required)
|
|
@@ -189,6 +201,8 @@ Available flags for programmatic mode:
|
|
|
189
201
|
- `--userPassword`: Password for Directus authentication (required if not using token)
|
|
190
202
|
- `--templateLocation`: Directory to extract the template to (required)
|
|
191
203
|
- `--templateName`: Name of the template (required)
|
|
204
|
+
- `--excludeCollections`: Comma-separated list of collection names to exclude from extraction
|
|
205
|
+
- `--skipFiles`: Skip extracting files and assets
|
|
192
206
|
|
|
193
207
|
#### Using Environment Variables
|
|
194
208
|
|
package/oclif.manifest.json
CHANGED