\hypertarget{doc_help_kdb-shell_md_autotoc_md1846}{}\doxysection{S\+Y\+N\+O\+P\+S\+IS}\label{doc_help_kdb-shell_md_autotoc_md1846}
{\ttfamily kdb shell}\hypertarget{doc_help_kdb-shell_md_autotoc_md1847}{}\doxysection{D\+E\+S\+C\+R\+I\+P\+T\+I\+ON}\label{doc_help_kdb-shell_md_autotoc_md1847}
This command is used to start an instance of the kdb shell.~\newline
 The kdb shell allows for a user to interactively view, edit, or otherwise work with the key database.~\newline
\hypertarget{doc_help_kdb-shell_md_autotoc_md1848}{}\doxysection{S\+H\+E\+L\+L C\+O\+M\+M\+A\+N\+DS}\label{doc_help_kdb-shell_md_autotoc_md1848}
The kdb shell offers a number of commands to interact with the key database.


\begin{DoxyItemize}
\item {\ttfamily kdb\+Get $<$name$>$}\+: Get the value of a key.
\item {\ttfamily kdb\+Set $<$name$>$}\+: Set the value of a key.
\item {\ttfamily key\+Set\+Name $<$name$>$}\+: Set the name of the current key.
\item {\ttfamily key\+Set\+Meta $<$name$>$ $<$string$>$}\+: Set a metakey associated with the current key.
\item {\ttfamily key\+Set\+String $<$string$>$}\+: Set a string value for the current key.
\item {\ttfamily ks\+Append\+Key}\+: Append the current key to the current keyset.
\item {\ttfamily ks\+Cut $<$name$>$}\+: Cut the current keyset.
\item {\ttfamily ks\+Output}\+: Prints the keys in the current keyset.
\end{DoxyItemize}\hypertarget{doc_help_kdb-shell_md_autotoc_md1849}{}\doxysection{O\+P\+T\+I\+O\+NS}\label{doc_help_kdb-shell_md_autotoc_md1849}

\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 -\/C}, {\ttfamily -\/-\/color $<$when$>$}\+: Print never/auto(default)/always colored output.
\end{DoxyItemize}\hypertarget{doc_help_kdb-shell_md_autotoc_md1850}{}\doxysection{E\+X\+A\+M\+P\+L\+ES}\label{doc_help_kdb-shell_md_autotoc_md1850}
To execute commands from a textfile, you can use\+:~\newline
 {\ttfamily cat commands.\+txt $\vert$ kdb shell}

To have readline functionality (line editing, history, ...), you can use\+:~\newline
 {\ttfamily rlwrap kdb shell}\hypertarget{doc_help_kdb-shell_md_autotoc_md1851}{}\doxysection{S\+E\+E A\+L\+SO}\label{doc_help_kdb-shell_md_autotoc_md1851}
To learn more about these commands and how they work, refer to the \href{https://doc.libelektra.org/api/current/html}{\texttt{ Elektra A\+PI Documentation}}. 