c8y(1)

πŸ“¦ version 2.56.1, in nixpkgs unstable

πŸ’… c8y(1) β€” sessions clear, but make it make sense πŸ’…

okay so bestie, welcome to the manual for c8y sessions clear. This is the c8y(1) page, and we are clearing a session. No cap, it’s a tiny command with a whole inheritance situation. Let’s get into it. 🫢


πŸ“› NAME πŸ“›

c8y-sessions-clear β€” clear the current session. That’s the whole assignment. πŸ’–

✨ SYNOPSIS ✨

c8y sessions clear [flags]

πŸ’¬ DESCRIPTION πŸ’¬

okay so this command clears the current session by returning all the environment variables which should be unset via a shell snippet. Like, it hands you the unset-vibes snippet and your shell does the rest. 🧚

πŸŽ›οΈ OPTIONS πŸŽ›οΈ

  • -h, --help[=false] β€” help for clear. Your little β€œwhat does this do” button. πŸ’…
  • --shell="auto" β€” Shell type. Defaults to auto if not printing to terminal. So it picks auto unless it’s outputting to a terminal. ✨

🧬 OPTIONS INHERITED FROM PARENT COMMANDS 🧬

these are inherited, bestie β€” still fully relevant, still invited to the party.

  • --abortOnErrors=10 β€” abort the batch when it reaches the specified number of errors. The number here is 10. πŸ’€
  • --allowEmptyPipe[=false] β€” don’t fail when piped input is empty (stdin). Empty pipe? We vibing. 🫢
  • --cache[=false] β€” enable cached responses. Cache vibes only when it’s on. ⚑
  • --cacheBodyPaths=[] β€” the cache should limit hashing of selected paths in the json body. Empty indicates all values. πŸ“
  • --cacheTTL="60s" β€” cache time-to-live (TTL) as a duration, i.e. 60s, 2m. The default is "60s". ⏳
  • -c, --compact[=false] β€” compact instead of pretty-printed output when using json output. Pretty print is the default if output is the terminal. So terminal gets the pretty; compact is for when you want it squished. πŸŽ€
  • --confirm[=false] β€” prompt for confirmation. Yes, it will ask. πŸ™ˆ
  • --confirmText="" β€” custom confirmation text. Make it say your own thing. πŸ’¬
  • --currentPage=0 β€” current page which should be returned. Starts at 0. πŸ“„
  • --customQueryParam=[] β€” add custom URL query parameters. i.e. --customQueryParam 'withCustomOption=true,myOtherOption=myvalue'. Exact example, no edits. πŸ”₯
  • --debug[=false] β€” set very verbose log messages. It’s giving β€œI want to see everything”. πŸ”
  • --delay="0ms" β€” delay after each request, i.e. 5ms, 1.2s. Default "0ms". ⏱️
  • --delayBefore="0ms" β€” delay before each request, i.e. 5ms, 1.2s. Default "0ms". ⏱️
  • --dry[=false] β€” dry run. Don’t send any data to the server. Zero data sent. 🚫
  • --dryFormat="markdown" β€” dry run output format. i.e. json, dump, markdown or curl. Default "markdown". 🎨
  • --examples[=false] β€” show examples for the current command. Yes, examples within examples. 🀯
  • --filter=[] β€” apply a client side filter to response before returning it to the user. Client-side glow-up. πŸ’…
  • --flatten[=false] β€” flatten json output by replacing nested json properties with properties where their names are represented by dot notation. Dots instead of nested chaos. πŸͺ„
  • -f, --force[=false] β€” do not prompt for confirmation. Ignored when using --confirm. So --confirm wins, bestie. πŸ‘‘
  • -H, --header=[] β€” custom headers. i.e. --header "Accept: value, AnotherHeader: myvalue". Exact example. πŸ“¨
  • --includeAll[=false] β€” include all results by iterating through each page. All the pages, all the results. 🌈
  • -k, --insecure[=false] β€” allow insecure server connections when using SSL. That’s the flag. πŸ”“
  • -l, --logMessage="" β€” add custom message to the activity log. Leave your little note. πŸ“
  • --maxJobs=0 β€” maximum number of jobs. 0 = unlimited (use with caution!). The caution is real, bestie. πŸ’€
  • --noAccept[=false] β€” ignore Accept header β€” it removes the Accept header from requests, however PUT and POST requests will only see the effect. That nuance is real. 🚫
  • --noCache[=false] β€” force disabling of cached responses (overwrites cache setting). Cache? Not today. πŸ™…
  • -M, --noColor[=false] β€” don’t use colors when displaying log entries on the console. Monochrome moment. πŸ–€
  • --noLog[=false] β€” disables the activity log for the current command. No log, no problem. 🀐
  • --noProgress[=false] β€” disable progress bars. No little bars. πŸ“‰
  • --noProxy[=false] β€” ignore the proxy settings. Bye proxy. πŸ‘‹
  • -n, --nullInput[=false] β€” don’t read the input (stdin). Useful if using in shell for/while loops. Loop-friendly. πŸ”
  • -o, --output="table" β€” output format i.e. table, json, csv, csvheader. Default "table". πŸ“Š
  • --outputFile="" β€” save JSON output to file (after select/view). After, bestie. πŸ’Ύ
  • --outputFileRaw="" β€” save raw response to file (before select/view). Before, bestie. πŸ’Ύ
  • --outputTemplate="" β€” jsonnet template to apply to the output. Fancy template time. 🎨
  • -p, --pageSize=5 β€” maximum results per page. Default 5. πŸ“š
  • --progress[=false] β€” show progress bar. This will also disable any other verbose output. Progress bar > extra chatter. πŸ“Ά
  • --proxy="" β€” proxy setting, i.e. http://10.0.0.1:8080. Exact vibe. 🌐
  • -r, --raw[=false] β€” show raw response. This mode will force output=json and view=off. Raw is raw. πŸ₯©
  • --retries=3 β€” max number of attempts when a failed http call is encountered. Default 3. πŸ”
  • --select=[] β€” comma separated list of properties to return. wildcards and globstar accepted, i.e. --select 'id,name,type,**.serialNumber'. Exact example. 🎯
  • --session="" β€” session configuration. πŸ—‚οΈ
  • --sessionMode="" β€” override default session mode for a single command which would normally be disabled. One-command override. πŸ•ΉοΈ
  • -P, --sessionPassword="" β€” override session password. 🀫
  • -U, --sessionUsername="" β€” override session username. i.e. peter or t1234/peter (with tenant). Exact examples. πŸ‘€
  • --silentExit[=false] β€” silent status codes do not affect the exit code. Silent but not exit-code-affecting. 🀫
  • --silentStatusCodes="" β€” status codes which will not print out an error message. Shhh. 🀐
  • --timeout="600s" β€” request timeout duration, i.e. 60s, 2m. Default "600s". βŒ›
  • --totalPages=0 β€” total number of pages to get. Default 0. πŸ“„
  • -v, --verbose[=false] β€” verbose logging. Talk to me. πŸ—£οΈ
  • --view="auto" β€” use views when displaying data on the terminal. Disable using --view off. Default "auto". πŸ‘€
  • --withError[=false] β€” errors will be printed on stdout instead of stderr. stdout specifically. πŸ“€
  • --withTotalElements[=false] β€” request Cumulocity to include the total elements in the response statistics under .statistics.totalElements (introduced in 10.13). Exact path, exact version. πŸ“ˆ
  • -t, --withTotalPages[=false] β€” request Cumulocity to include the total pages in the response statistics under .statistics.totalPages. Exact path. πŸ“‘
  • --workers=1 β€” number of workers. Default 1. πŸ‘·

🌟 EXAMPLE 🌟

πŸ’– Example 1: Clear session in bash πŸ’–

$ eval $(c8y sessions clear)

Clear the current session. That’s it, that’s the vibe. ✨

🐟 Example 2: Clear session in fish 🐟

$ c8y sessions clear | source

πŸ‘€ SEE ALSO πŸ‘€


πŸŽ€ that’s the whole page, bestie! source/version vibes: c8y(1); date: Jan 1980. iconic. πŸ’…βœ¨
πŸ“¦ where this page comes from