Skip to content

Wheels CLI ignores --no-sqlite argument #2855

Description

@teleotic

Describe the bug
Using wheels new --no-sqlite incorrectly results in SQLite database files still being created, and SQLite datasource code being generated. This was partially addressed in issue #2621 but the behavior remains. On investigation, the --no-sqlite argument is never passed through to Wheels CLI module.

To Reproduce
Steps to reproduce the behavior:

  1. Create new app with wheels new test_app --no-sqlite
  2. App is erroneously created with a SQLite database

Expected behavior
The SQLite database and related code should not be generated.

Desktop (please complete the following information):

  • OS: Ubuntu 26.04 LTS, Windows 11 Pro 25H2
  • Version: Wheels 4.0.2 (Linux), 4.0.3-snapshot.1966 (bleeding-edge)

Additional context
After testing several variations, it appears that no command line argument beginning with --no- is passed through to the Wheels CLI module (/wheels/cli/lucli/Module.cfc). Therefore options.noSQLite is never set to true and the default behavior continues. I have not determined whether this is a Wheels issue or a limitation with the upstream LuCLI tool. (LuCLI has a --no-agents option that may be causing a parsing problem, but this is just speculation.)

A possible quick fix is renaming the command line argument. For instance --nosqlite correctly passes through.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions