spsm can be installed using pip:
(.venv) $ pip install spsm
(.venv) $ spsm -v
Simple Python Server Manager, v0.1.2
- Create a directory for your server
(.venv) $ mkdir my_server (.venv) $ cd my_server
- Initialize the directory
(.venv) $ spsm init
- Add a server jar and apply the new configuration
(.venv) $ spsm upsert -u [jar source url] server server_jar (.venv) $ spsm jars apply
- Activate the server wrapper
(.venv) $ spsm server activate -a
5. Once in the interactive wrapper terminal, use the command start
to start the server.
help
can also be used to list available commands
spsm >> start
Note
Sometimes the output can be initially off by a line or two depending on the size of the terminal. Output can be scrolled up and down using the arrow keys
Note
The server will typically not successfully start the first time as you will have to update the
eula.txt
6. The interactive terminal can be exited without terminating the server using the exit
command
or by pressing CTRL+A CTRL+D
.. seealso:: The wrapper is managed using the :code:`screen` command. see `here <https://www.gnu.org/software/screen/manual/screen.html>`_ for more information on screens.
.. click:: cli.spsm:spsm :prog: spsm :commands: init,list :nested: full
.. click:: cli.spsm:server :prog: spsm server :nested: full
.. click:: cli.spsm:jars :prog: spsm jars :nested: full