-
Couldn't load subscription status.
- Fork 5
Description
Brief bug description
The fileName flag casing is inconsistent in the migrate-content snapshot command. While other commands use fileName (camelCase), this command requires filename (lowercase), which leads to confusion and errors.
Repro steps
- Create a config file using the fileName flag in camelCase (as per other commands).
- Run the migrate-content snapshot command using the config.
- Observe the error: Error: Invalid JSON config file: xxx
- Compare with the official documentation, which correctly uses fileName.
Expected behavior
The migrate-content snapshot command should accept fileName in camelCase for consistency with other commands.
Test environment
- Platform/OS: macOS 13.6
- Browser: N/A (CLI tool)
- Version: @kontent-ai/data-ops (v2.3.12)
Additional context
The documentation shows the correct camelCase usage of fileName:
https://github.com/kontent-ai/data-ops/blob/main/src/commands/migrateContent/snapshot/README.md#parameters
However, the command implementation currently expects filename in lowercase, which results in an error if used as per the docs. This is the only case mismatch I’ve found so far, but there may be others.


