register for core

Register a plugin.

Signature

> register {flags} (plugin) (signature)

Flags

  • --shell, -s {path}: path of shell used to run plugin (cmd, sh, python, etc)

Parameters

  • plugin: Path of executable for plugin.
  • signature: Block with signature description as json object.

Input/output types:

inputoutput
nothingnothing

Examples

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)

> let plugin = ((which nu).path.0 | path dirname | path join 'nu_plugin_query'); nu -c $'register ($plugin); version'

Notes

This command is a parser keyword. For details, check: https://www.nushell.sh/book/thinking_in_nu.html