diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2025-01-05 21:40:39 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2025-02-21 11:22:43 -0300 |
commit | 7e86fa86b4d08fd6118d6eab46d92b29ffea791e (patch) | |
tree | 10fdd12beed4b0eca408533ad11d1f52d7d62e10 /docs/luarocks_upload.md | |
parent | 1ada2ea4bbd94ac0c58e3e2cc918194140090a75 (diff) | |
download | luarocks-7e86fa86b4d08fd6118d6eab46d92b29ffea791e.tar.gz luarocks-7e86fa86b4d08fd6118d6eab46d92b29ffea791e.tar.bz2 luarocks-7e86fa86b4d08fd6118d6eab46d92b29ffea791e.zip |
docs: import Wiki docs into the main repo
Diffstat (limited to 'docs/luarocks_upload.md')
-rw-r--r-- | docs/luarocks_upload.md | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/docs/luarocks_upload.md b/docs/luarocks_upload.md new file mode 100644 index 00000000..167ec803 --- /dev/null +++ b/docs/luarocks_upload.md | |||
@@ -0,0 +1,26 @@ | |||
1 | # luarocks upload | ||
2 | |||
3 | Upload a rockspec to the public rocks repository. | ||
4 | |||
5 | ## Usage | ||
6 | |||
7 | `luarocks upload [--skip-pack] [--api-key=<key>] [--force] <rockspec>` | ||
8 | |||
9 | Packs a source rock file (`.src.rock`) using a rockspec and uploads it | ||
10 | and the rockspec to the public rocks repository. | ||
11 | |||
12 | To access the server, an API key is required. It is passed using `--api-key` | ||
13 | option and can be issued at the [LuaRocks site](https://luarocks.org/) on | ||
14 | the "Setting" page after logging in. | ||
15 | |||
16 | If `--skip-pack` is passed, the source rock is not packed and only the rockspec | ||
17 | is uploaded. | ||
18 | |||
19 | If `--force` is passed, existing files will be overwritten if the same version | ||
20 | of the package already exists. | ||
21 | |||
22 | ## Example | ||
23 | |||
24 | ``` | ||
25 | luarocks upload my-rock-0.1.0-1.rockspec --api-key=<REDACTED> | ||
26 | ``` | ||