register
for core> register {flags} (plugin) (signature)
--shell, -s {path}
: path of shell used to run plugin (cmd, sh, python, etc)plugin
: path of executable for pluginsignature
: Block with signature description as json objectinput | output |
---|---|
nothing | nothing |
Register nu_plugin_query
plugin from ~/.cargo/bin/ dir
>register~/.cargo/bin/nu_plugin_query
Register nu_plugin_query
plugin from nu -c
(writes/updates $nu.plugin-path)
>letplugin= ((whichnu).path.0|path dirname|path join'nu_plugin_query');nu-c$'register ($plugin); version'
This command is a parser keyword. For details, check: https://www.nushell.sh/book/thinking_in_nu.html
Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/register.html