-
Notifications
You must be signed in to change notification settings - Fork 2
Commands
William Espindola edited this page Sep 10, 2015
·
9 revisions
This documentation still in development. Must be inproved and revised!
Start creating the config file to keep your database credentials, the Field will use this for the CRUD. Optionaly you can pass a custom path to create the field.config.php
file and in the future just use -c you/path/field.config.php
to run.
Usage:
init [<path>]
Arguments:
path Which path should we initialize for Field?
##Schema We make a userfull database schema for this project, and your can see this on data/ folder. And we have some command to help you to create the tables in your db.
Usage:
schema [options] [--] [<show-only>]
Arguments:
show-only Show sql instead install
With the create command you can create Fields and Collections.
Usage:
create [options] [--] <Field|Collection> <name> <label> [<type>] [<collection>]
Arguments:
Field|Collection Field or Collection
name The name is the identify of our Field or your Collection
label The Label for the presentation of your Field or Collection
type The type of field (only field has types)
collection The collection name of field new field
Some examples!
creating a Field
create Field keywords Keywords text header
creating a Collection
create Collection header Header