create
Create a new attribute on a Dataverse table (for Choice/Choices columns use --option to define a local option set, or --choice to attach a global one)
Usage
ppds attribute create [options]
Options
| Long | Short | Type | Default | Description |
|---|---|---|---|---|
--choice | string | Attach the Choice/Choices column to an existing GLOBAL option set by name (mutually exclusive with --option/--options/--options-file) | ||
--correlation-id | string | Correlation ID for distributed tracing | ||
--date-time-behavior | string | DateTime behavior: UserLocal, DateOnly, or TimeZoneIndependent | ||
--debug | bool | Show trace-level diagnostic output | ||
--default-value | int? | Default value for Choice or Boolean columns | ||
--description | string | Description of the attribute | ||
--display-name | string | Display name of the attribute | ||
--dry-run | bool | Validate only, do not persist changes | ||
--entity | -e | string | Logical name of the entity to add the attribute to | |
--environment | -env | string | Override the environment URL. Takes precedence over profile's bound environment. | |
--false-label | string | Label for the false value of a Boolean column | ||
--format | string | Format for String, Integer, or DateTime columns | ||
--max-length | int? | Maximum length for String/Memo columns | ||
--max-size-kb | int? | Maximum file size in KB for Image/File columns | ||
--max-value | double? | Maximum value for numeric columns | ||
--min-value | double? | Minimum value for numeric columns | ||
--name | string | Schema name for the new attribute (e.g., new_MyColumn) | ||
--option | String[] | Local Choice option "Label[:Value][:#Color]" — repeatable; value derived from --solution when omitted | ||
--options | string | [Legacy] Local Choice options as CSV: "Label1=1,Label2=2" | ||
--options-file | string | Path to a JSON file of local Choice options: [{"label":"..","value":1,"color":"#RRGGBB"}] | ||
--output-format | -f | OutputFormat | Output format | |
--precision | int? | Precision for Decimal, Double, and Money columns | ||
--profile | -p | string | Authentication profile name | |
--publish | bool | Publish the entity after the attribute is created | ||
--quiet | -q | bool | Show only warnings and errors | |
--required-level | string | Requirement level: None, Recommended, or Required | ||
--solution | -s | string | Solution unique name containing the table | |
--true-label | string | Label for the true value of a Boolean column | ||
--type | SchemaColumnType | Column type: String, Memo, Integer, BigInt, Decimal, Double, Money, Boolean, DateTime, Choice, Choices, Image, File, Lookup | ||
--verbose | -v | bool | Show detailed output including debug messages |