c8y(1)

๐Ÿ“ฆ version 2.56.1, in nixpkgs unstable

๐Ÿ’– NAME ๐Ÿ’–

Okay bestie, this is the manual page for c8y-operations-subscribe in the c8y family โ€” the command where you subscribe to realtime operations. It's giving live updates main character energy โœจ. The short version: Subscribe to realtime operations ๐Ÿซถ.

๐ŸŒธ SYNOPSIS ๐ŸŒธ

c8y operations subscribe [flags]

๐Ÿฆ‹ DESCRIPTION ๐Ÿฆ‹

You're subscribing to realtime operations. That's the whole vibe. Live, realtime operations โ€” no cap ๐Ÿ’….

โœจ OPTIONS โœจ

Here's the full flag menu, bestie โ€” every single one, no skipping ๐Ÿ‘‘:

  • --actionTypes=[] โ€” Filter by Filter by realtime action types, i.e. CREATE,UPDATE,DELETE.
  • --count=0 โ€” Max number of realtime notifications to wait for.
  • --device="" โ€” Device ID.
  • --duration="30s" โ€” Duration to subscribe for. i.e. 30s, 1m.
  • -h, --help[=false] โ€” help for subscribe.

๐Ÿ”ฎ OPTIONS INHERITED FROM PARENT COMMANDS ๐Ÿ”ฎ

These are inherited from the parent commands, so they're part of the group chat too ๐Ÿซถ:

  • --abortOnErrors=10 โ€” Abort batch when reaching specified number of errors.
  • --allowEmptyPipe[=false] โ€” Don't fail when piped input is empty (stdin).
  • --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.
  • -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.
  • -l, --logMessage="" โ€” Add custom message to the activity log.
  • --maxJobs=0 โ€” Maximum number of jobs. 0 = unlimited (use with caution!).
  • --noAccept[=false] โ€” Ignore Accept header 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 ๐Ÿ“

Commands stay exactly as written โ€” copy/paste safe โ€” and the descriptions are here to keep the vibe clear ๐ŸŽ€:

$ c8y operations subscribe --device 12345

Subscribe to operations (in realtime) for device 12345.

$ c8y operations subscribe --device 12345 --duration 30s

Subscribe to operations (in realtime) for device 12345 for 30 seconds.

$ c8y operations subscribe --count 10

Subscribe to operations (in realtime) for all devices, and stop after receiving 10 operations.

๐ŸŒˆ SEE ALSO ๐ŸŒˆ


Okay that's the whole page! โœจ This one is dated Jan 1980 and lives in the c8y(1) manual โ€” vintage but still slaying ๐Ÿ’…๐ŸŽ€.

๐Ÿ“ฆ where this page comes from