Variables
Create, read, update, and delete variables using the Ubidots CLI.
Usage: ubidots variables [OPTIONS] COMMAND [ARGS]...
Variable management and operations.
โญโ Options โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ --help Show this message and exit. โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
โญโ Commands โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ add Create a new variable in a given device. โ
โ delete Deletes a specific variable using its id. โ
โ get Retrieves a specific variable using its id. โ
โ list Lists all available variables. โ
โ update Update a variable. โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏCreate a variable
Create a new variable in a given device in Ubidots.
Usage: ubidots variables add [OPTIONS] DEVICE [LABEL] [NAME]
โญโ Arguments โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ device TEXT The device associated with the variable. Its id or โ
โ ['~label'|\~label]. โ
โ [required] โ
โ label [LABEL] The label for the variable. โ
โ name [NAME] The name of the variable. โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
โญโ Options โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ --description TEXT A brief description of the โ
โ variable. โ
โ --type [raw|synthetic] The type of variable. โ
โ [default: raw] โ
โ --unit TEXT The unit of measurement that โ
โ represents the variable. โ
โ --synthetic-expression TEXT If the variable is of type โ
โ 'synthetic', this is the โ
โ corresponding synthetic โ
โ expression used to calculate โ
โ its value. โ
โ --tags TEXT Comma-separated tags for the โ
โ variable. e.g. tag1,tag2,tag3 โ
โ --properties TEXT Device properties in JSON โ
โ format. โ
โ [default: {}] โ
โ --min INTEGER Lowest value allowed. โ
โ --max INTEGER Highest value allowed. โ
โ --help Show this message and exit. โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏGet a variable
Update a variable
Delete a variable
List all variables
Last updated
Was this helpful?