What is the best solution to build several CDT C++ projects from the command line? The projects have references and so it is not possible to just build single projects.
Headless build with the manage builder is currently not supported, see bug 186847 - CDT internal builder does not support automated command line builds.
If you use the unmanaged (make) builder, then you already have Makefiles that you can use from the command line.