Skip to content
Lüchinger Dominic edited this page Jan 5, 2025 · 3 revisions

luarocks upload - Upload a rockspec to the public rocks repository.

Usage

luarocks upload [-h] [--skip-pack] [--api-key <key>] [--temp-key <key>] [--force] [--sign] <rockspec> [<src-rock>]

Pack a source rock file (.src.rock extension) and upload it and the rockspec to the public rocks repository. If the the source rock file if provided, it will be used instead of packing the rockspec.

To access the server, an API key is required. It is passed using --api-key or --temp-key option and can be issued at the LuaRocks site on the "Setting" page after logging in. When using --api-key, the key will be stored for subsequent uses.

If --skip-pack is passed, the source rock is not packed and only the rockspec is uploaded.

If --force is passed, existing files will be overwritten if the same version of the package already exists.

If --sign is passed, upload a signature file alongside each file as well.

Example

luarocks upload my-rock-0.1.0-1.rockspec --api-key=<REDACTED>

Clone this wiki locally