\label{doc_help_kdb-complete_md_md_doc_help_kdb_complete}%
\Hypertarget{doc_help_kdb-complete_md_md_doc_help_kdb_complete}%
 \hypertarget{doc_help_kdb-complete_md_autotoc_md2464}{}\doxysection{SYNOPSIS}\label{doc_help_kdb-complete_md_autotoc_md2464}
{\ttfamily kdb complete \mbox{[}path\mbox{]}}

Where {\ttfamily path} is the path for which the user would like to receive completion suggestion. If {\ttfamily path} is not specified, it will show every possible completion. It\textquotesingle{}s synonymous to calling {\ttfamily kdb complete \char`\"{}\char`\"{}}.\hypertarget{doc_help_kdb-complete_md_autotoc_md2465}{}\doxysection{DESCRIPTION}\label{doc_help_kdb-complete_md_autotoc_md2465}
Show suggestions how the current name could be completed. Suggestions will include existing key names, path segments of existing key names, namespaces and mount points. Additionally, the output will indicate whether the given path is a node or a leaf in the hierarchy of keys, nodes end with \textquotesingle{}/\textquotesingle{} as opposed to leaves. It will also work for cascading keys, and will additionally display a cascading key\textquotesingle{}s namespace in the output to indicate from which namespace this suggestion originates from.\hypertarget{doc_help_kdb-complete_md_autotoc_md2466}{}\doxysection{OPTIONS}\label{doc_help_kdb-complete_md_autotoc_md2466}

\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 -\/m}, {\ttfamily -\/-\/min-\/depth $<$min-\/depth$>$}\+: Specify the minimum depth of completion suggestions (0 by default), exclusive and relative to the name to complete.
\item {\ttfamily -\/M}, {\ttfamily -\/-\/max-\/depth $<$max-\/depth$>$}\+: Specify the maximum depth of completion suggestions (unlimited by default, 1 to show only the next level), inclusive and relative to the name to complete.
\item {\ttfamily -\/v}, {\ttfamily -\/-\/verbose}\+: Give a more detailed output, showing the number of child nodes and the depth level. Prints additional information in case of errors/warnings.
\item {\ttfamily -\/0}, {\ttfamily -\/-\/null}\+: Use binary 0 termination.
\item {\ttfamily -\/d}, {\ttfamily -\/-\/debug}\+: Give debug information. Prints additional debug information in case of errors/warnings.
\end{DoxyItemize}\hypertarget{doc_help_kdb-complete_md_autotoc_md2467}{}\doxysection{EXAMPLES}\label{doc_help_kdb-complete_md_autotoc_md2467}

\begin{DoxyCode}{0}
\DoxyCodeLine{\# Backup-\/and-\/Restore: user:/tests/complete/examples}
\DoxyCodeLine{}
\DoxyCodeLine{\# Create the keys we use for the examples}
\DoxyCodeLine{kdb set user:/tests/complete/examples/kdb-\/complete/level1 foo}
\DoxyCodeLine{kdb set user:/tests/complete/examples/kdb-\/complete/lvl1/lvl2 bar}
\DoxyCodeLine{kdb set user:/tests/complete/examples/kdb-\/complete/lvl1/lvl2/lvl3/lvl4/lvl5 fizz}
\DoxyCodeLine{kdb set user:/tests/complete/examples/kdb-\/complete/buzz fizzBuzz}
\DoxyCodeLine{kdb set user:/tests/complete/examples/kdb-\/complete/\#1 asdf}
\DoxyCodeLine{kdb set user:/tests/complete/examples/kdb-\/complete/\% nothing}
\DoxyCodeLine{}
\DoxyCodeLine{\# list suggestions for namespaces starting with us, only the current level}
\DoxyCodeLine{kdb complete us -\/-\/max-\/depth=1}
\DoxyCodeLine{\#> user:/}
\DoxyCodeLine{}
\DoxyCodeLine{\# list suggestions for namespaces starting with user, only the current level}
\DoxyCodeLine{kdb complete user -\/-\/max-\/depth=1}
\DoxyCodeLine{\#> user:/}
\DoxyCodeLine{}
\DoxyCodeLine{\# list suggestions for the namespace user, only the next level as it ends with /}
\DoxyCodeLine{\# note the difference to the previous example, which uses no trailing /}
\DoxyCodeLine{kdb complete user:/ -\/-\/max-\/depth=1}
\DoxyCodeLine{\# STDOUT-\/REGEX: .+}
\DoxyCodeLine{}
\DoxyCodeLine{\# list all possible namespaces or mount points, only the current level}
\DoxyCodeLine{kdb complete -\/-\/max-\/depth=1}
\DoxyCodeLine{\# STDOUT-\/REGEX: .+}
\DoxyCodeLine{}
\DoxyCodeLine{\# list suggestions for /tests/complete/examples/kdb-\/complete, only the current level}
\DoxyCodeLine{kdb complete /tests/complete/examples/kdb-\/complete -\/-\/max-\/depth=1}
\DoxyCodeLine{\#> user:/tests/complete/examples/kdb-\/complete/}
\DoxyCodeLine{}
\DoxyCodeLine{\# list suggestions for /tests/complete/examples/kdb-\/complete/, only the next level}
\DoxyCodeLine{\# again, note the difference to the previous example which has no trailing /}
\DoxyCodeLine{kdb complete /tests/complete/examples/kdb-\/complete/ -\/-\/max-\/depth=1}
\DoxyCodeLine{\#> user:/tests/complete/examples/kdb-\/complete/\%}
\DoxyCodeLine{\#> user:/tests/complete/examples/kdb-\/complete/\#1}
\DoxyCodeLine{\#> user:/tests/complete/examples/kdb-\/complete/buzz}
\DoxyCodeLine{\#> user:/tests/complete/examples/kdb-\/complete/level1}
\DoxyCodeLine{\#> user:/tests/complete/examples/kdb-\/complete/lvl1/}
\DoxyCodeLine{}
\DoxyCodeLine{\# list suggestions for /tests/complete/examples/kdb-\/complete which are minimum 2 levels}
\DoxyCodeLine{\# away from that key, and maximum 4 levels away}
\DoxyCodeLine{kdb complete /tests/complete/examples/kdb-\/complete/ -\/-\/min-\/depth=2 -\/-\/max-\/depth=4}
\DoxyCodeLine{\#> user:/tests/complete/examples/kdb-\/complete/lvl1/lvl2/lvl3/}
\DoxyCodeLine{\#> user:/tests/complete/examples/kdb-\/complete/lvl1/lvl2/lvl3/lvl4/}
\DoxyCodeLine{}
\DoxyCodeLine{kdb rm -\/r user:/tests/complete/examples/kdb-\/complete}

\end{DoxyCode}
\hypertarget{doc_help_kdb-complete_md_autotoc_md2468}{}\doxysection{SEE ALSO}\label{doc_help_kdb-complete_md_autotoc_md2468}

\begin{DoxyItemize}
\item If you would only like to see existing keys under a given path, consider using the \mbox{\hyperlink{doc_help_kdb-ls_md}{kdb-\/ls(1)}} command.
\item \mbox{\hyperlink{doc_help_elektra-key-names_md}{elektra-\/key-\/names(7)}} for an explanation of key names. 
\end{DoxyItemize}