c8y(1)
๐ 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 forutil. 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,markdownorcurl. 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 becomeslike.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 shellfor/whileloops. 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 forceoutput=jsonandview=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.peterort1234/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 in10.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
- nixpkgs unstable: go-c8y-cli 2.56.1
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms