@pitaj Well, this info is golden.
This clearly needs to be documented well and easily found. The usage message of ./nodebb setup --help should indicate the expected syntax and strikingly point out config.json is the wrong syntax in this case to be fed into ./nodebb setup.
In the long run, there should be no special case or different syntax between node app --setup and ./nodebb setup.