Running code in a Tarantool instance
$ tt run [SCRIPT|-e EXPR] [OPTION ...]
tt run
executes Lua code in a new Tarantool instance.
-
-e
EXPR
,
--evaluate
EXPR
¶ Execute the specified expression in a Tarantool instance.
-
-l
LIB_NAME
,
--library
LIB_NAME
¶ Require the specified library.
-
-i
,
--interactive
¶
Enter the interactive mode after the script execution.
-
-v
,
--version
¶
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.