c8y(1)

πŸ“¦ version 2.56.1, in nixpkgs unstable

πŸ’… c8y-tenants β€” Cumulocity tenant πŸ¦‹

okay so real quick before we dive in: this is a page from the c8y manual (that's the c8y(1) one), and it's all about the c8y-tenants command. Bestie, let's get into it ✨


🌸 SYNOPSIS 🌸

c8y tenants [flags]

that's it. that's the whole invocation. short and iconic fr fr πŸ’…


πŸŽ€ DESCRIPTION πŸŽ€

it's a REST endpoint to interact with Cumulocity tenants. that's the vibe β€” you're talking to the tenants endpoint, that's what this does 🫢


⭐ OPTIONS ⭐

  • -h, --help[=false] β€” shows help for tenants. the classic. the goat. use it when you're lost πŸ’–

🌈 OPTIONS INHERITED FROM PARENT COMMANDS 🌈

so these aren't this command's own flags β€” they're handed down from the parent command, and they work here too. there's a lot of them, so buckle up bestie πŸ‘‘

  • --abortOnErrors=10 β€” aborts the batch once you hit the specified number of errors
  • --allowEmptyPipe[=false] β€” don't fail when the piped input (stdin) is empty πŸ™ˆ
  • --cache[=false] β€” turns on cached responses
  • --cacheBodyPaths=[] β€” tells the cache to only hash the selected paths inside the json body; empty means all values get hashed
  • --cacheTTL="60s" β€” cache time-to-live (TTL) written as a duration, i.e. 60s, 2m
  • -c, --compact[=false] β€” compact instead of pretty-printed output when using json output. pretty print is the default if the output is the terminal ✨
  • --confirm[=false] β€” prompts you for confirmation
  • --confirmText="" β€” custom confirmation text
  • --currentPage=0 β€” the current page that should be returned
  • --customQueryParam=[] β€” adds custom URL query parameters, i.e. --customQueryParam 'withCustomOption=true,myOtherOption=myvalue'
  • --debug[=false] β€” sets very verbose log messages πŸ”₯
  • --delay="0ms" β€” delay after each request, i.e. 5ms, 1.2s
  • --delayBefore="0ms" β€” delay before each request, i.e. 5ms, 1.2s
  • --dry[=false] β€” dry run. sends absolutely nothing to the server πŸ’€
  • --dryFormat="markdown" β€” dry run output format, i.e. json, dump, markdown or curl
  • --examples[=false] β€” shows examples for the current command
  • --filter=[] β€” applies a client side filter to the response before it goes back to you
  • --flatten[=false] β€” flattens json output by replacing nested json properties with properties whose names are written in dot notation
  • -f, --force[=false] β€” don't prompt for confirmation. this one gets ignored when you're using --confirm
  • -H, --header=[] β€” custom headers, i.e. --header "Accept: value, AnotherHeader: myvalue"
  • --includeAll[=false] β€” includes all results by iterating through each page πŸ¦‹
  • -k, --insecure[=false] β€” allows insecure server connections when using SSL
  • -l, --logMessage="" β€” adds a custom message to the activity log
  • --maxJobs=0 β€” maximum number of jobs. 0 = unlimited (use with caution! ⚠️ like genuinely, caution)
  • --noAccept[=false] β€” ignores the Accept header, which removes the Accept header from requests; however PUT and POST requests will only see the effect
  • --noCache[=false] β€” force-disables cached responses (overwrites the cache setting)
  • -M, --noColor[=false] β€” don't use colors when displaying log entries on the console
  • --noLog[=false] β€” disables the activity log for the current command
  • --noProgress[=false] β€” disables progress bars
  • --noProxy[=false] β€” ignores the proxy settings
  • -n, --nullInput[=false] β€” don't read the input (stdin). useful if you're using it in shell for/while loops 🧚
  • -o, --output="table" β€” output format, i.e. table, json, csv, csvheader
  • --outputFile="" β€” saves JSON output to a file (after select/view)
  • --outputFileRaw="" β€” saves the raw response to a file (before select/view)
  • --outputTemplate="" β€” jsonnet template to apply to the output
  • -p, --pageSize=5 β€” maximum results per page
  • --progress[=false] β€” show a progress bar. this also disables any other verbose output
  • --proxy="" β€” proxy setting, i.e. http://10.0.0.1:8080
  • -r, --raw[=false] β€” show the raw response. this mode forces output=json and view=off
  • --retries=3 β€” max number of attempts when a failed http call is encountered
  • --select=[] β€” comma separated list of properties to return. wildcards and globstar accepted, i.e. --select 'id,name,type,**.serialNumber' ⭐
  • --session="" β€” session configuration
  • --sessionMode="" β€” overrides the default session mode for a single command, which would normally be disabled
  • -P, --sessionPassword="" β€” override session password
  • -U, --sessionUsername="" β€” override session username, i.e. peter or t1234/peter (with tenant)
  • --silentExit[=false] β€” silent status codes don't affect the exit code
  • --silentStatusCodes="" β€” status codes that won't print out an error message
  • --timeout="600s" β€” request timeout duration, i.e. 60s, 2m
  • --totalPages=0 β€” total number of pages to get
  • -v, --verbose[=false] β€” verbose logging
  • --view="auto" β€” use views when displaying data on the terminal. disable with --view off
  • --withError[=false] β€” errors get printed on stdout instead of stderr
  • --withTotalElements[=false] β€” asks Cumulocity to include the total elements in the response statistics under .statistics.totalElements (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

πŸ‘‘ SEE ALSO πŸ‘‘

go read these too, they're all part of the family 🫢


okay that's the whole page, no notes πŸ’– oh and for the record β€” this one's dated Jan 1980 and it belongs to the c8y(1) manual. yes, 1980. we don't ask questions, we just slay πŸŽ€βœ¨

go touch some grass and then come back and read your --help output, i believe in you πŸ“
πŸ“¦ where this page comes from