Skip to main content

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​

LongShortTypeDefaultDescription
--choicestringAttach the Choice/Choices column to an existing GLOBAL option set by name (mutually exclusive with --option/--options/--options-file)
--correlation-idstringCorrelation ID for distributed tracing
--date-time-behaviorstringDateTime behavior: UserLocal, DateOnly, or TimeZoneIndependent
--debugboolShow trace-level diagnostic output
--default-valueint?Default value for Choice or Boolean columns
--descriptionstringDescription of the attribute
--display-namestringDisplay name of the attribute
--dry-runboolValidate only, do not persist changes
--entity-estringLogical name of the entity to add the attribute to
--environment-envstringOverride the environment URL. Takes precedence over profile's bound environment.
--false-labelstringLabel for the false value of a Boolean column
--formatstringFormat for String, Integer, or DateTime columns
--max-lengthint?Maximum length for String/Memo columns
--max-size-kbint?Maximum file size in KB for Image/File columns
--max-valuedouble?Maximum value for numeric columns
--min-valuedouble?Minimum value for numeric columns
--namestringSchema name for the new attribute (e.g., new_MyColumn)
--optionString[]Local Choice option "Label[:Value][:#Color]" — repeatable; value derived from --solution when omitted
--optionsstring[Legacy] Local Choice options as CSV: "Label1=1,Label2=2"
--options-filestringPath to a JSON file of local Choice options: [{"label":"..","value":1,"color":"#RRGGBB"}]
--output-format-fOutputFormatOutput format
--precisionint?Precision for Decimal, Double, and Money columns
--profile-pstringAuthentication profile name
--publishboolPublish the entity after the attribute is created
--quiet-qboolShow only warnings and errors
--required-levelstringRequirement level: None, Recommended, or Required
--solution-sstringSolution unique name containing the table
--true-labelstringLabel for the true value of a Boolean column
--typeSchemaColumnTypeColumn type: String, Memo, Integer, BigInt, Decimal, Double, Money, Boolean, DateTime, Choice, Choices, Image, File, Lookup
--verbose-vboolShow detailed output including debug messages