c8y(1)
π 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 forclear. Your little βwhat does this doβ button. π--shell="auto"β Shell type. Defaults toautoif not printing to terminal. So it picksautounless 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 is10. π--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 at0. π--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,markdownorcurl. 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--confirmwins, 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. Default5. π--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 forceoutput=jsonandview=off. Raw is raw. π₯©--retries=3β max number of attempts when a failed http call is encountered. Default3. π--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.peterort1234/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. Default0. π-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 in10.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. Default1. π·
π 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 π
c8y-sessions(1)β go see the parent session page, bestie. π
π thatβs the whole page, bestie! source/version vibes: c8y(1); date: Jan 1980. iconic. π
β¨
π¦ 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