Files
AstraDeploy/docs/USAGE.md

3.6 KiB

AstraDeploy Usage Guide

Quick practical examples for each supported core.

Common rules

  • For interactive mode use:

    sudo bash install.sh --easy --core <core>
    
  • For automation/bot mode always add:

    --yes --accept-license yes
    
  • For Java cores also add:

    --accept-eula yes
    
  • Always choose service mode explicitly for repeatable behaviour:

    • tmux-systemd (recommended UX)
    • systemd
    • screen
    • none (prepare only)

Java cores

Paper (--core paper)

  • Beginner:

    sudo bash install.sh --easy --core paper --service tmux-systemd
    
  • Non-interactive:

    sudo bash install.sh \
      --yes \
      --core paper \
      --dir /opt/minecraft/paper \
      --service systemd \
      --ram 4G \
      --port 25565 \
      --accept-eula yes \
      --accept-license yes \
      --firewall yes \
      --locale en
    

Purpur (--core purpur)

  • Beginner:

    sudo bash install.sh --easy --core purpur --service tmux-systemd
    
  • Non-interactive:

    sudo bash install.sh \
      --yes \
      --core purpur \
      --dir /opt/minecraft/purpur \
      --service tmux-systemd \
      --ram 4G \
      --port 25565 \
      --accept-eula yes \
      --accept-license yes \
      --firewall yes \
      --locale en
    

Velocity (--core velocity)

  • Beginner:

    sudo bash install.sh --easy --core velocity --service tmux-systemd
    
  • Non-interactive:

    sudo bash install.sh \
      --yes \
      --core velocity \
      --dir /opt/minecraft/velocity \
      --service tmux-systemd \
      --ram 2G \
      --port 25577 \
      --accept-eula yes \
      --accept-license yes \
      --firewall yes \
      --locale en
    

PowerNukkitX (--core powernukkitx)

  • Beginner:

    sudo bash install.sh --easy --core powernukkitx --service tmux-systemd
    
  • Non-interactive:

    sudo bash install.sh \
      --yes \
      --core powernukkitx \
      --dir /opt/minecraft/powernukkitx \
      --service systemd \
      --ram 2G \
      --port 19132 \
      --accept-eula yes \
      --accept-license yes \
      --firewall yes \
      --locale en
    

Bedrock PHP cores

PMMP (--core pmmp)

  • Beginner:

    sudo bash install.sh --easy --core pmmp --service tmux-systemd
    
  • Non-interactive:

    sudo bash install.sh \
      --yes \
      --core pmmp \
      --dir /opt/minecraft/pmmp \
      --service tmux-systemd \
      --port 19132 \
      --accept-license yes \
      --firewall yes \
      --locale en
    

NetherGamesMC (--core nethergamesmc)

Supports additional options:

  • --build — PHP build tag (latest or concrete tag).

  • --mc-version — PocketMine-MCPE tag (latest or specific).

  • Beginner:

    sudo bash install.sh --easy --core nethergamesmc --service tmux-systemd
    
  • Non-interactive:

    sudo bash install.sh \
      --yes \
      --core nethergamesmc \
      --dir /opt/minecraft/nethergamesmc \
      --service screen \
      --build latest \
      --mc-version latest \
      --accept-license yes \
      --firewall yes \
      --locale en
    

When reporting progress to users in a bot, send these checkpoints:

  1. "preflight"
  2. "package install"
  3. "core download/build"
  4. "service configured"
  5. "finished"

You can use script output or report callback events:

  • started
  • step
  • success
  • failed

Update mode

Use for replacing files on an existing server directory:

sudo bash install.sh \
  --update \
  --core <core> \
  --dir /opt/minecraft/<core> \
  --yes \
  --accept-license yes

For Java cores add --accept-eula yes.