Tip
See also Obsidian TTRPG Tutorials: TTRPG-Convert-CLI 5e or TTRPG-Convert-CLI PF2e
We're going to assume a user named Xanathar
in this guide.
- When you use the example commands, replace
Xanathar
with your user name.
You can Open the Windows command prompt by pressing the Windows key and entering cmd
.
-
The text to the left of the cursor (e.g.
C:\Users\Xanathar
) is your current directory. -
To navigate elsewhere, use the
cd
command to "change directory".
For example, to get to yourDownloads
folder from here, typecd Downloads
and hitEnter
. The prompt on the left should now sayC:\Users\Xanathar\Downloads
. -
To see the folders you can reach this way, type
dir
and hitEnter
. You'll be presented with a table, the rightmost column listing all of the folder contained by the active folder.
This is one example with specific steps. If you know more about running commands on Windows, feel free to go your own way.
-
From the latest release, download the following files:
ttrpg-convert-cli-2.3.6-windows-x86_64.zip
ttrpg-convert-cli-2.3.6-examples.zip
-
Unzip the downloaded files and make sure the folder structure doesn't contain duplicated/nested folders
You want
ttrpg-convert-cli-2.3.6
to contain bin, LICENSE, and README.md, not another folder calledttrpg-convert-cli-2.3.6
. -
Put the
ttrpg-convert-cli-2.3.6
folder in any place you like.For this example, you'll be working from within the bin folder, which contains the file
ttrpg-convert.exe
.-
Move the other two folders you extracted (
5etools-mirror-2.github.io-master
andttrpg-convert-cli-2.3.6-examples
) inside of the bin directory. -
If you leave the extracted
ttrpg-convert-cli-2.3.6
folder in the Downloads directory, the following commands should work:-
Make the
Downloads
directory active. When you list the folders, it should includettrpg-convert-cli-2.3.6
.cd C:\Users\Xanathar\Downloads dir
-
Make the
ttrpg-convert-cli
active. When you list the folders, it should includebin
.cd ttrpg-convert-cli-2.3.6 dir
-
Make the
bin
active. When you list the folders, it should include5etools-mirror-2.github.io-master
andttrpg-convert-cli-2.3.6-examples
.cd bin dir
-
-
-
Open Command Prompt.
-
Navigate to the bin folder.
- If you followed the example above, you can do:
cd C:\Users\Xanathar\Downloads\ttrpg-convert-cli-2.3.6\bin
- Alternately, navigate to the
ttrpg-convert-cli-2.3.6
folder in File Explorer and copy the path from the address bar. Then go back to Command Prompt, typecd
and paste the path you just copied, and hitEnter
. The prompt on the left should now look like this:<path to the folder you moved ttrpg-convert-cli into>\ttrpg-convert-cli-2.3.6\bin
- If you followed the example above, you can do:
-
Type
ttrpg-convert.exe --index -o dm 5etools-mirror-2.github.io-master/data
and hitEnter
.A new folder called
dm
should have been created containing the entire D&D5e SRD. If that's all you need, you're done. -
If you want to add additional sources, templates, or books, create a config file.
-
Use this command to use your custom configuration (assuming a file called
dm-sources.json
):ttrpg-convert.exe --index -o dm -c dm-sources.json 5etools-mirror-2.github.io-master/data
-
If you see the following:
"The current machine does not support all of the following CPU features that are required by the image: [CX8, CMOV, FXSR, MMX, SSE, SSE2, SSE3, SSSE3, SSE4_1, SSE4_2, POPCNT, LZCNT, AVX, AVX2, BMI1, BMI2, FMA]. Please rebuild the executable with an appropriate setting of the -march option."
You have an older version of Windows. You'll need to use the Java version of the CLI instead.