c8y(1)

πŸ“¦ version 2.56.1, in nixpkgs unstable

πŸ’… c8y(1) β€” the firmware-get glow-up you didn't know you needed ✨

okay so bestie, this is the c8y manual page (section 1 of the manual, iykyk) and specifically it's all about c8y-firmware-get β€” yes, the firmware-getter herself. she's a subcommand of the c8y firmware family, and she's honestly iconic for what she does. let's get into it 🫢


🌸 NAME 🌸

c8y-firmware-get β€” Get firmware

that's it, that's her whole job. she gets firmware. main character energy fr πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

c8y firmware get [flags]

like, that's the whole invocation. you type it, you get firmware. slay ✨


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so what this literally does: it gets an existing firmware package, which is a managedObject. that's the vibe β€” you already have a firmware package sitting there on the tenant, and this command goes and fetches it for you. no cap, that's the entire description, she's a simple girlie πŸ“


✨ OPTIONS ✨

here's the full flag lineup, bestie. every single one. no skipping πŸ™ˆ

  • -h, --help[=false] β€” shows help for get. the classic. when in doubt, ask for help πŸ’–
  • --id=[] β€” the firmware package (managedObject) id. this one is required β€” like, you cannot skip it, it's giving non-negotiable. also accepts pipeline input, so you can pipe that id right in there 🫢
  • --skipChildrenNames[=false] β€” "don't include the child devices names in the response." why would you want this? because the API response gets faster when it doesn't have to go retrieve all those names. performance queen behavior πŸ’…
  • --withChildren[=false] β€” determines if children with ID and name should be returned when fetching the managed object. set it to false to improve query performance. your call, bestie ✨
  • --withChildrenCount[=false] β€” when set to true, the returned result will contain the total number of children in the respective objects (childAdditions, childAssets and childDevices). counting the children, very mother-hen of her 🐣
  • --withGroups[=false] β€” when set to true it returns additional information about the groups the searched managed object belongs to. this results in setting the assetParents property with extra group info. she's telling you what circles she runs in πŸ‘‘
  • --withParents[=false] β€” include a flat list of all parents and grandparents of the given object. the whole family tree, flat-laid out 🌳

πŸ”₯ OPTIONS INHERITED FROM PARENT COMMANDS πŸ”₯

these come from the parent commands, so they're not exclusively hers, but they still show up and they all matter. let's go. ⭐

  • --abortOnErrors=10 β€” abort batch when reaching the specified number of errors. like, ten strikes and you're out πŸ’€
  • --allowEmptyPipe[=false] β€” don't fail when piped input is empty (stdin). she'll just vibe with the silence πŸ™ˆ
  • --cache[=false] β€” enable cached responses. saving you that round trip ✨
  • --cacheBodyPaths=[] β€” cache should limit hashing of selected paths in the json body. empty indicates all values. very "specifics only" of her πŸŽ€
  • --cacheTTL="60s" β€” cache time-to-live (TTL) as a duration, i.e. 60s, 2m. clock's ticking bestie ⏰
  • -c, --compact[=false] β€” compact instead of pretty-printed output when using json output. pretty print is the default if output is the terminal. so it's already cute by default, this just makes it ✨less✨ πŸ¦‹
  • --confirm[=false] β€” prompt for confirmation. consent checks, we love to see it 🫢
  • --confirmText="" β€” custom confirmation text. your own words for the "u sure?" moment πŸ’¬
  • --currentPage=0 β€” current page which should be returned. page zero, the beginning of the journey πŸ“–
  • --customQueryParam=[] β€” add custom URL query parameters. i.e. --customQueryParam 'withCustomOption=true,myOtherOption=myvalue'. you do you πŸ”₯
  • --debug[=false] β€” set very verbose log messages. the "she's telling you EVERYTHING" mode πŸ’€
  • --delay="0ms" β€” delay after each request, i.e. 5ms, 1.2s. pace yourself queen 🌸
  • --delayBefore="0ms" β€” delay before each request, i.e. 5ms, 1.2s. breathe first 🧘
  • --dry[=false] β€” dry run. don't send any data to the server. practice mode, nothing leaves the group chat πŸ™ˆ
  • --dryFormat="markdown" β€” dry run output format. i.e. json, dump, markdown or curl. pick your aesthetic πŸ’…
  • --examples[=false] β€” show examples for the current command. honestly? use this πŸ‘‘ (okay, mild editorializing from me there β€” the flag does what it says, showing examples for the current command πŸ’–)
  • --filter=[] β€” apply a client side filter to response before returning it to the user. you know exactly what you want 🎯
  • --flatten[=false] β€” flatten json output by replacing nested json properties with properties where their names are represented by dot notation. nested? not anymore. flat like a pancake πŸ₯ž
  • -f, --force[=false] β€” do not prompt for confirmation. ignored when using --confirm. (so --confirm wins the argument, noted πŸ“)
  • -H, --header=[] β€” custom headers. i.e. --header "Accept: value, AnotherHeader: myvalue". headers on headers πŸ’Œ
  • --includeAll[=false] β€” include all results by iterating through each page. all of it. every last one. obsessed 🌈
  • -k, --insecure[=false] β€” allow insecure server connections when using SSL. ⚠️ heads up bestie, this is the "I know what I'm doing" button, use accordingly ⚠️
  • -l, --logMessage="" β€” add custom message to the activity log. leave a little note for the timeline πŸ“
  • --maxJobs=0 β€” maximum number of jobs. 0 = unlimited (use with caution!). use with caution is literally in the docs so I'm passing it along fr fr πŸ’€
  • --noAccept[=false] β€” ignore Accept header, will remove the Accept header from requests. however PUT and POST requests will only see the effect. important nuance, don't forget it πŸŽ€
  • --noCache[=false] β€” force disabling of cached responses (overwrites cache setting). cold take, no stale vibes 🧊
  • -M, --noColor[=false] β€” don't use colors when displaying log entries on the console. monochrome era πŸ–€
  • --noLog[=false] β€” disables the activity log for the current command. off the record 🀫
  • --noProgress[=false] β€” disable progress bars. no little loading guys 🫠
  • --noProxy[=false] β€” ignore the proxy settings. straight to the source πŸš€
  • -n, --nullInput[=false] β€” don't read the input (stdin). useful if using in shell for/while loops. very "I'm busy, don't pipe me" πŸ™…
  • -o, --output="table" β€” output format, i.e. table, json, csv, csvheader. pick your presentation bestie 🎁
  • --outputFile="" β€” save JSON output to file (after select/view). post-processing save πŸ’Ύ
  • --outputFileRaw="" β€” save raw response to file (before select/view). pre-processing save, the raw truth πŸ’Ύ
  • --outputTemplate="" β€” jsonnet template to apply to the output. fancy ✨
  • -p, --pageSize=5 β€” maximum results per page. five at a time, cozy 🍡
  • --progress[=false] β€” show progress bar. this will also disable any other verbose output. (trade-off, noted πŸ“)
  • --proxy="" β€” proxy setting, i.e. http://10.0.0.1:8080. route it through πŸ›£οΈ
  • -r, --raw[=false] β€” show raw response. this mode will force output=json and view=off. no filter, no vibes, just data πŸ’€
  • --retries=3 β€” max number of attempts when a failed http call is encountered. three strikes, but for network glitches 🎳
  • --select=[] β€” comma separated list of properties to return. wildcards and globstar accepted, i.e. --select 'id,name,type,**.serialNumber'. cherry-picking, we stan πŸ’
  • --session="" β€” session configuration. πŸ”‘
  • --sessionMode="" β€” override default session mode for a single command which would normally be disabled. one-time override, very rebellious πŸ’…
  • -P, --sessionPassword="" β€” override session password. 🀫
  • -U, --sessionUsername="" β€” override session username. i.e. peter or t1234/peter (with tenant). tenant-aware, periodt 🏒
  • --silentExit[=false] β€” silent status codes do not affect the exit code. quiet quitting the exit code 😌
  • --silentStatusCodes="" β€” status codes which will not print out an error message. shhh 🀐
  • --timeout="600s" β€” request timeout duration, i.e. 60s, 2m. ten minutes default, generous queen ⏳
  • --totalPages=0 β€” total number of pages to get. how many pages, your choice πŸ“š
  • -v, --verbose[=false] β€” verbose logging. she's chatty now πŸ—£οΈ
  • --view="auto" β€” use views when displaying data on the terminal. disable using --view off. auto is the default, she reads the room πŸ‘€
  • --withError[=false] β€” errors will be printed on stdout instead of stderr. redirect-friendly 🎯
  • --withTotalElements[=false] β€” request Cumulocity to include the total elements in the response statistics under .statistics.totalElements (introduced in 10.13). version note, don't forget it πŸ“Œ
  • -t, --withTotalPages[=false] β€” request Cumulocity to include the total pages in the response statistics under .statistics.totalPages. πŸ“„
  • --workers=1 β€” number of workers. one worker, chill pace πŸ‘·

🌈 EXAMPLE 🌈

$ c8y firmware get --id 12345
Get a firmware package

get a firmware package, directly by id. straightforward, gorgeous ✨

$ echo 12345 | c8y firmware get
Get a firmware package (using pipeline)

and the pipeline version β€” pipe the id straight in, she picks it up like the icon she is πŸ’– (this is why --id says it accepts pipeline, iykyk 🫢)


πŸ’œ SEE ALSO πŸ’œ

  • c8y-firmware(1) β€” her parent, the whole firmware family. go say hi πŸ¦‹

okay bestie that's the whole page!! every flag, every default, every little detail β€” nothing dropped, nothing invented, just delivered with the energy she deserves πŸ‘‘

sign-off time 🌸 this beauty is dated Jan 1980 (yes, that date, iconic vintage energy) and lives under the manual name c8y in section 1 β€” so when you run man 1 c8y you know exactly whose page you're reading. mwah πŸ’‹ πŸ’…βœ¨


πŸ“¦ where this page comes from