c8y(1)

πŸ“¦ version 2.56.1, in nixpkgs unstable

πŸ’– c8y(1) β€” c8y-scripts: Script Utilities, Bestie Edition πŸ’–

okay so you're looking at the manual page for c8y scripts β€” that's part of the c8y(1) command suite β€” and it's literally all about processing and formatting shell scripts. I'm obsessed already. Let's get into it. 🫢


🌸 NAME 🌸

c8y-scripts β€” Script utilities. That's the whole vibe. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

c8y scripts [flags]

πŸŽ€ DESCRIPTION πŸŽ€

Utilities for processing and formatting shell scripts. It's giving "I just want my scripts to look cute and actually work" energy. ✨


✨ OPTIONS ✨

  • -h, --help[=false] β€” shows you this help text for the scripts command, bestie.

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

  • --abortOnErrors=10 β€” aborts the whole batch once it reaches the specified number of errors. Default is 10.
  • --allowEmptyPipe[=false] β€” doesn't fail when the piped input is empty (stdin). So if you pipe in literally nothing, it won't break on you.
  • --cache[=false] β€” enables cached responses so you're not re-fetching the same stuff over and over.
  • --cacheBodyPaths=[] β€” limits which paths in the json body get hashed for the cache. An empty array (the default) means all values get hashed.
  • --cacheTTL="60s" β€” the cache's time-to-live (TTL) as a duration β€” like 60s or 2m. Default is 60s.
  • -c, --compact[=false] β€” compacts the output instead of pretty-printing it when you're using json output. Fun fact: pretty print is the default if the output is going to your terminal.
  • --confirm[=false] β€” prompts you to confirm before doing the thing.
  • --confirmText="" β€” lets you write your own custom confirmation text instead of the default one.
  • --currentPage=0 β€” tells it which page you actually want back. Default is 0.
  • --customQueryParam=[] β€” lets you add your own custom URL query params, like --customQueryParam 'withCustomOption=true,myOtherOption=myvalue'.
  • --debug[=false] β€” turns on super verbose log messages so you can see everything that's happening.
  • --delay="0ms" β€” waits this long after each request. It's a duration, so like 5ms or 1.2s. Default is 0ms.
  • --delayBefore="0ms" β€” waits this long before each request. Duration, so like 5ms or 1.2s. Default is 0ms.
  • --dry[=false] β€” dry run mode! It literally doesn't send any data to the server, it just shows you what would happen.
  • --dryFormat="markdown" β€” the format for dry run output β€” can be json, dump, markdown, or curl. Default is markdown.
  • --examples[=false] β€” shows you examples for whatever command you're currently running.
  • --filter=[] β€” applies a client-side filter to the response before it even gets to you.
  • --flatten[=false] β€” flattens json output by replacing nested json properties with properties where their names are represented by dot notation.
  • -f, --force[=false] β€” skips the confirmation prompt and just does the thing. But heads up: it's ignored when you're using --confirm.
  • -H, --header=[] β€” lets you add custom headers, like --header 'Accept: value, AnotherHeader: myvalue'.
  • --includeAll[=false] β€” grabs all the results by iterating through every single page.
  • -k, --insecure[=false] β€” allows insecure server connections when you're using SSL. Literally what it says on the tin, so know what you're doing.
  • -l, --logMessage="" β€” adds your own custom message into the activity log.
  • --maxJobs=0 β€” max number of jobs to run. 0 means unlimited β€” and the original literally says "(use with caution!)" so I'm telling you: use with caution, bestie. Default is 0.
⚠️ 0 = unlimited jobs. The manpage itself is like "use with caution!" and honestly same energy. Don't come for me if your machine starts crying. 😭
  • --noAccept[=false] β€” removes the Accept header from requests. But careful: only PUT and POST requests will actually see the effect.
  • --noCache[=false] β€” forces cached responses OFF. It overwrites whatever your cache setting was.
  • -M, --noColor[=false] β€” turns off colors when log entries are shown on the console.
  • --noLog[=false] β€” disables the activity log for the command you're running right now.
  • --noProgress[=false] β€” turns off progress bars.
  • --noProxy[=false] β€” ignores your proxy settings.
  • -n, --nullInput[=false] β€” doesn't read the input (stdin). Super useful when you're using it in shell for or while loops.
  • -o, --output="table" β€” sets the output format β€” like table, json, csv, or csvheader. Default is table.
  • --outputFile="" β€” saves the JSON output to a file. Important: this happens after select/view.
  • --outputFileRaw="" β€” saves the raw response to a file. Important: this happens before select/view.
  • --outputTemplate="" β€” applies a jsonnet template to the output.
  • -p, --pageSize=5 β€” max number of results you get per page. Default is 5.
  • --progress[=false] β€” shows a progress bar. Warning: this also disables any other verbose output.
  • --proxy="" β€” sets your proxy, like http://10.0.0.1:8080.
  • -r, --raw[=false] β€” shows the raw response. This mode forces output=json and view=off.
  • --retries=3 β€” how many times to retry when an http call fails. Default is 3.
  • --select=[] β€” a comma-separated list of properties you want back. Wildcards and globstar are accepted, like --select 'id,name,type,**.serialNumber'.
  • --session="" β€” session config stuff.
  • --sessionMode="" β€” overrides the default session mode for just this one command β€” the mode that would normally be disabled.
  • -P, --sessionPassword="" β€” overrides the session password.
  • -U, --sessionUsername="" β€” overrides the session username. Like peter or t1234/peter (with tenant).
  • --silentExit[=false] β€” makes it so silent status codes do not affect the exit code.
  • --silentStatusCodes="" β€” status codes that will not print out an error message.
  • --timeout="600s" β€” how long before a request times out. It's a duration like 60s or 2m. Default is 600s.
  • --totalPages=0 β€” how many total pages to grab. Default is 0.
  • -v, --verbose[=false] β€” turns on verbose logging.
  • --view="auto" β€” uses views when displaying data on the terminal. To turn it off: --view off. Default is auto.
  • --withError[=false] β€” makes errors print on stdout instead of stderr.
  • --withTotalElements[=false] β€” asks Cumulocity to include the total elements in the response statistics under .statistics.totalElements β€” this was introduced in 10.13.
  • -t, --withTotalPages[=false] β€” asks Cumulocity to include the total pages in the response statistics under .statistics.totalPages.
  • --workers=1 β€” number of workers to use. Default is 1.

🌈 SEE ALSO 🌈


and that's a wrap on c8y scripts, bestie! πŸŽ€ this page is from the c8y(1) manual, dated Jan 1980, and you can always check the SEE ALSO for more. mwah, love you, bye! πŸ’–πŸ«Άβœ¨

πŸ“¦ where this page comes from