Create

For the contents to be shown on containers they need to have a structure. To create one we use the following command.

wordbucket structures new

When executed this command, we are asked for the name of the structure and then we are able to create one or more fields for the structure, each with the following information: label, name, placeholder, required, size and type.

$ wordbucket structures new
? Name: About Me
? Add field? Yes
? Label: Title
? Name: title
? Placeholder: My Name
? Required: Yes
? Size: 12
? Type: text
? Add field? Yes
? Label: Description
? Name: description
? Placeholder: About me
? Required: Yes
? Size: 12
? Type: rich-text
? Add field? No
Structure successfully created

After inserting the informations it is generated a JSON file in wordbucket/structures with the name of the structure.

  • wordbucket

    • contents

      • Personal Info

    • structures

      • 1_About Me.json

Last updated

Was this helpful?