Skip to content

Latest commit

 

History

History
44 lines (31 loc) · 918 Bytes

Property-generator.md

File metadata and controls

44 lines (31 loc) · 918 Bytes
title lang layout keywords tags sidebar permalink summary
Property generator
en
page
LoopBack
lb2_sidebar
/doc/en/lb2/Property-generator.html

{% include content/generator-create-app.html lang=page.lang %}

Synopsis

Adds a new property to an existing LoopBack model.

$ [slc | apic] loopback:property [options]

Options

-h, --help Print the generator's options and usage.

--skip-cache Do not remember prompt answers. Default is false.

--skip-install Do not automatically install dependencies. Default is false.

Interactive Prompts

The tool will prompt you for the:

  • Model to which to add the new property.
  • Name of the property to add.
  • Data type of the property.
  • Whether the property is required.

Output

The tool modifies the Model definition JSON file to add the specified property to the specified model.