c8y(1)

πŸ“¦ version 2.56.1, in nixpkgs unstable

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) or c8y_DeviceSubGroup (sub folder)). Defaults to c8y_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, markdown or curl. 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 --confirm wins 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 force output=json and view=off. raw mode forces output=json and view=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. peter or t1234/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 in 10.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 🌸


πŸ’– okay that's the whole page β€” source/version c8y(1), date Jan 1980. stay iconic, bestie! 🫢

πŸ“¦ where this page comes from