Servers are just directories in the ~/minecraft
folder.
Copy the closest existing instance:
cp -r ~/minecraft/paper-1.21.4-survival ~/minecraft/paper-1.21.4-creativeDownload the new server jar into the folder. Delete or replace the old server.jar.
Edit server.conf:
Edit run.sh:
Delete the old world (or keep it if you want to continue it):
rm -rf world/ world_nether/ world_the_end/Accept the EULA:
echo "eula=true" > eula.txt