{\ttfamily kdb editor $<$key-\/name$>$ \mbox{[}$<$format$>$\mbox{]}}

Where {\ttfamily key-\/name} is the destination where the user wants to edit keys and {\ttfamily format} is the format in which the keys should be edited. If the {\ttfamily format} argument is not passed, then the default format will be used as determined by the value of the {\ttfamily sw/kdb/current/format} key. By default, that key is set to the {\ttfamily dump} format. The {\ttfamily format} attribute relies on Elektra's plugin system to properly import the configuration. The user can view all plugins available for use by running the kdb-\/list(1) command. To learn about any plugin, the user can simply use the kdb-\/info(1) command.

\subsection*{D\+E\+S\+C\+R\+I\+P\+T\+I\+O\+N}

This command allows a user to edit configuration of the key database using a text editor. The user should specify the format that the current configuration or keys are in, otherwise the default format will be used.

\subsection*{K\+D\+B}


\begin{DoxyItemize}
\item {\ttfamily /sw/elektra/kdb/\#0/current/format}\+: The default format if none given. Defaults to {\ttfamily dump} if the key does not exist.
\item {\ttfamily /sw/elektra/kdb/\#0/current/editor}\+: The default editor, if no {\ttfamily -\/e} option is given. Defaults to {\ttfamily /usr/bin/sensible-\/editor}, {\ttfamily /usr/bin/editor} or {\ttfamily /usr/bin/vi} if the key does not exist.
\end{DoxyItemize}

\subsection*{R\+E\+T\+U\+R\+N V\+A\+L\+U\+E\+S}


\begin{DoxyItemize}
\item 0\+: successful.
\item 1-\/10\+: standard exit codes, see \hyperlink{md_doc_help_kdb_doc_help_kdb_md}{kdb(1)}
\item 11\+: could not export configuration.
\item 12\+: could not start editor.
\item 13\+: could not import configuration.
\end{DoxyItemize}

\subsection*{O\+P\+T\+I\+O\+N\+S}


\begin{DoxyItemize}
\item {\ttfamily -\/\+H}, {\ttfamily -\/-\/help}\+: Show the man page.
\item {\ttfamily -\/\+V}, {\ttfamily -\/-\/version}\+: Print version info.
\item {\ttfamily -\/p}, {\ttfamily -\/-\/profile}=$<$profile$>$\+: Use a different kdb profile.
\item {\ttfamily s}, {\ttfamily -\/-\/strategy $<$name$>$}\+: Specify which strategy should be used to resolve conflicts.
\item {\ttfamily -\/v}, {\ttfamily -\/-\/verbose}\+: Explain what is happening.
\item {\ttfamily -\/e}, {\ttfamily -\/-\/editor $<$editor$>$}\+: Which editor to use.
\end{DoxyItemize}

\subsection*{E\+X\+A\+M\+P\+L\+E\+S}

To change the configuration in K\+D\+B below {\ttfamily user/ini} with {\ttfamily /usr/bin/vim}, you would use\+: {\ttfamily kdb editor -\/e /usr/bin/vim user/ini}

Or set a new editor as default using\+: {\ttfamily kdb set /sw/elektra/kdb/\#0/current/editor /usr/bin/nano}

\subsection*{S\+E\+E A\+L\+S\+O}


\begin{DoxyItemize}
\item \hyperlink{md_doc_help_elektra-merge-strategy_doc_help_elektra-merge-strategy_md}{elektra-\/merge-\/strategy(7)} 
\end{DoxyItemize}