snctl.
Using snctl in Reusable Scripts
For a stable output in a script:
- Request one of the machine-oriented output forms, such as
-o name,-o json,-o yaml, or-o jsonpath. - Don’t rely on context, preferences, or other implicit states.