@@ -7,19 +7,24 @@ import { version } from '../package.json'
77const cli = new CAC ( 'gitit' )
88
99cli
10- . command ( 'template [template] [dir]' , 'Clone a template from a repository' )
10+ . command ( '[template] [dir]' , 'Clone a template from a repository' )
11+ . alias ( 'clone [template] [dir]' )
12+ . alias ( 'create [template] [dir]' )
13+ . alias ( 'new [template] [dir]' )
14+ . option ( '--template <template>' , 'Template to clone' )
15+ . option ( '--dir <dir>' , 'Directory to clone the template into' )
1116 . option ( '--force' , 'Clone to existing directory even if exists' )
1217 . option ( '--force-clean' , 'Remove any existing directory or file recursively before cloning' )
1318 . option ( '--shell' , 'Open a new shell with current working directory' )
1419 . option ( '--install' , 'Install dependencies after cloning' )
15- . option ( '--verbose' , 'Show verbose debugging info' )
1620 . option ( '--command <command>' , 'Custom command to run after template is cloned' )
1721 . option ( '--auth <token>' , 'Custom Authorization token to use for downloading template' )
1822 . option ( '--cwd <dir>' , 'Set current working directory to resolve dirs relative to it' )
1923 . option ( '--offline' , 'Do not attempt to download and use cached version' )
2024 . option ( '--prefer-offline' , 'Use cache if exists otherwise try to download' )
21- . example ( 'gitit template github:user/repo my-project' )
22- . example ( 'gitit template github:user/repo my-project --command "npm run dev"' )
25+ . option ( '--verbose' , 'Show verbose debugging info' )
26+ . example ( 'gitit github:user/repo my-project' )
27+ . example ( 'gitit github:user/repo my-project --command "npm run dev"' )
2328 . action ( async ( template ?: string , dir ?: string , options ?: GitItOptions ) => {
2429 if ( ! template ) {
2530 console . error ( 'Missing template argument' )
0 commit comments