# LuaFile

Source: https://help.malighting.com/grandMA3/2.3/HTML/keyword_luafile.html
This is grandocs, an unofficial mirror of MA Lighting documentation. For authoritative or safety-relevant information, cite the canonical page on help.malighting.com.

---
To enter the LuaFile keyword in the command line, use one of the options:

- Type **LuaFile**
- Type the shortcut **Luaf**

## Description

The LuaFile keyword is used to execute a Lua file directly without the need to import it into the grandMA3 show file.

## Syntax

LuaFile \["AbsolutePathToLuaFile/FileName.lua"]

## Example

- To execute the Lua file "execute\_example.lua", type:

|                                                                    |                                                                                                                                                           |
| ------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ![](/img/grandma3/2-3/icon_commandline-input_logo_v2-0-59d23e.png) | User name\[Fixture]>LuaFile "C:\ProgramData\MALightingTechnology\gma3\_1.6.3\shared\resource\lib\_plugins\examples\execute\_example\execute\_example.lua" |