c8y(1)

πŸ“¦ version 2.56.1, in nixpkgs unstable

🌈 bestie's guide to c8y(1) β€” c8y-sessions-decryptText

okay so this is the c8y(1) manual page for c8y-sessions-decryptText, and it's all about decrypting text. no cap, very Unix, very slay. πŸ’…

✨ NAME ✨

c8y-sessions-decryptText - Decrypt text.

πŸŽ€ SYNOPSIS πŸŽ€

c8y sessions decryptText [flags]

Bestie, that's the whole invocation. The [flags] are where the options live. πŸ¦‹

πŸ’– DESCRIPTION πŸ’–

Decrypt text based on the same encryption used to store sensitive data a cumulocity session. That's the entire description, bestie β€” no extra lore. 😭

✨ OPTIONS ✨

Here are the options for this command, bestie:

  • -h, --help[=false] β€” shows help for decryptText. 🫢
  • --passphrase="" β€” passphrase to use for encrypting the text. It's read from env C8Y_PASSPHRASE or prompted if missing. iykyk, keep that passphrase safe. πŸ’–
  • --text="" β€” encrypted text. It's required, and it accepts pipeline. required bestie, don't forget. πŸ’…

🫢 OPTIONS INHERITED FROM PARENT COMMANDS 🫢

These are inherited from the parent commands, and yes, there are a lot of them. We're listing every one, because bestie deserves the full set. 🌸

  • --abortOnErrors=10 β€” abort a batch when reaching the specified number of errors. Here that's 10. batch says bye when errors pile up. πŸ’€
  • --allowEmptyPipe[=false] β€” don't fail when piped input is empty (stdin). empty pipe, no drama. 🫢
  • --cache[=false] β€” enable cached responses. ✨
  • --cacheBodyPaths=[] β€” 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. ⭐
  • -c, --compact[=false] β€” compact instead of pretty-printed output when using JSON output. Pretty print is the default if output is the terminal. 🌸
  • --confirm[=false] β€” prompt for confirmation. πŸ™ˆ
  • --confirmText="" β€” custom confirmation text. πŸ’–
  • --currentPage=0 β€” current page which should be returned. πŸ¦‹
  • --customQueryParam=[] β€” add custom URL query parameters. i.e. --customQueryParam 'withCustomOption=true,myOtherOption=myvalue'. πŸ”₯
  • --debug[=false] β€” set 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. Don't send any data to the server. 🫢
  • --dryFormat="markdown" β€” dry run output format. i.e. json, dump, markdown or curl. πŸŽ€
  • --examples[=false] β€” show examples for the current command. 🌈
  • --filter=[] β€” apply a client side filter to response before returning it to the user. πŸ’…
  • --flatten[=false] β€” flatten JSON output by replacing nested JSON properties with properties where their names are represented by dot notation. πŸ¦‹
  • -f, --force[=false] β€” do not prompt for confirmation. Ignored when using --confirm. ignored with --confirm, periodt. πŸ’€
  • -H, --header=[] β€” custom headers. i.e. --header "Accept: value, AnotherHeader: myvalue". πŸ’–
  • --includeAll[=false] β€” include all results by iterating through each page. 🌸
  • -k, --insecure[=false] β€” allow insecure server connections when using SSL. insecure bestie, be careful. πŸ’€
  • -l, --logMessage="" β€” add custom message to the activity log. πŸŽ€
  • --maxJobs=0 β€” maximum number of jobs. 0 = unlimited (use with caution!). caution, bestie! πŸ”₯
  • --noAccept[=false] β€” ignore Accept header; this will remove the Accept header from requests, however PUT and POST requests will only see the effect. 🫢
  • --noCache[=false] β€” force disabling of cached responses (overwrites 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] β€” disable progress bars. ✨
  • --noProxy[=false] β€” ignore the proxy settings. πŸ¦‹
  • -n, --nullInput[=false] β€” don't read the input (stdin). Useful if using in shell for/while loops. πŸ’…
  • -o, --output="table" β€” output format i.e. table, json, csv, csvheader. 🌸
  • --outputFile="" β€” save JSON output to file (after select/view). πŸŽ€
  • --outputFileRaw="" β€” save raw response to file (before select/view). πŸ¦‹
  • --outputTemplate="" β€” jsonnet template to apply to the output. ⭐
  • -p, --pageSize=5 β€” maximum results per page. 🫢
  • --progress[=false] β€” show progress bar. This will also disable any other verbose output. πŸ”₯
  • --proxy="" β€” proxy setting, i.e. http://10.0.0.1:8080. 🌈
  • -r, --raw[=false] β€” show raw response. This mode will force 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="" β€” override 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 do not affect the exit code. πŸ’…
  • --silentStatusCodes="" β€” status codes which will not 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 using --view off. πŸ’–
  • --withError[=false] β€” errors will be printed on stdout instead of stderr. πŸ”₯
  • --withTotalElements[=false] β€” request Cumulocity to include the total elements in the response statistics under .statistics.totalElements (introduced in 10.13). ⭐
  • -t, --withTotalPages[=false] β€” request Cumulocity to include the total pages in the response statistics under .statistics.totalPages. πŸŽ€
  • --workers=1 β€” number of workers. 🫢

πŸ”₯ EXAMPLE πŸ”₯

Example 1:

c8y sessions decryptText --text "{encrypted}asdfasdfasdfasdfasdf"

The note here says: Encrypt the text "Hello World". You will be prompted for the passphrase to encrypt the data. Yes, that's what it says, bestie β€” I'm not changing the example. 😭

Example 2:

c8y sessions encryptText --text "Hello World" --passphrase "so4methIng-7hat-Matters"

The note here says: Encrypt the text "Hello World", the text will be encrypted using the given passphrase (without being prompted). no prompt, just vibes. πŸ’…

🌸 SEE ALSO 🌸


That's the whole c8y(1) page, bestie β€” sourced from the c8y(1) manual and dated Jan 1980. πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from