<commit_before>---
title: The Wol Command
---
*The <tt>/wol</tt> command (wol is short for Wizards Of Lua) gives you some
control over the Winzards of Lua mod.*

<br/>

## Listing Spells
### Listing all Active Spells

```
/wol spell list all
```
This will print the list of all active spells.
For each spell you will get the spell ID (SID), followed by the first 40 characters of its code.

<br/>

## Breaking Spells
There are several options to break spells.

### Breaking all Active Spells

```
/wol spell break all
```
This will break all active spells immediately.

### Breaking Spells by Name

```
/wol spell break byName Spell-1
```
This will break all spells with name "Spell-1".
Please note that you can [change the name](/modules/Spell/#name) of any spell.

### Breaking Spells by Spell ID

```
/wol spell break bySid 15
```
This will break the spell with the spell id 15.

### Breaking Spells by Owner

```
/wol spell break byOwner mickkay
```
This will break all spells owned by player mickkay.

<br/>

<a name="Shared-Default-Dependencies" style="position:relative; top:-70px; display:block;"></a>
## Shared Default Dependencies
The <tt>sharedAutoRequire</tt> value is a global value that defines which Lua module will be loaded
automatically into a new spell's environment.
The respective module must be available within the [shared library](/configuration-file.html) (or all
of the player's libraries).<commit_msg>Docs for /wol file edit<commit_after>---
title: The Wol Command
---
*The <tt>/wol</tt> command (wol is short for Wizards Of Lua) gives you some
control over the Winzards of Lua mod.*

<br/>

## Listing Spells
### Listing all Active Spells

```
/wol spell list all
```
This will print the list of all active spells.
For each spell you will get the spell ID (SID), followed by the first 40 characters of its code.

<br/>

## Breaking Spells
There are several options to break spells.

### Breaking all Active Spells

```
/wol spell break all
```
This will break all active spells immediately.

### Breaking Spells by Name

```
/wol spell break byName Spell-1
```
This will break all spells with name "Spell-1".
Please note that you can [change the name](/modules/Spell/#name) of any spell.

### Breaking Spells by Spell ID

```
/wol spell break bySid 15
```
This will break the spell with the spell id 15.

### Breaking Spells by Owner

```
/wol spell break byOwner mickkay
```
This will break all spells owned by player mickkay.

<br/>

<a name="Files" style="position:relative; top:-70px; display:block;"></a>
## Files
To make reusing spells simpler, wizards can store their spells inside player-specific Lua files.

### Creating a New File
To create a new file just send the following command:
```
/wol file edit <newfilename>
```
where *&lt;newfilename&gt;* will be the name of the new file.

For example, to create a file with the name "profile.lua", just type:
```
/wol file edit profile.lua
```

### Editing an Existing File
To edit an existing file send the following command:
```
/wol file edit <filename>
```
where *&lt;filename&gt;* is be the name of the file.

For example, to edit a file with the name "magic/rocket.lua", just type:
```
/wol file edit magic/rocket.lua
```


<br/>

<a name="Shared-Default-Dependencies" style="position:relative; top:-70px; display:block;"></a>
## Shared Default Dependencies
The <tt>sharedAutoRequire</tt> value is a global value that defines which Lua module will be loaded
automatically into a new spell's environment.
The respective module must be available within the [shared library](/configuration-file.html) (or all
of the player's libraries).
{'fraction_non_alphanumeric': 0.10792161192382003, 'fraction_numerical': 0.006072315760419542, 'mean_word_length': 4.206896551724138, 'pattern_counts': {'":': 0, '<': 26, '<?xml version=': 0, '>': 26, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5481063', 'n_tokens_mistral': 1153, 'n_tokens_neox': 1067, 'n_words': 512}