To run a local deployment from the command line:
spatial local launch
spatial local launch <launch configuration>
launch configurationspecifies the launch configuration file you want to use. For example,
development.json. For information about this file, see the launch configuration page.
spatial local launch --helpfor more information.
You can use
spatial local launch to launch a local deployment offline, so you can iterate on local projects without an internet connection. For more information, see Using the SpatialOS CLI offline for local projects.
You can connect any type of worker to a local deployment from the command line, but usually you'll just want to connect clients.
To do this, use:
spatial local worker launch <worker type> <launch_config>
worker type: the type of the worker. For example,
launch_config: the launch configuration file.
spatial local worker launch --help for more information.
For example, to start a
MyCSharpClient using the
default launch configuration, run
spatial local worker launch MyCSharpClient default
When successful, you will see the new client at
spatial local launch is running, use
Ctrl + C to stop it.
There's a known issue where Ctrl + C sometimes doesn't properly stop all processes. See this forum post for fixes and workarounds.
Updated 11 months ago