|
NAMEreckless - install and activate a CLN plugin by name SYNOPSISreckless [options] install/uninstall/enable/disable/source target DESCRIPTIONReckless is a plugin manager for Core-Lightning. Typical plugin installation involves: finding the source plugin, copying, installing dependencies, testing, activating, and updating the lightningd config file. Reckless does all of these by invoking: reckless install[@commit/tag] plugin_name reckless will exit early in the event that:
Reckless-installed plugins reside in the 'reckless' subdirectory of the user's .lightning folder. By default, plugins are activated on the bitcoin network (and use lightningd's bitcoin network config), but regtest may also be used. Other commands include: reckless uninstall plugin_name disables the plugin, removes the directory. reckless search plugin_name looks through all available sources for a plugin matching this name. reckless enable plugin_name dynamically enables the reckless-installed plugin and updates the config to match. reckless disable plugin_name dynamically disables the reckless-installed plugin and updates the config to match. reckless source list list available plugin repositories. reckless source add repo_url add another plugin repo for reckless to search. reckless source rm repo_url remove a plugin repo for reckless to search. OPTIONSAvailable option flags: -d, --reckless-dir reckless_dir specify an alternative data directory for reckless to use. Useful if your .lightning is protected from execution. -l, --lightning lightning_data_dir lightning data directory (defaults to $USER/.lightning) -c, --conf lightning_config pass the config used by lightningd -r, --regtest use the regtest network and config instead of bitcoin mainnet -v, --verbose request additional debug output --network=network specify bitcoin, regtest, liquid, liquid-regtest, litecoin, signet, or testnet networks. (default: bitcoin) NOTESReckless currently supports python and javascript plugins. Running the first time will prompt the user that their lightningd's bitcoin config will be appended (or created) to inherit the reckless config file (this config is specific to bitcoin by default.) Management of plugins will subsequently modify this file. Troubleshooting tips: Plugins must be executable. For python plugins, the shebang is invoked, so python3 should be available in your environment. This can be verified with which Python3. The default reckless directory is $USER/.lightning/reckless and it should be possible for the lightningd user to execute files located here. If this is a problem, the option flag reckless -d= may be used to relocate the reckless directory from its default. Consider creating a permanent alias in this case. Python plugins are installed to their own virtual environments. The environment is activated by a wrapper (named the same as the plugin) which then imports and executes the actual plugin entrypoint. For Plugin Developers: To make your plugin compatible with reckless install:
AUTHORAntoine Poinsot wrote the original reckless plugin on which this is based. Rusty Russell wrote the outline for the reckless utility's function Alex Myers <alex@endothermic.dev> is mostly responsible for the reckless code and this man page, with thanks to Christian Decker for extensive review. SEE ALSOCore-Lightning plugins repo: https://github.com/lightningd/plugins RESOURCESMain web site: https://github.com/ElementsProject/lightning
|