<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">{\ttfamily kdb meta-\/get $&lt;$key name$&gt;$ $&lt;$metaname$&gt;$}~\newline


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.

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.

This command will return the following values as an exit status\+:~\newline



\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}


\begin{DoxyItemize}
\item {\ttfamily -\/H}, {\ttfamily -\/-\/help}\+: Show the man page.
\item {\ttfamily -\/V}, {\ttfamily -\/-\/version}\+: Print version info.
\item {\ttfamily -\/p}, {\ttfamily -\/-\/profile $&lt;$profile$&gt;$}\+: Use a different kdb profile.
\item {\ttfamily -\/C}, {\ttfamily -\/-\/color $&lt;$when$&gt;$}\+: Print never/auto(default)/always colored output.
\item {\ttfamily -\/n}, {\ttfamily -\/-\/no-\/newline}\+: Suppress the newline at the end of the output.
\item {\ttfamily -\/v}, {\ttfamily -\/-\/verbose}\+: Explain what is happening. Prints additional information in case of errors/warnings.
\item {\ttfamily -\/d}, {\ttfamily -\/-\/debug}\+: Give debug information. Prints additional debug information in case of errors/warnings.
\end{DoxyItemize}

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

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


\begin{DoxyItemize}
\item How to set metadata\+: \mbox{\hyperlink{doc_help_kdb-meta-set_md}{kdb-\/meta-\/set(1)}}
\item For more about cascading keys see \mbox{\hyperlink{doc_help_elektra-cascading_md}{elektra-\/cascading(7)}}
\item \mbox{\hyperlink{doc_help_elektra-metadata_md}{elektra-\/metadata(7)}} for an explanation of the metadata concepts.
\item \mbox{\hyperlink{doc_help_elektra-key-names_md}{elektra-\/key-\/names(7)}} for an explanation of key names. 
\end{DoxyItemize}</pre></body></html>