Skip to content

Data-ops "fileName" flag mismatch. #148

@carlo-kontent

Description

@carlo-kontent

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

  1. Create a config file using the fileName flag in camelCase (as per other commands).
  2. Run the migrate-content snapshot command using the config.
  3. Observe the error: Error: Invalid JSON config file: xxx
  4. 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.

Screenshots

Image

Image

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions