{\ttfamily kdb set $<$key-\/name$>$ \mbox{[}$<$value$>$\mbox{]}}

Where {\ttfamily key-\/name} is the path to the key you wish to set the value of (or create) and {\ttfamily value} is the value you would like to set the key to. If the {\ttfamily value} argument is not passed, the key will be set to a value of {\ttfamily null}.

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

This command allows the user to set the value of an individual key.

\subsection*{E\+M\+P\+T\+Y V\+A\+L\+U\+E\+S}

To set a key to an empty value, {\ttfamily \char`\"{}\char`\"{}} should be passed for the {\ttfamily value} argument.

\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 -\/v}, {\ttfamily -\/-\/verbose}\+: Explain what is happening.
\item {\ttfamily -\/q}, {\ttfamily -\/-\/quiet}\+: Suppress non-\/error messages.
\item {\ttfamily -\/\+N}, {\ttfamily -\/-\/namespace}=$<$ns$>$\+: Specify the namespace to use when writing cascading keys. See \href{#KDB}{\tt below in K\+D\+B}.
\item {\ttfamily -\/\+C}, {\ttfamily -\/-\/color}=\mbox{[}when\mbox{]}\+: Print never/auto(default)/always colored output.
\end{DoxyItemize}

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


\begin{DoxyItemize}
\item {\ttfamily /sw/elektra/kdb/\#0/current/verbose}\+: Same as {\ttfamily -\/v}\+: Explain what is happening.
\item {\ttfamily /sw/elektra/kdb/\#0/current/quiet}\+: Same as {\ttfamily -\/q}\+: Suppress default messages.
\item {\ttfamily /sw/elektra/kdb/\#0/current/namespace}\+: Specifies which default namespace should be used when setting a cascading name. By default the namespace is user, except {\ttfamily kdb} is used as root, then {\ttfamily system} is the default.
\end{DoxyItemize}

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

To set a Key to the value {\ttfamily Hello World!}\+: {\ttfamily kdb set user/example/key \char`\"{}\+Hello World!\char`\"{}}

To create a new key with a null value\+: {\ttfamily kdb set user/example/key}

To set a key to an empty value\+: {\ttfamily kdb set user/example/key \char`\"{}\char`\"{}}

To create bookmarks\+: {\ttfamily kdb set user/sw/elektra/kdb/\#0/current/bookmarks} followed by\+: {\ttfamily kdb set user/sw/elektra/kdb/\#0/current/bookmarks/kdb user/sw/elektra/kdb/\#0/current}

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


\begin{DoxyItemize}
\item \hyperlink{md_doc_help_kdb_doc_help_kdb_md}{kdb(1)} for how to configure the kdb utility and use the bookmarks.
\item For difference between empty and null values, see \hyperlink{md_doc_help_elektra-values_doc_help_elektra-values_md}{elektra-\/values(7)} 
\end{DoxyItemize}