Skip to content

Undocumented option -2 for init - used in official install guide. #5744

Answered by arcanis
rmplbv asked this question in Q&A
Discussion options

You must be logged in to vote

The -2 flag is an alias for --install stable, ie it runs yarn init w/ the latest version of Yarn, even if you run it from a 1.x binary. I think we'll likely look at making it the default once the 4.0 ships.

As for git etc, Yarn now does a bit more of what you would typically have to do yourself when bootstrapping a project. It doesn't install hooks, it just runs git init.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by arcanis
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants