drush field-createfor drush 8x


Create fields and instances. Returns urls for field editing.

drush field-create

  • Arguments


    field-create accepts 2 argument/s:


    bundle : Content type (for nodes). Name of bundle to attach fields to. Required.

    field_spec : Comma delimited triple in the form: field_name,field_type,widget_name. If widget_name is omitted, the default widget will be used. Separate multiple fields by space. If omitted, a wizard will prompt you.

  • Options


    field-create accepts 1 option/s:


    --entity_type : Type of entity (e.g. node, user, comment). Defaults to node.

  • Examples


    Define new article fields via interactive prompts.

    drush field-create article

    Define new article fields and then open field edit form for refinement.

    open `drush field-create article`

    Create two new fields.

    drush field-create article city,text,text_textfield subtitle,text,text_textfield

  • Comments


    comments powered by Disqus