c8y(1)
π 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 is10.--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 β like60sor2m. Default is60s.-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 is0.--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 like5msor1.2s. Default is0ms.--delayBefore="0ms"β waits this long before each request. Duration, so like5msor1.2s. Default is0ms.--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 bejson,dump,markdown, orcurl. Default ismarkdown.--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.0means unlimited β and the original literally says "(use with caution!)" so I'm telling you: use with caution, bestie. Default is0.
β οΈ 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: onlyPUTandPOSTrequests 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 shellfororwhileloops.-o,--output="table"β sets the output format β liketable,json,csv, orcsvheader. Default istable.--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 is5.--progress[=false]β shows a progress bar. Warning: this also disables any other verbose output.--proxy=""β sets your proxy, likehttp://10.0.0.1:8080.-r,--raw[=false]β shows the raw response. This mode forcesoutput=jsonandview=off.--retries=3β how many times to retry when an http call fails. Default is3.--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. Likepeterort1234/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 like60sor2m. Default is600s.--totalPages=0β how many total pages to grab. Default is0.-v,--verbose[=false]β turns on verbose logging.--view="auto"β uses views when displaying data on the terminal. To turn it off:--view off. Default isauto.--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 is1.
π 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
- 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