Hi, I had a look and the CLI indeeds return 0 when trait properties validation fails, whether the property is passed with the -t option or with modeline.
It should be fixed with https://github.com/apache/camel-k/pull/2964 Thanks a lot for reporting the issue. Antonin On 28 Jan 2022, at 13:27, Roberto Camelk <betonetotbo.cam...@gmail.com<mailto:betonetotbo.cam...@gmail.com>> wrote: I'm using kamel CLI to launch my integrations programmatically. I was testing the kamel exit code, assuming that 0 (zero) is "everything ok". But recently I have launched an integration containing a invalid Modeline: //camel-k: trait=prometeus.enabled=true The correct is ("h" was missing): //camel-k: trait=prometheus.enabled=true But the kamel exited with code "0", and the integration was not launched. So, this behavior is a BUG or is it expected? How can I guarantee that my integration was launched?