Using and Mastering Cookiecutter Transcripts
Chapter: Getting started using Cookiecutter
Lecture: Local cookiecutters
0:01 Now you've seen that we could use this command cookiecutter
0:05 and the full path to the GitHub repo to clone our template and run it,
0:11 but once we've done this, on our machine, in this user profile,
0:15 we can use a much simpler version, we could just say cookiecutter
0:19 and give it the short name, cookiecutter-bottle
0:22 And we hit enter, again, it runs,
0:24 however, if I try other ones like cookiecutter-data-science
0:27 it says I have no idea what this is, and look where it is looking.
0:32 So in your user profile, my username is screencaster for this recording,
0:37 so if I go here and look, you can see that this is the location
0:42 where that cloning gets done, so when we make this command,
0:45 to the git repo, it actually clones it and stores in our profile under .cookiecutters
0:50 and if we come here and say cd cookiecutter-bottle
0:54 you can see that this should look exactly like hat git repo that we saw earlier,
0:58 do you know why- because it is that git repo we saw earlier,
1:02 it's the same thing, right, it just clones it,
1:04 in fact, if I run the original command again, it says you've already cloned it here,
1:08 do you want to reclone it?
1:11 So, basically, you can install these things, very easily.
1:14 you just run the git version or the remote version,
1:17 and then once you have that you can run the simpler version, like this.
1:22 So what would be cool is if there was some kind of thing
1:26 like we could say list those,
1:29 so if I could say cookiecutter -i for installed or something, but there is no -i
1:33 Right, so maybe someday that will change,
1:36 maybe even I will add that feature, I don't know,
1:38 but for now, you can tell what you have installed, just by doing this.
1:41 List the Cookiecutter directory in your home profile,
1:45 and on Windows, you don't use the tilde of course,
1:48 but this is just in your home directory in Windows as well,
1:50 it's just .cookiecutters on both platforms.