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