Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialliamthornback2
9,618 Points"ng help new" vs "ng new --help"
On my terminal "ng help new" doesn't work, while "ng new --help" does work.
Here is what is returned by "ng help new" on my terminal:
Available Commands:
add Add support for a library to your project.
new Creates a new directory and a new Angular app.
generate Generates and/or modifies files based on a schematic.
update Updates your application and its dependencies.
build Builds your app and places it into the output path (dist/ by default).
serve Builds and serves your app, rebuilding on file changes.
test Run unit tests in existing project.
e2e Run e2e tests in existing project.
lint Lints code in existing project.
xi18n Extracts i18n messages from source code.
run Runs Architect targets.
eject Temporarily disabled. Ejects your app and output the proper webpack configuration and scripts.
config Get/set configuration values.
help Help.
version Outputs Angular CLI version.
doc Opens the official Angular API documentation for a given keyword.
For more detailed help run "ng [command name] --help"
And here is what is returned by "ng new --help":
usage: ng new <name> [options]
options:
--collection (-c)
Schematics collection to use.
--directory
The directory name to create the workspace in.
--dryRun (-d)
Run through without making any changes.
--force (-f)
Forces overwriting of files.
--inline-style (-s)
Specifies if the style will be in the ts file.
--inline-template (-t)
Specifies if the template will be in the ts file.
--new-project-root
The path where new projects will be created.
--prefix (-p)
The prefix to apply to generated selectors.
--routing
Generates a routing module.
--skip-git (-g)
Skip initializing a git repository.
--skip-install
Skip installing dependency packages.
--skip-tests (-S)
Skip creating spec files.
--style
The file extension to be used for style files.
--verbose (-v)
Adds more details to output logging.
--view-encapsulation
Specifies the view encapsulation strategy.