Essentially, 'ng build my-app' is not a functionality of Angular CLI. CLI just recognises it as an alias and translate to 'ng run my-app:build'. 'ng run' is a fundamental command of CLI.
If 'my-app' project has 'build' architect, it'll executed.
If not, It'll fail.
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!