c8y(1)
c8y(1) β c8y-devicegroups-create π
okay bestie, welcome to the c8y-devicegroups-create page from the c8y(1) manual. This is the one for making a new device group so devices can be logically grouped together. main character energy for your devices, honestly. π¦
πΈ NAME πΈ
c8y-devicegroups-create β Create device group. that's the whole name tag, periodt. π
β¨ SYNOPSIS β¨
c8y devicegroups create [flags]
run it with flags, bestie. no cap. π«Ά
π¦ DESCRIPTION π¦
Create a new device group to logically group one or more devices. it's giving organization, it's giving folder energy, it's giving βmy devices are not just vibing everywhereβ. π
π OPTIONS π
-d,--data=[]β static data to be applied to body. accepts json or shorthand json, i.e.--data 'value1=1,my.nested.value=100'. shorthand json is lowkey iconic. β¨-h,--help[=false]β help for create. the classic βpls explainβ button. π--name=""β Device group name (accepts pipeline). it literally accepts pipeline, bestie. π«Ά--processingMode=""β Cumulocity processing mode. very official, very slay. π--template=""β Body template. the template for the body, bestie. π--templateVars=[]β Body template variables. plural variables, plural vibes. π¦--type=""β Device group type (c8y_DeviceGroup(root folder) orc8y_DeviceSubGroup(sub folder)). Defaults toc8y_DeviceGroup. root folder or sub folder, choose your fighter. πΈ
π OPTIONS INHERITED FROM PARENT COMMANDS π
--abortOnErrors=10β Abort batch when reaching specified number of errors. like, stop the batch when the error count hits the limit. π--allowEmptyPipe[=false]β Don't fail when piped input is empty (stdin). empty pipe? no dramatic failure, bestie. π«Ά--cache[=false]β Enable cached responses. cache mode: on. β¨--cacheBodyPaths=[]β Cache should limit hashing of selected paths in the json body. Empty indicates all values. empty means all values, iykyk. π--cacheTTL="60s"β Cache time-to-live (TTL) as a duration, i.e.60s,2m. duration core. β-c,--compact[=false]β Compact instead of pretty-printed output when using json output. Pretty print is the default if output is the terminal. terminal gets pretty print by default, no cap. π--confirm[=false]β Prompt for confirmation. the βare you sure, bestie?β vibe. π--confirmText=""β Custom confirmation text. write your own confirmation moment. π--currentPage=0β Current page which should be returned. page zero, starting strong. π¦--customQueryParam=[]β add custom URL query parameters. i.e.--customQueryParam 'withCustomOption=true,myOtherOption=myvalue'. custom query param era. π--debug[=false]β Set very verbose log messages. very verbose. very βwhat is happeningβ. π--delay="0ms"β delay after each request, i.e.5ms,1.2s. a lil pause after each request. π--delayBefore="0ms"β delay before each request, i.e.5ms,1.2s. a lil pause before each request. β¨--dry[=false]β Dry run. Don't send any data to the server. pretend mode, zero server drama. π«Ά--dryFormat="markdown"β Dry run output format. i.e.json,dump,markdownorcurl. pick your dry-run format, bestie. π--examples[=false]β Show examples for the current command. show me the examples, pls. πΈ--filter=[]β Apply a client side filter to response before returning it to the user. client-side filter before it comes back to you. β--flatten[=false]β flatten json output by replacing nested json properties with properties where their names are represented by dot notation. nested json gets dot-notation-ified. π¦-f,--force[=false]β Do not prompt for confirmation. Ignored when using--confirm. no prompt β but--confirmwins if both show up. β οΈ-H,--header=[]β custom headers. i.e.--header "Accept: value, AnotherHeader: myvalue". custom headers, custom vibe. π--includeAll[=false]β Include all results by iterating through each page. every page gets iterated, bestie. π«Ά-k,--insecure[=false]β Allow insecure server connections when using SSL. SSL but insecure connections allowed. π-l,--logMessage=""β Add custom message to the activity log. drop a custom message in the activity log. π--maxJobs=0β Maximum number of jobs.0= unlimited (use with caution!). unlimited jobs β the page literally says 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. the Accept header gets removed, but PUT and POST only see the effect. π¦--noCache[=false]β Force disabling of cached responses (overwrites cache setting). cache off, and it overwrites the cache setting. β¨-M,--noColor[=false]β Don't use colors when displaying log entries on the console. no colors in console log entries. π--noLog[=false]β Disables the activity log for the current command. activity log: off for this command. π«Ά--noProgress[=false]β Disable progress bars. no progress bars, no distractions. β--noProxy[=false]β Ignore the proxy settings. proxy settings? ignored. πΈ-n,--nullInput[=false]β Don't read the input (stdin). Useful if using in shell for/while loops. no stdin reading β handy in shell for/while loops. π¦-o,--output="table"β Output format i.e.table,json,csv,csvheader. table is the default, but json/csv/csvheader are right there. π--outputFile=""β Save JSON output to file (after select/view). save JSON after select/view. π--outputFileRaw=""β Save raw response to file (before select/view). save raw response before select/view. β¨--outputTemplate=""β jsonnet template to apply to the output. jsonnet template moment. π¦-p,--pageSize=5β Maximum results per page. five results per page by default. π--progress[=false]β Show progress bar. This will also disable any other verbose output. progress bar on β and it also disables other verbose output. π--proxy=""β Proxy setting, i.e.http://10.0.0.1:8080. proxy setting, exact example included. π-r,--raw[=false]β Show raw response. This mode will forceoutput=jsonandview=off. raw mode forcesoutput=jsonandview=off. β οΈ--retries=3β Max number of attempts when a failed http call is encountered. three attempts when an http call fails. π«Ά--select=[]β Comma separated list of properties to return. wildcards and globstar accepted, i.e.--select 'id,name,type,**.serialNumber'. wildcards and globstar accepted, bestie. β--session=""β Session configuration. session config. π--sessionMode=""β Override default session mode for a single command which would normally be disabled. override session mode for one command. π¦-P,--sessionPassword=""β Override session password. session password override. π-U,--sessionUsername=""β Override session username. i.e.peterort1234/peter(with tenant). username override, tenant style included. π--silentExit[=false]β Silent status codes do not affect the exit code. silent status codes don't touch the exit code. β¨--silentStatusCodes=""β Status codes which will not print out an error message. these status codes won't print an error message. π«Ά--timeout="600s"β Request timeout duration, i.e.60s,2m. request timeout duration β exact examples included. πΈ--totalPages=0β Total number of pages to get. total pages to get. π¦-v,--verbose[=false]β Verbose logging. verbose logging, very chatty. π--view="auto"β Use views when displaying data on the terminal. Disable using--view off. views on the terminal, disable with--view off. β--withError[=false]β Errors will be printed on stdout instead of stderr. errors go to stdout instead of stderr. β οΈ--withTotalElements[=false]β Request Cumulocity to include the total elements in the response statistics under.statistics.totalElements(introduced in 10.13). total elements in the response stats under.statistics.totalElements, introduced in10.13. π¦-t,--withTotalPages[=false]β Request Cumulocity to include the total pages in the response statistics under.statistics.totalPages. total pages in the response stats under.statistics.totalPages. π--workers=1β Number of workers. one worker by default. π«Ά
π EXAMPLE π
the page gives these two exact runs, bestie:
$ c8y devicegroups create --name mygroup
Create device group
$ c8y devicegroups create --name mygroup --data "custom_value1=1234"
Create device group with custom properties
first one: name only. second one: name plus custom properties. iconic behavior. π
πΈ SEE ALSO πΈ
c8y-devicegroups(1)β go check the parent command page, bestie. iykyk. π«Ά
π okay that's the whole page β source/version c8y(1), date Jan 1980. stay iconic, bestie! π«Ά
π¦ 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