You can run multiple projects using the run-many command from Nx and setting a --target flag with the command you want to run.
run-many
--target
For example npx nx run-many --target=build
npx nx run-many --target=build