Receive notifications about upcoming Intlayer releases

    error: unknown command fill / build / etc

    If npx intlayer fill --verbose gives:

    error: unknown command 'fill'

    but you're sure the fill command should exist, here are the steps to resolve it:

    1. Ensure you're using the latest version

    Run:

    npx intlayer --version                  # current locale intlayer versionnpx intlayer@latest --version           # current latest intlayer version

    This forces npx to pull the most recent version. Then try again:

    npx intlayer@latest build --verbose

    2. Check if the command is registered

    You can check with:

    npx intlayer --help                     # provide informations related to the commands

    See if the command appears in the command list.

    Go to the repo, and confirm that your command is exported and registered in the CLI entry point. Intlayer used commander as framework.

    Code regarding the CLI: https://github.com/aymericzip/intlayer/blob/main/packages/%40intlayer/cli/src/cli.ts

    4. Restart your terminal

    Sometimes a terminal restart is needed to recognize new commands.

    If you're developing intlayer locally:

    # In the intlayer directorynpm installnpm run buildnpm link

    Then in another terminal:

    intlayer fill --verbose

    This uses the local version you’re working on.

    6. Clear npx cache (if you're stuck with an older version)

    npx clear-npx-cache

    Or manually delete cached intlayer packages:

    rm -rf ~/.npm/_npx

    Check equivalent if you use pnpm, yarn, bun or other package manager