Running code in a Tarantool instance
$ tt run [SCRIPT|-e EXPR] [OPTION ...]
tt run executes Lua code in a new Tarantool instance.
Execute the specified expression in a Tarantool instance.
Require the specified library.
Enter the interactive mode after the script execution.
Print the Tarantool version that is used for script execution.
tt run executes arbitrary Lua code in a Tarantool instance. The code
can be provided either in a Lua file, or in a string passed after the
-e/--evaluate flag. When called without arguments or flags, tt run
opens the Tarantool console.
If libraries are required for execution, pass their names after the
-l/--library flag.
By default, a Tarantool instance started by tt run shuts down after
code execution completes. To leave this instance running and continue
working in its console, add the -i/--interactive flag.
-
Execute the
app.luafile in a Tarantool instance:$ tt run app.lua -
Execute an expression in a Tarantool instance:
$ tt run -e "print('hi there')" -
Execute the
app.luafile in a Tarantool instance and leave it running:$ tt run -i app.lua