c8y(1)
π c8y(1) β the Cumulocity CLI, but make it make sense π
okay bestie, welcome to the group chat β¨ this is the manual page for c8y, and yes we're doing the device services corner of it today. it's giving "small page, big family energy" ngl, because most of the flags you'll see here are literally just inherited from the parent command π don't worry, we're covering every single one. no skips, no cap.
β¨ NAME β¨
c8y-devices-services β Cumulocity device services π¦
like, the device services part. of Cumulocity. you're welcome π
πΈ SYNOPSIS πΈ
c8y devices services [flags]
that's it. that's the whole summoning ritual. c8y devices services + whatever flags you feel like throwing at it β¨
π DESCRIPTION π
Managed device services β and yes, the little lore drop is right there in the original: these were introduced in 10.14 π so if you're on something older, this whole page is a vibe check you're gonna fail, sorry bestie π
π OPTIONS π
the local ones. the home team. there's literally one. i love a low-effort queen π«Ά
-h,--help[=false]β help for services π« the "wait what does this do again" button. iconic.
π OPTIONS INHERITED FROM PARENT COMMANDS π
okay so this is the part where the parent command shows up and is like "here, take all my flags" π every single one is below, in order, no crumbs left behind. these are the ones that do the real heavy lifting.
--abortOnErrors=10β abort the whole batch once you hit the specified number of errors π that's your "girl, we're done here" threshold.--allowEmptyPipe[=false]β don't fail when the piped input (stdin) is empty π so your script doesn't have a meltdown over getting nothing.--cache[=false]β enable cached responses β‘ reuse instead of re-requesting, iykyk.--cacheBodyPaths=[]β cache should limit hashing of selected paths in the json body. Empty indicates all values π so[]= hash everything, basically.--cacheTTL="60s"β cache time-to-live (TTL) as a duration, i.e.60s,2mβ³ how long the cached thing gets to live before it's ghosted.-c,--compact[=false]β compact instead of pretty-printed output when using json output. Pretty print is the default if output is the terminal β¨ tiny json, no vibes, maximum efficiency.--confirm[=false]β prompt for confirmation π«Ά the "are you sure, bestie?" of flags.--confirmText=""β custom confirmation text π¬ write your own dramatic warning.--currentPage=0β current page which should be returned π page zero, we start at zero, respect the zero.--customQueryParam=[]β add custom URL query parameters. i.e.--customQueryParam 'withCustomOption=true,myOtherOption=myvalue'π yeet your own params into the URL.--debug[=false]β set very verbose log messages π not just verbose. Very. she's loud and she's proud.--delay="0ms"β delay after each request, i.e.5ms,1.2sπ΄ a lil breather after every call.--delayBefore="0ms"β delay before each request, i.e.5ms,1.2sπ§ same energy, but the warm-up stretch comes first.--dry[=false]β dry run. Don't send any data to the server π« nothing actually leaves the house. purely theoretical slay.--dryFormat="markdown"β dry run output format. i.e.json,dump,markdownorcurlπ how your dry run dresses up.markdownis the default fit β¨--examples[=false]β show examples for the current command π the "just show me, don't tell me" option.--filter=[]β apply a client side filter to response before returning it to the user π§ββοΈ sift through the results on your side before they reach you.--flatten[=false]β flatten json output by replacing nested json properties with properties where their names are represented by dot notation πͺ nested chaos β dot notation.a.b.ccore fr.-f,--force[=false]β do not prompt for confirmation. Ignored when using--confirmπ₯ no questions asked. literally. (but head's up:--confirmoverrides this one π)-H,--header=[]β custom headers. i.e.--header "Accept: value, AnotherHeader: myvalue"π¨ send your own headers into the wild.--includeAll[=false]β include all results by iterating through each page π every page, one after another, until there are none left. main character thoroughness.-k,--insecure[=false]β allow insecure server connections when using SSL π trust issues: disabled. use with care, bestie.-l,--logMessage=""β add custom message to the activity log ποΈ leave a lil note in the history.--maxJobs=0β maximum number of jobs.0= unlimited (use with caution!) π¨ and the caution is in the original, so i'm passing it straight to you. unlimited is a lot. π₯--noAccept[=false]β ignore Accept header will remove the Accept header from requests, however PUT and POST requests will only see the effect π exactly as written: the Accept header gets dropped, but only PUT and POST actually feel it.--noCache[=false]β force disabling of cached responses (overwrites cache setting) π the cache setting doesn't get a vote.-M,--noColor[=false]β don't use colors when displaying log entries on the console π¨π« monochrome mode, for when the rainbow is too much.--noLog[=false]β disables the activity log for the current command π€« this one goes down in silence.--noProgress[=false]β disable progress bars π no lil loading bar, just vibes and waiting.--noProxy[=false]β ignore the proxy settings πͺ going direct, no middleman.-n,--nullInput[=false]β don't read the input (stdin). Useful if using in shellfor/whileloops π so your loop doesn't get its stdin eaten. genuinely useful, ngl.-o,--output="table"β output format i.e.table,json,csv,csvheaderπ table is the default. dress accordingly.--outputFile=""β save JSON output to file (after select/view) πΎ note the parenthetical β this is after select/view.--outputFileRaw=""β save raw response to file (before select/view) ποΈ and this one is before. order matters bestie, don't mix these up.--outputTemplate=""β jsonnet template to apply to the output π jsonnet, not json, exactly as it says.-p,--pageSize=5β maximum results per page π default is 5. yes, five. small pages, cozy.--progress[=false]β show progress bar. This will also disable any other verbose output π‘ and it takes the other verbose output out with it.--proxy=""β proxy setting, i.e.http://10.0.0.1:8080π tunnel through your proxy of choice.-r,--raw[=false]β show raw response. This mode will forceoutput=jsonandview=offπͺ raw is raw β it takes over both of those settings, no negotiations.--retries=3β max number of attempts when a failed http call is encountered π three strikes-ish. default 3.--select=[]β comma separated list of properties to return. wildcards and globstar accepted, i.e.--select 'id,name,type,**.serialNumber'π pick exactly which properties you want.**is the globstar, she's fancy.--session=""β session configuration π« your session settings.--sessionMode=""β override default session mode for a single command which would normally be disabled π¦ single-command override, nothing permanent.-P,--sessionPassword=""β override session password π-U,--sessionUsername=""β override session username. i.e.peterort1234/peter(with tenant) π€ both forms, exactly as written β with tenant it'st1234/peter.--silentExit[=false]β silent status codes do not affect the exit code π€ the status codes stay quiet and don't touch your exit code.--silentStatusCodes=""β status codes which will not print out an error message π list the codes that stay quiet.--timeout="600s"β request timeout duration, i.e.60s,2mβ° default is600s, so she's patient.--totalPages=0β total number of pages to get π how far you're willing to go.-v,--verbose[=false]β verbose logging π£οΈ more words. more details. more everything.--view="auto"β use views when displaying data on the terminal. Disable using--view offπ₯οΈ defaultauto, and--view offis the off switch.--withError[=false]β errors will be printed on stdout instead of stderr π errors move to a different stream. they're still errors, just relocated.--withTotalElements[=false]β request Cumulocity to include the total elements in the response statistics under.statistics.totalElements(introduced in 10.13) π’ note the version β 10.13 β and note the path β.statistics.totalElements.-t,--withTotalPages[=false]β request Cumulocity to include the total pages in the response statistics under.statistics.totalPagesπ same energy,.statistics.totalPages, no version note on this one.--workers=1β number of workers π default 1. one little worker bee. add more if you're feeling brave.
π«Ά SEE ALSO π«Ά
the whole services fam, all of them, in order:
c8y-devices(1), c8y-devices-services-create(1), c8y-devices-services-delete(1), c8y-devices-services-find(1), c8y-devices-services-get(1), c8y-devices-services-list(1), c8y-devices-services-update(1)
create, delete, find, get, list, update β the full set π go read them, they're right there.
π quick reminder: that --maxJobs=0 unlimited thing comes with a use with caution! straight from the source. i'm not being dramatic, the manpage said it first. πΈ
and that's the page bestie β¨ dating all the way back to Jan 1980 (yes, really, that's the date in the footer π), from the c8y(1) manual. now go forth and manage those device services, you absolute icon ππ
π¦ 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