Not sure what exactly you are looking for but if im guessing correctly it is something like this: formatting-your-code-using-the-eclipse-code-formatter.
This describes how to execute the eclipse built in formatter using the command line. You can also enable the format per project.