Login
or
register
LuaRocks
Versioned Components For Lua
Overview
Home Page
Mailing list
Browse rocks
Links
Download
Download
Installing on Unix
Installing on Windows
Release history
License
Documentation
Documentation
File formats
Development
Feedback
add
Anonymous users must enter
captcha
below.
Don't put anything here
Don't put anything here
Don't put anything here
Page Parameters
Page Name (for URL)
Page Title
Don't put anything here
Don't put anything here
Show Advanced Options
Category
Prototype
Don't put anything here
Page Content
'''add''' - Add a rock or rockspec to a rocks server. == Usage == :'''[[luarocks-admin]] add <nowiki>[</nowiki>--to=''server''<nowiki>]</nowiki> <nowiki>[</nowiki>--no-refresh<nowiki>]</nowiki> {''rockspec''|''rock''}''' Argument may be a local rockspec or rock file. The flag --to indicates which server to use. If not given, the default server set in the '''upload_server''' variable from the [[Config file format|configuration file]] is used instead. You need to either explicitly pass a full URL to --to or configure an upload server in your configuration file prior to using the "add" function. The flag --no-refresh indicates the local cache should not be refreshed prior to generation of the updated manifest. == Example == === Basic example === Add a rockspec to your default configured upload server: luarocks-admin add lpeg-0.9-1.rockspec === Handling multiple repositories === Assuming your ~/.luarocks/config.lua file looks like this: upload_server = "main" upload_servers = { main = { http = "www.example.com/repos/main", sftp = "myuser@example.com/var/www/repos/main" }, dev = { http = "www.example.com/repos/devel-rocks", sftp = "myuser@example.com/var/www/repos/devel-rocks" }, } you can specify which repository to use with the --to flag: luarocks-admin add --to=dev my_rock-scm-1.rockspec
About this Edit
Minor Edit
Edit Summary
Powered by
Sputnik
|
XHTML 1.1