**Source URL:** https://general.veevavault.dev/safety/mdl/documentation/mdl-commands/create.md

# CREATE


```
CREATE Componenttypename component_type_name(
  attribute_name(attribute_value),
  attribute_name(attribute_value),

  Subcomponenttypename subcomponent_type_name(
    attribute_name(attribute_value),
    attribute_name(attribute_value)
  ),

  Subcomponenttypename subcomponent_type_name(
    attribute_name(attribute_value),
    attribute_name(attribute_value)
  )
);

```

The `CREATE` command creates an MDL component in Vault. The name must be unique and the command fails if the another record in that component already exists with the same name.

If a component type allows for subcomponents, you can create the subcomponents as part of the same command. For example, the following command creates a new `Picklist` component, `color__c`, with two `Picklistentry` subcomponents, `red__c` and `blue__c`.

```
CREATE Picklist color__c(
   label('Color'),
   active(true),
   can_add_values(true),
   can_reorder_values(true),

   Picklistentry red__c(
       value('Red'),
       active(true),
       order(1)
   ),

   Picklistentry blue__c(
       value('Blue'),
       active(true),
       order(2)
   )
);

```


---

**Previous:** [Command Syntax](/safety/mdl/documentation/mdl-commands/command-syntax)  
**Next:** [RECREATE](/safety/mdl/documentation/mdl-commands/recreate)