This pages shows how you can create a project w/ trgkanki-template-cli.
Install required softwares before proceeding.
If you're a programmer, you'll have a kind of home directory for all your programming projects. If you don't, I'd suggest my own settings.
C:\\gitclones\\~/gitclones/Run powershell and run following commands. (If you're linux or mac user I think you'll know what to cherry-pick from here 😂)
cd C:\\gitclones
npx trgkanki-template-cli init [project_name] base
[project_name] refers to your addon's name. It should have no spaces inside. It's best to leave it purely alphanumeric (ex: a2s35f25, case_insensitive_type_answer, cloze_hide_all.)base refers to the template branch you generate your addon with. This can be one of
base: when you want to create pure-python addon.jsinterop: when you want to mix webpack/javascript/typescript.So if you need to create a pure-python addon on this tutorial, we'll select base. If you're unsure what to choose, you can just use base. You can later change the branch later.
Changing remote branch after project initialization
<aside>
💡 If you prefer, you can install the CLI before running the command. This is not necessary, but it helps CLI run faster.
npm i -g trgkanki-template-cli
</aside>

<aside> 💡 There could be a lot of errors while running command. Refer to troubleshootings below.
</aside>
Troubleshooting: 'python3' is not recognized as an internal or external command