Neocities has a CLI for power users that want to upload sites using a command line.
If you're using a newer version of OSX or already have Ruby installed, just run this command to install:
If you get a permission error, you may need to run the command as superuser:
After installation, just run the command to get started:
If you're using Windows, you can install ruby with something like the Ruby Installer , and then run the above command.
Most Linux / BSD distributions come with Ruby packages. For example, with Ubuntu:
If you want to create a git hook to automatically upload your site to Neocities when you run "git push", you can run this command in the root directory of your git repo:
If the files you're pushing are in a subdirectory of the root git repo, replace the "." with the subdirectory. For example, with Jekyll (which typically uses _site ):
Note: You will need to be logged in for the git hook to work, so run "neocities push" on the directory you want to upload before installing this hook. This will be fixed in a later version of the CLI.