c8y(1)

๐Ÿ“ฆ version 2.56.1, in nixpkgs unstable

๐Ÿ’… c8y(1) โ€” the c8y-util glow-up

okay bestie, you're looking at c8y(1), and this is the page for the general utilities situation โ€” the little helper corner of c8y you'll be combining with all your other c8y commands. yes, it's giving "supporting cast" but honestly? supporting cast with main character energy. let's go ๐ŸŽ€


โœจ NAME โœจ

c8y-util โ€” General utilities. that's it, that's the whole name. short, sweet, iconic. ๐Ÿฆ‹


โœจ SYNOPSIS โœจ

c8y util [flags]

literally just that. c8y util plus whatever flags you're feeling. no notes. ๐Ÿ‘‘


โœจ DESCRIPTION โœจ

General utilities for combining with other c8y commands. so like โ€” this is the glue, the lil toolbox, the thing you reach for when you want to build bigger stuff out of the other commands. no cap, it's a team player. ๐Ÿซถ


โœจ OPTIONS โœจ

okay so here's the local squad โ€” the flags that belong to util itself:

  • -h, --help=[false] โ€” help for util. the classic. when in doubt, ask for help. ๐Ÿ’–

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

now THIS is the section. these are the flags that come down from the parent command โ€” the whole heirloom collection. every single one, no skipping, because we don't do that here. ๐ŸŒธ

  • --abortOnErrors=10 โ€” Abort batch when reaching specified number of errors. like, if 10 things go wrong, bestie, we're stopping. ๐Ÿ›‘
  • --allowEmptyPipe=[false] โ€” Don't fail when piped input is empty (stdin). empty pipe? no drama. ๐Ÿ’…
  • --cache=[false] โ€” Enable cached responses. reuse & recycle โœจ
  • --cacheBodyPaths=[] โ€” Cache should limit hashing of selected paths in the json body. Empty indicates all values. like, narrow it down if you want, or don't. ๐ŸŽ€
  • --cacheTTL="60s" โ€” Cache time-to-live (TTL) as a duration, i.e. 60s, 2m. how long your cached stuff stays fresh, fr fr. โณ
  • -c, --compact=[false] โ€” Compact instead of pretty-printed output when using json output. Pretty print is the default if output is the terminal. so like, pretty when you're on the terminal, compact when you're piping. slay. ๐Ÿ”ฅ
  • --confirm=[false] โ€” Prompt for confirmation. yes, it wants a lil "are you sure?" moment. ๐Ÿ™ˆ
  • --confirmText="" โ€” Custom confirmation text. make it say whatever you want. ๐Ÿ‘‘
  • --currentPage=0 โ€” Current page which should be returned. page zero, baby. ๐Ÿ“„
  • --customQueryParam=[] โ€” add custom URL query parameters. i.e. --customQueryParam 'withCustomOption=true,myOtherOption=myvalue'. yes, it's comma-separated. yes, it's exact. ๐ŸŒˆ
  • --debug=[false] โ€” Set very verbose log messages. VERY verbose. like, "why is it telling me all this" verbose. use it when you're stuck tho, lowkey lifesaver. ๐Ÿ’€
  • --delay="0ms" โ€” delay after each request, i.e. 5ms, 1.2s. be polite to the server. ๐Ÿงš
  • --delayBefore="0ms" โ€” delay before each request, i.e. 5ms, 1.2s. same energy, but earlier. โฑ๏ธ
  • --dry=[false] โ€” Dry run. Don't send any data to the server. rehearse, don't commit. ๐ŸŽญ
  • --dryFormat="markdown" โ€” Dry run output format. i.e. json, dump, markdown or curl. pick your flavor. โญ
  • --examples=[false] โ€” Show examples for the current command. yes bestie, there are examples, go look. ๐Ÿ“š
  • --filter=[] โ€” Apply a client side filter to response before returning it to the user. sift it before it hits you. ๐Ÿ’–
  • --flatten=[false] โ€” flatten json output by replacing nested json properties with properties where their names are represented by dot notation. nested stuff becomes like.this. ๐Ÿฆ‹
  • -f, --force=[false] โ€” Do not prompt for confirmation. Ignored when using --confirm. bold move, but noted. ๐Ÿ’…
  • -H, --header=[] โ€” custom headers. i.e. --header "Accept: value, AnotherHeader: myvalue". ๐ŸŽ€
  • --includeAll=[false] โ€” Include all results by iterating through each page. all the pages, all the results. ๐ŸŒธ
  • -k, --insecure=[false] โ€” Allow insecure server connections when using SSL. โš ๏ธ insecure is literally in the name โ€” know what you're doing.
  • -l, --logMessage="" โ€” Add custom message to the activity log. leave your lil signature. โœ๏ธ
  • --maxJobs=0 โ€” Maximum number of jobs. 0 = unlimited (use with caution!). like, the caution is theirs, not mine, but I'm passing it along verbatim bestie. ๐Ÿ”ฅ
  • --noAccept=[false] โ€” Ignore Accept header will remove the Accept header from requests, however PUT and POST requests will only see the effect. that's the whole deal, exactly as written. ๐Ÿ‘€
  • --noCache=[false] โ€” Force disabling of cached responses (overwrites cache setting). cache? not today. ๐Ÿšซ
  • -M, --noColor=[false] โ€” Don't use colors when displaying log entries on the console. for the monochrome girlies. ๐Ÿ–ค
  • --noLog=[false] โ€” Disables the activity log for the current command. ๐ŸŒ™
  • --noProgress=[false] โ€” Disable progress bars. no lil bars, just vibes. ๐ŸŽ
  • --noProxy=[false] โ€” Ignore the proxy settings. ๐Ÿšช
  • -n, --nullInput=[false] โ€” Don't read the input (stdin). Useful if using in shell for/while loops. genuinely so useful. ๐Ÿ’ก
  • -o, --output="table" โ€” Output format i.e. table, json, csv, csvheader. pick your aesthetic. ๐ŸŒˆ
  • --outputFile="" โ€” Save JSON output to file (after select/view). ๐Ÿ’พ
  • --outputFileRaw="" โ€” Save raw response to file (before select/view). โš ๏ธ note the "before" โ€” it's different from --outputFile, don't mix 'em up.
  • --outputTemplate="" โ€” jsonnet template to apply to the output. fancy. ๐ŸŽจ
  • -p, --pageSize=5 โ€” Maximum results per page. five. by default. ๐Ÿค
  • --progress=[false] โ€” Show progress bar. This will also disable any other verbose output. โš ๏ธ it's a trade-off, bestie โ€” progress bar in, verbose out.
  • --proxy="" โ€” Proxy setting, i.e. http://10.0.0.1:8080. ๐Ÿ›ฐ๏ธ
  • -r, --raw=[false] โ€” Show raw response. This mode will force output=json and view=off. it's not asking, it's telling. ๐Ÿ’€
  • --retries=3** โ€” Max number of attempts when a failed http call is encountered. three strikes energy. ๐Ÿ”
  • --select=[] โ€” Comma separated list of properties to return. wildcards and globstar accepted, i.e. --select 'id,name,type,**.serialNumber'. โœจ
  • --session="" โ€” Session configuration. ๐Ÿ”
  • --sessionMode="" โ€” Override default session mode for a single command which would normally be disabled. ๐Ÿ˜Œ
  • -P, --sessionPassword="" โ€” Override session password. ๐Ÿคซ
  • -U, --sessionUsername="" โ€” Override session username. i.e. peter or t1234/peter (with tenant). ๐Ÿซถ
  • --silentExit=[false] โ€” Silent status codes do not affect the exit code. ๐ŸŽ€
  • --silentStatusCodes="" โ€” Status codes which will not print out an error message. ๐Ÿค
  • --timeout="600s" โ€” Request timeout duration, i.e. 60s, 2m. ten whole minutes by default, generous queen. โฐ
  • --totalPages=0 โ€” Total number of pages to get. ๐Ÿ“š
  • -v, --verbose=[false] โ€” Verbose logging. the chattier sibling of --debug. ๐Ÿ—ฃ๏ธ
  • --view="auto" โ€” Use views when displaying data on the terminal. Disable using --view off. ๐Ÿ‘€
  • --withError=[false] โ€” Errors will be printed on stdout instead of stderr. plot twist: errors go to stdout now. ๐Ÿ”€
  • --withTotalElements=[false] โ€” Request Cumulocity to include the total elements in the response statistics under .statistics.totalElements (introduced in 10.13). ๐Ÿงฎ
  • -t, --withTotalPages=[false] โ€” Request Cumulocity to include the total pages in the response statistics under .statistics.totalPages. ๐Ÿ“–
  • --workers=1 โ€” Number of workers. one worker by default, one worker doing their best. ๐Ÿ’ช

๐ŸŒˆ SEE ALSO ๐ŸŒˆ

go read these too, they're the friend group:


okay that's the whole page bestie, you ate this ๐Ÿ’… genuinely โ€” this was c8y(1) from Jan 1980, and yes the date is sending me too but that's what the page says so that's what we're putting. ๐ŸŽ€โœจ love you, go combine some commands ๐Ÿซถ

๐Ÿ“ฆ where this page comes from