== Starting the tool == The RefactorErl tool can be started a standalone or as an embedded application. === Standalone application === ==== Normal mode ==== To start the tool run from the base directory of RefactorErl {{{ bin/referl }}} under Linux or {{{ bin/referl.bat }}} under Windows. Note that the tool starts with the MNESIA database backend by default, and if you want to use NIF, then you have to start the tool like this: {{{ bin/referl -db nif }}} For further parameters use {{{-help}}}: || -base PATH || Path to the RefactorErl base directory || || -browser\_root || Set the file browser root directory || || -build TARGET || Build TARGET (e.g. tool, doc, clean) || || -client || Start in client mode (no server is started) || || -db [mnesia|nif] || The database engine to use (default: mnesia) || || -dir DIR || Sets the RefactorErl data directory || || -emacs || Start as an Emacs client || || -erl PATH || Path to the Erlang executable to use || || -g++ PATH || Path of the g++ compiler to use || || -help || Print this help text || || -images\_dir || Set root directory where generated Nitrogen images will be written || || -name NAME || Full name of the Erlang node || || -nitrogen || Start with Nitrogen || || -no\_nif || NIF code will not be compiled (use with '-build tool') || || -server || Start in server mode (no shell is started) || || -sname NAME || Short name of the Erlang node || || -srvname NAME || Name of the Erlang server node to connect || || -yaws || Start with yaws web server || || -yaws\_listen IP || Set yaws IP || || -yaws\_name NAME || Set yaws server name || || -yaws\_path PATH || Path to the Yaws ebin directory (need /ebin at the end) || || -yaws\_port PORT || Set yaws port || ==== Server mode ==== RefactorErl can be run as a server, you only have to specify a name with {{{-name}}} or {{{-sname}}} options to the command line. If you do not want to have a command line access to the server you can add the {{{-server}}} option the the starting command, but it is not necessary. ==== Client mode ==== If you have a running RefactorErl application (let's call it 'server') that was started with {{{-name}}} or {{{-sname}}}, then you can connect to this server with another command line client. In this case you can run Erlang commands that will run on the server. To start the client use the {{{-srvname}}} option with the exact name of the server. You you have used {{{-name}}} with the server, you have to use the same for the client. The same is true for {{{-sname}}} respectively. === Embedded application === User interfaces like emacs or eclipse are capable of starting RefactorErl through their GUI. Fur further information visit EmacsInterface, EclipseInterface, etc.