aboutsummaryrefslogtreecommitdiff
path: root/docs/luarocks_download.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/luarocks_download.md')
-rw-r--r--docs/luarocks_download.md19
1 files changed, 19 insertions, 0 deletions
diff --git a/docs/luarocks_download.md b/docs/luarocks_download.md
new file mode 100644
index 00000000..1a3597ab
--- /dev/null
+++ b/docs/luarocks_download.md
@@ -0,0 +1,19 @@
1# luarocks download
2
3Download a specific rock or rockspec file from a rocks server.
4
5## Usage
6
7`luarocks download [--all] [--arch=<arch> | --source | --rockspec] [<name> [<version>]]`
8
9If `--all` is passed, all matching files are downloaded, and `<name>` argument
10becomes optional. `--arch`, `--source` and `--rockspec` options select file
11type.
12
13## Example
14
15Download rockspec for the latest version of a rock:
16
17```
18luarocks download --rockspec lpeg
19```