npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

gsd-cli

v2.1.0

Published

[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io) [![Discord](https://discordapp.com/api/guilds/183740337976508416/widget.png?style=shield)](https://discord.gg/EMbcgR8)

Downloads

29

Readme

gsd-cli v2 Build Status

oclif Discord

A CLI tool for deploying dedicated game servers as systemd units (daemons).

This repo is for gsd-cli version 2.x. This version of the cli is written in CoffeeScript and can be downloaded as a global module from npm.

gsd-cli installs dedicated server as user daemons managed by systemd, a Linux system & service manager.

You can interact with systemd services using the systemctl and journalctl commands. Since the cli installs dedicated servers as user daemons, always include the --user flag when interacting with systemd.

For example: systemctl --user restart minecraft.

You can read the log files for a given server using the journalctl command. For example, to follow a Minecraft server's log:

systemctl --user -fu minecraft

All game servers are created in /home/your_user/whatever-server. For example, a minecraft server would look like this:

/home/egee/minecraft-server.

The dedicated servers themselves are spawned from a shell launch.sh script script located in the dedicated server's install path. This file is created by the cli from the config file passed to it during install time and is safe to edit after installing a server. For example, the launch script for a Rust server is located:

/home/egee/rust-server/launch.sh

User-level systemd unit files are located in ~/.config/systemd/user. You can specify the amount of system resources available to the server by adding properties to the .service file if you desire.

Currently supported game servers:

  • minecraft
  • rust
  • 7 days to die[sdtd]
  • garry's mod[gmod]
  • team fortress 2[tf2]

Usage

$ npm install -g gsd-cli
$ gsd-cli COMMAND
running command...
$ gsd-cli (-v|--version|version)
gsd-cli/2.0.4 linux-x64 node-v12.16.3
$ gsd-cli --help [COMMAND]
USAGE
  $ gsd-cli COMMAND
...

Commands

gsd-cli help [COMMAND]

display help for gsd-cli

USAGE
  $ gsd-cli help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

gsd-cli install

Installs a dedicated game server using a config file or a name with default settings.

USAGE
  $ gsd-cli install

OPTIONS
  -d, --dryrun     test installing a server without actually installing it
  -n, --name=name  name of the server to install

See code: src/commands/install.js