# Can we hide a enum from CLI generation?

**URL:** <https://dmap-community.ductus.global/t/can-we-hide-a-enum-from-cli-generation/4968>\
**Category:** YANG\
**Created:** [July 16, 2025, 6:07am UTC](https://dmap-community.ductus.global/t/can-we-hide-a-enum-from-cli-generation/4968 "2025-07-16T06:07:43Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![metakidu](https://avatars.discourse-cdn.com/v4/letter/m/8dc957/32.png) [@metakidu](https://dmap-community.ductus.global/u/metakidu)\
**Post date:** [July 17, 2025, 6:03am UTC](https://dmap-community.ductus.global/t/can-we-hide-a-enum-from-cli-generation/4968/2 "2025-07-17T06:03:26Z")

</div>

Hi Vidya,

The response to this similar question suggests there is no built-in way to hide an enum value from CLI:

> [@Need to hide a enum value from user on CLI](https://dmap-community.ductus.global/t/need-to-hide-a-enum-value-from-user-on-cli/651/2):
>
> I’m not aware of any YANG constructs or Tail-f specific YANG annotations that allows you to hide an enum value from CLI.

But I think you could give it a try to register a custom completion callback for the leaf, e.g. with `tailf:cli-completion-actionpoint`, to replace the auto completion mechanism and only print the values you want to support.

Find more details about the `completion()`callback in the confd\_lib\_dp man page. If your are looking for implementation examples, I suggest navigating to the examples.confd/ directory and grep e.g. for “confd\_action\_reply\_completion”.

---

_[View the full topic](https://dmap-community.ductus.global/t/can-we-hide-a-enum-from-cli-generation/4968)._
