c8y(1)
okay so this is the c8y(1) manual, bestie โ specifically the page for c8y-currentapplication-update, and itโs giving โsmall command, important jobโ energy ๐
๐ธ NAME ๐ธ
c8y-currentapplication-update โ update current application. thatโs the whole name, no notes โจ
โจ SYNOPSIS โจ
c8y currentapplication update [flags]
๐ DESCRIPTION ๐
okay so real talk: this one requires authentication with the bootstrap user. literally required, no cap ๐
๐ OPTIONS ๐
--availability=""โ the application will be applied to this type of documents; possible values are[ALARM, AUDIT, EVENT, MEASUREMENT, OPERATION, *]๐ซ--contextPath=""โ contextPath of the hosted application ๐ค๏ธ-d,--data=[]โ static data to be applied to body. accepts json or shorthand json, i.e.--data 'value1=1,my.nested.value=100'๐ง--externalUrl=""โ URL to the external application ๐-h,--help[=false]โ help for update ๐ซถ--key=""โ Shared secret of application ๐--name=""โ Name of application ๐ท๏ธ--processingMode=""โ Cumulocity processing mode โ๏ธ--resourcesPassword=""โ authorization password to accessresourcesUrl๐--resourcesUrl=""โ URL to application base directory hosted on an external server ๐--resourcesUsername=""โ authorization username to accessresourcesUrl๐ค--template=""โ Body template ๐งฉ--templateVars=[]โ Body template variables ๐ช
๐ฆ OPTIONS INHERITED FROM PARENT COMMANDS ๐ฆ
--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,markdownorcurl๐--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 forceoutput=jsonandview=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.peterort1234/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 ๐
$ c8y currentapplication update --data "myCustomProp=1"
that updates custom properties of the current application (requires using application credentials) โจ
๐ SEE ALSO ๐
go peek at c8y-currentapplication(1) โ thatโs the sibling page, iykyk ๐ซถ
okay thatโs the whole page, bestie โ from the c8y(1) manual, dated Jan 1980. mwah ๐โจ
๐ฆ 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