c8y(1)

πŸ“¦ version 2.56.1, in nixpkgs unstable

πŸ’… c8y(1) β€” the c8y manual, bestie edition πŸŽ€

okay so real talk β€” this is c8y(1), like the actual c8y command manual page, and we're specifically deep-diving c8y-systemoptions-get. yes that's a long name. yes it's iconic. stay with me 🫢


✨ NAME ✨

c8y-systemoptions-get β€” Get system option 🌸

like. it gets a system option. that's the whole vibe check. πŸ’…


🌈 SYNOPSIS 🌈

c8y systemoptions get [flags]

that's it. that's the incantation. flags are where the fun lives, keep scrolling πŸ‘‘


πŸ¦‹ DESCRIPTION πŸ¦‹

Get a system option by category and key.

fr fr, that's the entire description β€” category plus key, and the option is yours. no cap, it's giving minimalism. ✨


πŸ’– OPTIONS πŸ’–

these are the options that belong to this command specifically. look at them. love them. πŸ“

  • --category="" β€” the System Option category. required, bestie, you literally cannot skip it πŸ™ˆ
  • -h, --help[=false] β€” help for get. the classic "what does this even do" button 🫢
  • --key="" β€” the System Option key. required too! and plot twist: it accepts pipeline, so you can pipe stuff in. iykyk πŸ’œ

πŸ‘‘ OPTIONS INHERITED FROM PARENT COMMANDS πŸ‘‘

okay these are the ones you didn't ask for but got anyway, because the parent command said "here, take my whole wardrobe" πŸ’€ literally the entire collection. there are so many. i counted. we're doing all of them. periodt.

  • --abortOnErrors=10 β€” abort the batch when you hit the specified number of errors. ten strikes and it's out ✨
  • --allowEmptyPipe[=false] β€” don't fail when the piped input (stdin) is empty. very forgiving. very demure πŸŽ€
  • --cache[=false] β€” enable cached responses. speed. ⚑
  • --cacheBodyPaths=[] β€” cache should limit hashing of selected paths in the json body. empty indicates all values. so like, empty = everything, no thoughts head empty 🧚
  • --cacheTTL="60s" β€” cache time-to-live (TTL) as a duration, i.e. 60s, 2m. it expires. everything expires eventually πŸ’€
  • -c, --compact[=false] β€” compact instead of pretty-printed output when using json output. pretty print is the default if output is the terminal. so if you're on a terminal it's automatically serving looks ✨
  • --confirm[=false] β€” prompt for confirmation. it asks first, consent is key 🫢
  • --confirmText="" β€” custom confirmation text. make it say whatever you want πŸ’–
  • --currentPage=0 β€” current page which should be returned. page zero. the origin story πŸ“–
  • --customQueryParam=[] β€” add custom URL query parameters. i.e. --customQueryParam 'withCustomOption=true,myOtherOption=myvalue'. build your own little query, main character energy πŸ‘‘
  • --debug[=false] β€” set very verbose log messages. it will NOT stop talking and honestly? relatable 😭
  • --delay="0ms" β€” delay after each request, i.e. 5ms, 1.2s. a little pause. self care 🌸
  • --delayBefore="0ms" β€” delay before each request, i.e. 5ms, 1.2s. a little pause, but earlier ✨
  • --dry[=false] β€” dry run. don't send any data to the server. it's a rehearsal, not the actual performance 🎭
  • --dryFormat="markdown" β€” dry run output format. i.e. json, dump, markdown or curl. pick your aesthetic πŸ’…
  • --examples[=false] β€” show examples for the current command. yes bestie, show me the receipts 🧾
  • --filter=[] β€” apply a client side filter to response before returning it to the user. filtering locally, we love a shortcut 🌈
  • --flatten[=false] β€” flatten json output by replacing nested json properties with properties where their names are represented by dot notation. nested? not anymore. we flattened it. πŸ¦‹
  • -f, --force[=false] β€” do not prompt for confirmation. ignored when using --confirm. bold of you. iconic of you. πŸ‘‘
  • -H, --header=[] β€” custom headers. i.e. --header "Accept: value, AnotherHeader: myvalue". accessorize your request πŸŽ€
  • --includeAll[=false] β€” include all results by iterating through each page. all of them. every single one. we don't leave anyone behind 🫢
  • -k, --insecure[=false] β€” allow insecure server connections when using SSL. it's literally called insecure, be careful bestie 😭
  • -l, --logMessage="" β€” add custom message to the activity log. leave a little note for future you ✨
  • --maxJobs=0 β€” maximum number of jobs. 0 = unlimited (use with caution!). use with caution!! they said it, not me πŸ’€
  • --noAccept[=false] β€” ignore Accept header, will remove the Accept header from requests, however PUT and POST requests will only see the effect. sneaky, but only partly πŸ•΅οΈ
  • --noCache[=false] β€” force disabling of cached responses (overwrites cache setting). cache said no? cache said NO. πŸ’…
  • -M, --noColor[=false] β€” don't use colors when displaying log entries on the console. monochrome moment. sad but valid πŸ–€
  • --noLog[=false] β€” disables the activity log for the current command. what happens in the command stays in the command πŸ™ˆ
  • --noProgress[=false] β€” disable progress bars. no little loading guys. they're gone πŸ«₯
  • --noProxy[=false] β€” ignore the proxy settings. straight to the source, no middleman 🧚
  • -n, --nullInput[=false] β€” don't read the input (stdin). useful if using in shell for/while loops. very handy, very specific πŸ”₯
  • -o, --output="table" β€” output format i.e. table, json, csv, csvheader. default is table because tables ate 🍽️
  • --outputFile="" β€” save JSON output to file (after select/view). it's the after picture πŸ“Έ
  • --outputFileRaw="" β€” save raw response to file (before select/view). the before picture, unfiltered 🎞️
  • --outputTemplate="" β€” jsonnet template to apply to the output. customize the fit πŸ’–
  • -p, --pageSize=5 β€” maximum results per page. five. that's the number. ⭐
  • --progress[=false] β€” show progress bar. this will also disable any other verbose output. it's a trade-off, bestie βš–οΈ
  • --proxy="" β€” proxy setting, i.e. http://10.0.0.1:8080. route it through the middleman πŸŒ‰
  • -r, --raw[=false] β€” show raw response. this mode will force output=json and view=off. no filter, no edits, raw footage 🎬
  • --retries=3 β€” max number of attempts when a failed http call is encountered. three tries. it's trying its best 😭
  • --select=[] β€” comma separated list of properties to return. wildcards and globstar accepted, i.e. --select 'id,name,type,**.serialNumber'. cherry-pick your faves πŸ’
  • --session="" β€” session configuration. your whole session situation πŸͺͺ
  • --sessionMode="" β€” override default session mode for a single command which would normally be disabled. special occasion, special mode ✨
  • -P, --sessionPassword="" β€” override session password. shhh 🀫
  • -U, --sessionUsername="" β€” override session username. i.e. peter or t1234/peter (with tenant). hi peter πŸ‘‹
  • --silentExit[=false] β€” silent status codes do not affect the exit code. quiet quitting, exit-code edition πŸ’…
  • --silentStatusCodes="" β€” status codes which will not print out an error message. some errors just don't get to speak πŸ™Š
  • --timeout="600s" β€” request timeout duration, i.e. 60s, 2m. ten minutes of patience, then we're done waiting ⏰
  • --totalPages=0 β€” total number of pages to get. how many pages? yes. πŸ“š
  • -v, --verbose[=false] β€” verbose logging. it says everything. everything. πŸ—£οΈ
  • --view="auto" β€” use views when displaying data on the terminal. disable using --view off. auto is the default, so it just vibes ✨
  • --withError[=false] β€” errors will be printed on stdout instead of stderr. moving the drama to a different stream 🎭
  • --withTotalElements[=false] β€” request Cumulocity to include the total elements in the response statistics under .statistics.totalElements (introduced in 10.13). note the version, it matters πŸ—“οΈ
  • -t, --withTotalPages[=false] β€” request Cumulocity to include the total pages in the response statistics under .statistics.totalPages. pages, but with receipts 🧾
  • --workers=1 β€” number of workers. one worker. they're doing their best 🫑

🌟 EXAMPLE 🌟

here's the moment you've all been waiting for:

$ c8y systemoptions get --category "system" --key "version"
Get a list of system options

look at that. category system, key version, and the output says "Get a list of system options". slay. ate. no crumbs. πŸ”₯


πŸŽ€ SEE ALSO πŸŽ€


and that's the page, bestie πŸ’œ it's from Jan 1980 (yes, literally, that's the date at the bottom, vintage behavior) and it's filed under the source/version line c8y(1). go forth and get those system options πŸ¦‹βœ¨πŸ’…

πŸ“¦ where this page comes from