isaac-gros/acf-console

There is no license information available for the latest version (v0) of this package.

Generate your ACF through a terminal.

v0 2020-06-07 20:59 UTC

This package is auto-updated.

Last update: 2024-04-13 04:41:14 UTC


README

Generate your ACF through a terminal.

Example

php acf.php acf:create:basic

Please choose a basic field type.
  [0] text
  [1] textarea
  [2] number
  [3] email
  [4] url
  [5] password
 > 0
# text is now the field type.

Please write the field name. Eg: my_field > background_image
# background_image is now the field name.

Please write the field title. Eg: My field > Background image
# Background image is now the field title.

Please write the field instructions. Press enter to skip. >
# Ignore the instructions for now.

Please write a field prepend. Press enter to skip. > pre
# Defined the field prepend as 'pre'.

Please write a field append. Press enter to skip. > after
# Defined the field append as 'after'.

Is the field required? [y/n] > y

Congratulations! Your field has been created.

Configuration

You can edit the config.yaml file to define the path to save the generated fields. In this repository the /public path is in the .gitignore for development purposes.