grahamperrin

uclcmd usage

Sep 18th, 2025
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.09 KB | Software | 0 0
  1. grahamperrin@pkg:~ % uclcmd
  2. Usage: uclcmd get [-cdeIjklmNquy] [-D char] [-f file] [-o file] variable
  3. uclcmd set [-cdIjmnuy] [-t type] [-D char] [-f file] [-i file] [-o file] variable [UCL]
  4. uclcmd merge [-cdIjmnuy] [-D char] [-f file] [-i file] [-o file] variable
  5. uclcmd remove [-cdIjmnuy] [-D char] [-f file] [-o file] variable
  6.  
  7. COMMON OPTIONS:
  8. -c --cjson output compacted JSON
  9. -d --debug enable verbose debugging output
  10. -D --delimiter character to use as element delimiter (default is .)
  11. -e --expand Output the list of keys when encountering an object
  12. -f --file path to a file to read or write
  13. -I --foldcase fold all keys to lowercase (make matching insensitive)
  14. -j --json output pretty JSON
  15. -k --keys show key=value rather than just the value
  16. -l --shellvars keys are output with underscores as delimiter
  17. -m --msgpack output MSGPACK
  18. -n --noop do not save changes to file, only output to STDOUT
  19. -N --nonewline separate output with spaces rather than newlines
  20. -o --output file to write output to, defaults to STDOUT
  21. -q --noquotes do not enclose strings in quotes
  22. -t --type make the new element this type
  23. -u --ucl output universal config language
  24. -y --yaml output YAML
  25. variable The key of the variable to read, in object notation
  26. UCL A block of UCL to be written to the specified variable
  27.  
  28. GET OPTIONS:
  29.  
  30. SET OPTIONS:
  31. -i --input use indicated file as additional input (for combining)
  32.  
  33. MERGE OPTIONS:
  34. -i --input use indicated file as additional input (for merging)
  35.  
  36. REMOVE OPTIONS:
  37.  
  38. EXAMPLES:
  39. uclcmd get --file vmconfig .name
  40. "value"
  41.  
  42. uclcmd get --file vmconfig --keys --noquotes array.1.name
  43. array.1.name=value
  44.  
  45. uclcmd get --file vmconfig --keys --shellvars array.1.name
  46. array_1_name="value"
  47.  
  48.  
  49. grahamperrin@pkg:~ % pkg iinfo uclcmd
  50. uclcmd-0.2.20211204
  51. grahamperrin@pkg:~ %
Tags: freebsd uclcmd
Advertisement
Add Comment
Please, Sign In to add comment