Nx provides you with a more convenient syntax to run commands within your workspace projects.
Either nx <target> <project> or nx run <project>:<target> will work, but usually the first one is more convenient to use.
nx <target> <project>
nx run <project>:<target>