c8y(1)

๐Ÿ“ฆ version 2.56.1, in nixpkgs unstable

okay so bestie, welcome to the c8y(1) manual page โ€” yes, thatโ€™s the manual name, and no, we are not copying the header line like a boring NPC. This is the user groups list corner of the c8y universe, and itโ€™s about to make sense. ๐Ÿ’–

๐ŸŒธ NAME ๐ŸŒธ

c8y-usergroups-list - Get user group collection. Thatโ€™s the whole name, bestie โ€” itโ€™s giving โ€œgrab me the user group collectionโ€ energy. โœจ

๐Ÿฆ‹ SYNOPSIS ๐Ÿฆ‹

c8y usergroups list [flags]

๐ŸŽ€ DESCRIPTION ๐ŸŽ€

Get collection of (user) groups. Yep, groups โ€” plural โ€” and this command is the main character that fetches them. ๐Ÿ‘‘

โœจ OPTIONS โœจ

  • -h, --help[=false] โ€” help for list. Itโ€™s the โ€œwait, what does this do again?โ€ button, and we respect it. ๐Ÿซถ
  • --tenant="" โ€” Tenant. Drop your tenant right here, bestie. ๐Ÿ 

๐Ÿ’œ OPTIONS INHERITED FROM PARENT COMMANDS ๐Ÿ’œ

  • --abortOnErrors=10 โ€” Abort batch when reaching specified number of errors. Itโ€™s the โ€œokay, weโ€™re outโ€ threshold. ๐Ÿ˜ญ
  • --allowEmptyPipe[=false] โ€” Donโ€™t fail when piped input is empty (stdin). Empty pipe? Not a crisis. ๐Ÿ’…
  • --cache[=false] โ€” Enable cached responses. Speedy vibes, with a little memory. โญ
  • --cacheBodyPaths=[] โ€” Cache should limit hashing of selected paths in the json body. Empty indicates all values. No paths picked means all of them, iykyk. ๐Ÿงš
  • --cacheTTL="60s" โ€” Cache time-to-live (TTL) as a duration, i.e. 60s, 2m. Itโ€™s literally a countdown for cache. โณ
  • -c, --compact[=false] โ€” Compact instead of pretty-printed output when using json output. Pretty print is the default if output is the terminal. Terminal beautification stays on unless you say otherwise. ๐ŸŒˆ
  • --confirm[=false] โ€” Prompt for confirmation. A little โ€œu sure?โ€ moment. ๐Ÿ™ˆ
  • --confirmText="" โ€” Custom confirmation text. Put your own words in the confirmation pop-up. ๐Ÿ’ฌ
  • --currentPage=0 โ€” Current page which should be returned. Page zero is where we start, no cap. ๐Ÿ“„
  • --customQueryParam=[] โ€” add custom URL query parameters. i.e. --customQueryParam 'withCustomOption=true,myOtherOption=myvalue'. Custom query energy, exactly as written. ๐Ÿ”ฅ
  • --debug[=false] โ€” Set very verbose log messages. Itโ€™s giving โ€œtell me everythingโ€ mode. ๐Ÿ’€
  • --delay="0ms" โ€” delay after each request, i.e. 5ms, 1.2s. A little breather after every request. ๐Ÿ˜ฎโ€๐Ÿ’จ
  • --delayBefore="0ms" โ€” delay before each request, i.e. 5ms, 1.2s. A little breather before every request. ๐ŸŒฌ๏ธ
  • --dry[=false] โ€” Dry run. Donโ€™t send any data to the server. Practice run, no actual server drama. ๐ŸŽญ
  • --dryFormat="markdown" โ€” Dry run output format. i.e. json, dump, markdown or curl. Pick your dry-run aesthetic. ๐ŸŽจ
  • --examples[=false] โ€” Show examples for the current command. Examples are self-care. ๐Ÿ“š
  • --filter=[] โ€” Apply a client side filter to response before returning it to the user. Filter it before it reaches you. ๐Ÿงผ
  • --flatten[=false] โ€” flatten json output by replacing nested json properties with properties where their names are represented by dot notation. Nested json? We flatten it with dot notation. ๐Ÿซ“
  • -f, --force[=false] โ€” Do not prompt for confirmation. Ignored when using --confirm. No prompt, unless --confirm is in the chat. ๐Ÿ’ฅ
  • -H, --header=[] โ€” custom headers. i.e. --header "Accept: value, AnotherHeader: myvalue". Custom headers, exactly like that. ๐Ÿ“จ
  • --includeAll[=false] โ€” Include all results by iterating through each page. Every page gets an invite. ๐Ÿ‘ฏ
  • -k, --insecure[=false] โ€” Allow insecure server connections when using SSL. Yes, it says insecure โ€” tread carefully, bestie. โš ๏ธ
  • -l, --logMessage="" โ€” Add custom message to the activity log. Leave a little note in the log. ๐Ÿ“
  • --maxJobs=0 โ€” Maximum number of jobs. 0 = unlimited (use with caution!). Unlimited jobs is iconic but also a little unhinged. ๐Ÿ”ฅ
  • --noAccept[=false] โ€” Ignore Accept header will remove the Accept header from requests, however PUT and POST requests will only see the effect. Header gone โ€” but only PUT and POST requests see the effect. ๐Ÿซฅ
  • --noCache[=false] โ€” Force disabling of cached responses (overwrites cache setting). Cache off, override style. ๐Ÿšซ
  • -M, --noColor[=false] โ€” Donโ€™t use colors when displaying log entries on the console. Monochrome moment. ๐Ÿ–ค
  • --noLog[=false] โ€” Disables the activity log for the current command. No log for this one, periodt. ๐Ÿค
  • --noProgress[=false] โ€” Disable progress bars. No little bar doing its thing. ๐Ÿšซ
  • --noProxy[=false] โ€” Ignore the proxy settings. Proxy? Never heard of her. ๐Ÿ™…
  • -n, --nullInput[=false] โ€” Donโ€™t read the input (stdin). Useful if using in shell for/while loops. No stdin reading โ€” shell loops will thank you. ๐Ÿ”
  • -o, --output="table" โ€” Output format i.e. table, json, csv, csvheader. Pick your output fit. ๐Ÿ›๏ธ
  • --outputFile="" โ€” Save JSON output to file (after select/view). Save it after select/view. ๐Ÿ’พ
  • --outputFileRaw="" โ€” Save raw response to file (before select/view). Save it before select/view. ๐Ÿ—‚๏ธ
  • --outputTemplate="" โ€” jsonnet template to apply to the output. Template glow-up for your output. ๐Ÿช„
  • -p, --pageSize=5 โ€” Maximum results per page. Five per page is the default. ๐Ÿ–๏ธ
  • --progress[=false] โ€” Show progress bar. This will also disable any other verbose output. Progress bar on, extra verbose chatter off. ๐Ÿ“Š
  • --proxy="" โ€” Proxy setting, i.e. http://10.0.0.1:8080. Proxy goes here. ๐ŸŒ
  • -r, --raw[=false] โ€” Show raw response. This mode will force output=json and view=off. Raw mode is raw mode โ€” it forces output=json and view=off. ๐Ÿฅฉ
  • --retries=3 โ€” Max number of attempts when a failed http call is encountered. Three attempts before we accept defeat. ๐Ÿ˜ค
  • --select=[] โ€” Comma separated list of properties to return. wildcards and globstar accepted, i.e. --select 'id,name,type,**.serialNumber'. Choose your properties, wildcards included. ๐ŸŽฏ
  • --session="" โ€” Session configuration. Session config lives here. ๐Ÿ”
  • --sessionMode="" โ€” Override default session mode for a single command which would normally be disabled. One-command session mode override. ๐ŸŽ›๏ธ
  • -P, --sessionPassword="" โ€” Override session password. Password override, quietly. ๐Ÿคซ
  • -U, --sessionUsername="" โ€” Override session username. i.e. peter or t1234/peter (with tenant). Username override, with tenant option. ๐Ÿชช
  • --silentExit[=false] โ€” Silent status codes do not affect the exit code. Silent status codes stay out of the exit codeโ€™s business. ๐Ÿค
  • --silentStatusCodes="" โ€” Status codes which will not print out an error message. These status codes keep their error messages to themselves. ๐Ÿ™Š
  • --timeout="600s" โ€” Request timeout duration, i.e. 60s, 2m. Ten minutes by default, bestie. โฑ๏ธ
  • --totalPages=0 โ€” Total number of pages to get. How many pages are we getting? This many. ๐Ÿ“š
  • -v, --verbose[=false] โ€” Verbose logging. More words, more detail, more vibes. ๐Ÿ—ฃ๏ธ
  • --view="auto" โ€” Use views when displaying data on the terminal. Disable using --view off. Views on auto, unless you say --view off. ๐Ÿ‘€
  • --withError[=false] โ€” Errors will be printed on stdout instead of stderr. Errors go to stdout instead of stderr. ๐Ÿ“ค
  • --withTotalElements[=false] โ€” Request Cumulocity to include the total elements in the response statistics under .statistics.totalElements (introduced in 10.13). Total elements under .statistics.totalElements, and yes, introduced in 10.13. ๐Ÿ”ข
  • -t, --withTotalPages[=false] โ€” Request Cumulocity to include the total pages in the response statistics under .statistics.totalPages. Total pages under .statistics.totalPages. ๐Ÿ“„
  • --workers=1 โ€” Number of workers. One worker by default, but you can change it. ๐Ÿ› ๏ธ

๐Ÿฆ‹ EXAMPLE ๐Ÿฆ‹

$ c8y usergroups list
Get a list of user groups for the current tenant

๐ŸŽ€ SEE ALSO ๐ŸŽ€


thatโ€™s the whole page, bestie โ€” source/version c8y(1), dated Jan 1980. mwah ๐Ÿ’‹

๐Ÿ“ฆ where this page comes from