nrelay-unity-cli
A command line interface for generating and running Unity nrelay projects
This software was originally written by Thomas Crane and you can find the original version for flash here
All credit goes to Thomas for writing this and the only commits I am making are to allow the project keep working with the RotMG Unity client.
Contents
Install
npm install -g nrelay-unity-cli
Commands
Running nrelay with no commands will print the help information.
new
The new command can be used to generate a new nrelay project. It requires a single argument which is the name of the project that will be generated. The new project will be created in a folder in the current working directory of the console.
nrelay new my-new-project
Creates a new folder in the current working directory of the console called my-new-project
.
run
The run command is used to actually run an nrelay project. Any arguments which are provided will be passed on to the nrelay runtime which is created.
nrelay run
Runs the project with no arguments.
nrelay run --no-update
Runs the project and doesn't check for any updates when starting up.
build
The build command is simply used to build the current nrelay project. This is just an alias for npm run compile
.
nrelay build
Builds the project.
eject
The eject command can be used to modify an existing nrelay project such that it can be run independently of the CLI. This command is extremely useful when you intend to host an nrelay project, since it removes the dependency on the CLI.
nrelay eject
Ejects the nrelay project. An ejected project can be run by using
node index
Instead of the usual run command (the run command will still work, though).
fix
The fix command can be used to add any files which are usually present in an nrelay project, but are missing. For example, if the .nrelay
file was deleted accidentally, this will cause the CLI to think that the folder is not actually an nrelay project. Running nrelay fix
will replace the .nrelay
file so that the project can be run again.
nrelay fix
Adds any missing files which are required by the CLI.