{\ttfamily kdb getmeta $<$key name$>$ $<$metaname$>$}

Where {\ttfamily key name} is the name of the key and {\ttfamily metaname} is the name of the metakey the user would like to access.

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

This command is used to print the value of a metakey. A metakey is information stored in a key which describes that key.

The handling of cascading {\ttfamily key name} does not differ to {\ttfamily kdb get}. Make sure to use the namespace {\ttfamily spec}, if you want metadata from there.

\subsection*{R\+E\+T\+U\+RN V\+A\+L\+U\+ES}

This command will return the following values as an exit status\+:
\begin{DoxyItemize}
\item 0\+: No errors.
\item 1\+: Key not found. (Invalid {\ttfamily path})
\item 2\+: Meta key not found. (Invalid {\ttfamily metaname}).
\end{DoxyItemize}

\subsection*{O\+P\+T\+I\+O\+NS}


\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.
\item {\ttfamily -\/n}, {\ttfamily -\/-\/no-\/newline}\+: Suppress the newline at the end of the output.
\end{DoxyItemize}

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

To get the value of a metakey called {\ttfamily description} stored in the key {\ttfamily spec/example/key}\+: {\ttfamily kdb getmeta spec/example/key description}

To get the value of metakey called {\ttfamily override/\#0} stored in the key {\ttfamily spec/example/dir/key}\+: {\ttfamily kdb getmeta spec/example/dir/key \char`\"{}override/\#0\char`\"{}}

\subsection*{S\+EE A\+L\+SO}


\begin{DoxyItemize}
\item How to set metadata\+: \hyperlink{md_doc_help_kdb-setmeta_doc_help_kdb-setmeta_md}{kdb-\/setmeta(1)}
\item For more about cascading keys see \hyperlink{md_doc_help_elektra-cascading_doc_help_elektra-cascading_md}{elektra-\/cascading(7)}
\item \hyperlink{md_doc_help_elektra-metadata_doc_help_elektra-metadata_md}{elektra-\/metadata(7)} for an explanation of the metadata concepts.
\item \hyperlink{md_doc_help_elektra-key-names_doc_help_elektra-key-names_md}{elektra-\/key-\/names(7)} for an explanation of key names. 
\end{DoxyItemize}