In the hello world sample, if I add @Profile("greetings") to the hello command and start the app without activating the greetings profile, then the command is still registered, while it shouldn't.
This is similar to #1325 (quite the "opposite" of it) but at the command level, not the command's enclosing class level.