Usage: api-neocities.sh [arguments] Commands: download all Download all remote files recursively into the current directory. download [local-file] Download one remote file. If local-file is omitted, the remote path is used locally. upload all Upload all files under the current directory recursively. The script itself (api-neocities.sh) is ignored. Existing remote files are overwritten. upload [remote-file] Upload one local file. If remote-file is omitted, the local path is used remotely. list [remote-directory] List remote files and directories. With no directory, list the entire site recursively. mkdir Create a remote directory, including missing parent directories. rename Rename or move a remote file or directory. delete [remote-path ...] Delete one or more remote files or directories. WARNING: directory deletion is recursive and cannot be undone. info [sitename] Show site information. With sitename, request public information for that site. Without sitename, use the authenticated site. hash [remote-file] Compare the SHA-1 hash of one local file with the remote copy. If remote-file is omitted, the local path is used remotely. hash all Compare SHA-1 hashes for all local files recursively. The script itself (api-neocities.sh) is ignored. -h, --help, help Show this help. Authentication: Set your Neocities API key in the NEOCITIES_API_KEY environment variable: export NEOCITIES_API_KEY='your-api-key' Examples: api-neocities.sh download all api-neocities.sh download index.html api-neocities.sh download css/style.css backup/style.css api-neocities.sh upload all api-neocities.sh upload index.html api-neocities.sh upload local.html pages/index.html api-neocities.sh list api-neocities.sh list images api-neocities.sh mkdir images/icons api-neocities.sh rename old.html archive/old.html api-neocities.sh delete old.html images/unused api-neocities.sh info api-neocities.sh info example api-neocities.sh hash index.html api-neocities.sh hash all Requirements: curl jq Required for "list", "download all" and "hash all". column sha1sum or shasum