This example will be how to install from master and will be using @angular/cli as well.
Make a new project with @angular/cli:
ng new my-master-app
If you haven't installed @angular/cli, use this command:
npm install -g @angular/cli
Install from master:
npm install --save @angular/animations
npm install --save angular/material2-builds
npm install --save angular/cdk-builds
Follow the same guide as above.
Done!