Every setup or lesson must a contain a command file. The command file is the script to be executed.
The command file should be saved as UTF-8 if it contains non Latin characters. (Anki Script will try to load it as UTF-8, and if
that fails will attempt to load it using the default file encoding for the user's system.)
When running a command file:
- any white space at the start of a line is ignored, allowing for spaces to be used at the start of lines to make scripts more readable.
- commands may be split across multiple lines by ending a line with ':', ';' or ','
As an example to illustrate these rules the following two commands are equivalent:
create verb note type and:
add fields Russian, Audio, English;
add card types e>r, r>e, setting default deck to verbs
and
create verb note type and add fields Russian, Audio, English; add card types e>r, r>e, setting default deck to verbs