@dotcms/dotcli 25.11.12-1 → 25.11.17-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 +54 -0
- package/bin/{dotcms-cli-25.11.12-1-linux-x86_64 → dotcms-cli-25.11.17-01-linux-x86_64} +0 -0
- package/bin/{dotcms-cli-25.11.12-1-osx-aarch_64 → dotcms-cli-25.11.17-01-osx-aarch_64} +0 -0
- package/bin/{dotcms-cli-25.11.12-1-osx-x86_64 → dotcms-cli-25.11.17-01-osx-x86_64} +0 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -254,6 +254,60 @@ In the following table you can see the different directories and files that conf
|
|
|
254
254
|
| `sites/` | Dir | Sites Directory |
|
|
255
255
|
| `.dot-workspace.yml` | File | CLI workspace marker |
|
|
256
256
|
|
|
257
|
+
## File Filtering with .dotcliignore
|
|
258
|
+
|
|
259
|
+
When pushing files to dotCMS, you can exclude specific files and directories by creating a `.dotcliignore` file in your workspace. This file works similarly to `.gitignore` and supports standard glob patterns.
|
|
260
|
+
|
|
261
|
+
### Pattern Syntax
|
|
262
|
+
|
|
263
|
+
The `.dotcliignore` file supports the following glob patterns:
|
|
264
|
+
|
|
265
|
+
- `*` - Matches any sequence of characters within a single directory level
|
|
266
|
+
- `**` - Matches any sequence of characters across multiple directory levels
|
|
267
|
+
- `?` - Matches any single character
|
|
268
|
+
- `[]` - Matches a character class (e.g., `[abc]` or `[0-9]`)
|
|
269
|
+
- `!` - Negates a pattern to re-include files that were previously excluded
|
|
270
|
+
|
|
271
|
+
### Hierarchical Pattern Loading
|
|
272
|
+
|
|
273
|
+
The CLI loads `.dotcliignore` files hierarchically from the current directory up to the workspace root. Patterns defined in child directories take precedence over parent directories, allowing you to override parent exclusions.
|
|
274
|
+
|
|
275
|
+
### Usage Examples
|
|
276
|
+
|
|
277
|
+
Create a `.dotcliignore` file in your workspace with patterns like:
|
|
278
|
+
|
|
279
|
+
```
|
|
280
|
+
# Ignore all log files
|
|
281
|
+
*.log
|
|
282
|
+
|
|
283
|
+
# Ignore build directories
|
|
284
|
+
build/
|
|
285
|
+
dist/
|
|
286
|
+
target/
|
|
287
|
+
|
|
288
|
+
# Ignore OS-specific files
|
|
289
|
+
**/.DS_Store
|
|
290
|
+
**/Thumbs.db
|
|
291
|
+
|
|
292
|
+
# Ignore dependencies
|
|
293
|
+
node_modules/
|
|
294
|
+
vendor/
|
|
295
|
+
|
|
296
|
+
# Re-include a specific log file (negation)
|
|
297
|
+
!important.log
|
|
298
|
+
```
|
|
299
|
+
|
|
300
|
+
### Notes
|
|
301
|
+
|
|
302
|
+
- Lines starting with `#` are treated as comments
|
|
303
|
+
- Blank lines are ignored
|
|
304
|
+
- Leading and trailing whitespace is automatically removed from patterns
|
|
305
|
+
- To preserve trailing spaces in a pattern, escape them with a backslash: `pattern\ `
|
|
306
|
+
- Patterns are evaluated relative to the workspace root
|
|
307
|
+
- Directory patterns should end with `/`
|
|
308
|
+
- Files matching ignore patterns will be excluded during `files push` operations
|
|
309
|
+
- Pull operations are not affected by `.dotcliignore` files
|
|
310
|
+
|
|
257
311
|
## GitHub Actions Integration
|
|
258
312
|
We provide support for GitHub Actions to be able to run the CLI as part of your CI/CD pipeline.
|
|
259
313
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dotcms/dotcli",
|
|
3
|
-
"version": "25.11.
|
|
3
|
+
"version": "25.11.17-1",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"postinstall": "node src/postinstall.js install",
|
|
6
6
|
"postuninstall": "node src/postinstall.js uninstall && npm prune"
|
|
7
7
|
},
|
|
8
8
|
"binaries": {
|
|
9
|
-
"dotcms-cli-darwin-arm64": "bin/dotcms-cli-25.11.
|
|
10
|
-
"dotcms-cli-darwin-x64": "bin/dotcms-cli-25.11.
|
|
11
|
-
"dotcms-cli-linux-x64": "bin/dotcms-cli-25.11.
|
|
9
|
+
"dotcms-cli-darwin-arm64": "bin/dotcms-cli-25.11.17-01-osx-aarch_64",
|
|
10
|
+
"dotcms-cli-darwin-x64": "bin/dotcms-cli-25.11.17-01-osx-x86_64",
|
|
11
|
+
"dotcms-cli-linux-x64": "bin/dotcms-cli-25.11.17-01-linux-x86_64"
|
|
12
12
|
},
|
|
13
13
|
"alias": "dotcli",
|
|
14
14
|
"packageName": "dotcms-cli",
|