I have a project that was not created using ng new (rather, I followed the quickstart guide). When I run an angular CLI command in that project (such as n
You should be able to run ng init and follow the prompts. Have a look at this issue if you need some guidance: https://github.com/angular/angular-cli/issues/755
Edit (March 13, 2017):
ng-init was removed from the latest version of the angular cli.
https://github.com/angular/angular-cli/pull/4628
So for now you'll need to resort to mimicking what it tried to accomplish. ie:
Create a new angular project ng new myTemplate
Copy relevant files to your existing project from your new myTemplate project:
.angular-cli.json package.json tslint.json src/polyfills.ts src/styles.css src/tsconfig.json
Depending on the state of your existing application you may want to copy over way more or way less. I guess this is why the feature was removed from the CLI. There isn't really any way for it to know exactly what you want it to do.