How do I turn off user input when running forge lint in CI?

My CI pipeline won’t build anything due to forge lint deciding it wants some interaction:

I can’t see anything in npx forge lint --help about how to turn this off:

Usage: forge lint [options]

check the source files for common errors

Options:
  --verbose                        enable verbose mode
  --fix                            attempt to automatically fix any issues encountered (default: false)
  -e, --environment [environment]  specify the environment (see your default environment by running forge settings
                                   list)
  -h, --help                       display help for command

@PaulCampbell1,

It’s not a lint-specific option but you can avoid that prompt for all commands by using forge settings set usage-analytics true (or false). That, and other CI/CD tips, are covered in the docs on setting up continuous delivery for Forge apps.

2 Likes