Skip to content

nelsnelson/ptero.sh

Repository files navigation

pterodactyl

Small shell helpers for working with a Pterodactyl panel and migrating Minecraft servers into it.

Files

Some important files:

  • ./ptero: main command dispatcher
  • ./panel-migrator: migration helper
  • ./ptero.env: local environment defaults
  • ./panel-migrator.json: migration config

Requirements

  • bash
  • curl
  • jq
  • rsync

Setup

First, review ptero.env and set a real PTERO_APP_API_KEY.

I like to put something like this into my ~/.pterorc file:

export PTERO_APP_API_KEY="ptla_changeme"

Next, review panel-migrator.json and update server entries as needed.

Common commands

./ptero ping
./ptero users
./ptero allocations
./ptero servers
./ptero egg 1

Create a server dry run:

PTERO_DRY_RUN=1 ./ptero create example-server "Example Server" 2

List migration targets:

./panel-migrator list

Migration dry run:

MIGRATOR_DRY_RUN=1 ./panel-migrator example-server

More detailed workflow notes live in PTERODACTYL_PLAN.md.

About

Simple modular bash scripts for invoking pterodactyl panel API operations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages