{"_id":"5586c1d3f8942c0d00293ded","__v":7,"version":{"_id":"5511b00d316c512300151cd2","project":"5511b00d316c512300151ccf","__v":11,"createdAt":"2015-03-24T18:42:21.658Z","releaseDate":"2015-03-24T18:42:21.658Z","categories":["5511b00e316c512300151cd3","55462d123dca710d0046471b","55462d1e35b2240d008389f1","55462ee63dca710d0046471c","5586aedcd23ef40d00de6e95","5586aef0f8942c0d00293dd3","5586bc28867b5e0d0006c4bc","5586bce4f8942c0d00293ddf","5586c209f8942c0d00293def","5587d09eeb5f2421003f9781","558ba534cf331f23002046cf"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"category":{"_id":"5586aedcd23ef40d00de6e95","version":"5511b00d316c512300151cd2","pages":["5586c1d3f8942c0d00293ded","5586c1de867b5e0d0006c4d4"],"project":"5511b00d316c512300151ccf","__v":2,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-06-21T12:32:28.427Z","from_sync":false,"order":1,"slug":"cli-tool","title":"CLI tool"},"project":"5511b00d316c512300151ccf","user":"5511afda316c512300151cce","updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-06-21T13:53:23.451Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":1,"body":"Initialize a boilerplate to kickstart a project:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"$ ngx init [options] [target-directory]\",\n      \"language\": \"shell\"\n    }\n  ]\n}\n[/block]\n#### Options\n\n##### `-b, --boilerplate <boilerplate>`\n\nBoilerplate to initialize.\n \nFormat: `[<github-username>/]<github-repository-name>`.\n\n- if no boilerplate is specified, `ngx-boilerplates/default` is used\n- if only a `<github-repository-name>` is specified, `ngx-boilerplates/<github-repository-name>` is used\n\n##### `-f, --force`\n\nOverwrite existing file(s).\n\n##### `-h, --help`\n\nOutput usage information.\n\n#### Arguments\n\n##### `<target-directory>`\n\nWhere to initialize the boilerplate.\n\n- if no `target-directory` is specified, the current directory is used\n\n#### Examples\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"# Initialize ngx-boilerplates/default in current directory\\n$ ngx init\\n\\n# Initialize ngx-boilerplates/default in directory new-project\\n$ ngx init new-project\\n\\n# Initialize ngx-boilerplates/default in current directory\\n$ ngx init -b default\\n\\n# Initialize github-username/github-repository-name in current directory\\n$ ngx init -b github-username/github-repository-name\",\n      \"language\": \"shell\"\n    }\n  ]\n}\n[/block]\n## What's next?\n\n- [View a list of official boilerplates](https://github.com/ngx-boilerplates)\n- [Learn how to install components in an existing projects using `ngx install`](doc:ngx-install)","excerpt":"","slug":"ngx-init","type":"basic","title":"ngx init"}
Initialize a boilerplate to kickstart a project: [block:code] { "codes": [ { "code": "$ ngx init [options] [target-directory]", "language": "shell" } ] } [/block] #### Options ##### `-b, --boilerplate <boilerplate>` Boilerplate to initialize. Format: `[<github-username>/]<github-repository-name>`. - if no boilerplate is specified, `ngx-boilerplates/default` is used - if only a `<github-repository-name>` is specified, `ngx-boilerplates/<github-repository-name>` is used ##### `-f, --force` Overwrite existing file(s). ##### `-h, --help` Output usage information. #### Arguments ##### `<target-directory>` Where to initialize the boilerplate. - if no `target-directory` is specified, the current directory is used #### Examples [block:code] { "codes": [ { "code": "# Initialize ngx-boilerplates/default in current directory\n$ ngx init\n\n# Initialize ngx-boilerplates/default in directory new-project\n$ ngx init new-project\n\n# Initialize ngx-boilerplates/default in current directory\n$ ngx init -b default\n\n# Initialize github-username/github-repository-name in current directory\n$ ngx init -b github-username/github-repository-name", "language": "shell" } ] } [/block] ## What's next? - [View a list of official boilerplates](https://github.com/ngx-boilerplates) - [Learn how to install components in an existing projects using `ngx install`](doc:ngx-install)