Appearance
metaplay dev server [flags] [-- EXTRA_ARGS]
Run the .NET game server locally
Appearance
Run the .NET game server locally
metaplay dev server [flags] [-- EXTRA_ARGS] Run the C# game server locally.
Also check that the .NET SDK is installed and is a recent enough version.
This command is roughly equivalent to running: Backend/Server$ dotnet run EXTRA_ARGS
Expected arguments:
# Run the server. Stop the server by pressing 'q'.
metaplay dev server
# Run with specific log level.
metaplay dev server -- -LogLevel=Warning
# Pass additional arguments to the game server (dotnet run).
metaplay dev server -- -ExitAfter=00:00:30
# Run with file watching (auto-restart on code changes).
metaplay dev server --watch--watch: Enable file watching to auto-restart on code changes--color <string>: Should the output be colored (yes/no/auto)? [env: METAPLAYCLI_COLOR] (default: auto)--project <string>: Path to the to project directory (where metaplay-project.yaml is located)--skip-version-check: Skip the check for a new CLI version being available--verbose: Enable verbose logging, useful for troubleshooting [env: METAPLAYCLI_VERBOSE]