isaac-gros / acf-console
该软件包最新版本(v0)没有提供许可证信息。
通过终端生成您的ACF。
v0
2020-06-07 20:59 UTC
Requires
- php: ^7.2.5
- symfony/console: ^5.0
- symfony/filesystem: ^5.1
- symfony/yaml: ^5.1
This package is auto-updated.
Last update: 2024-09-13 05:34:58 UTC
README
通过终端生成您的ACF。
示例
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.
配置
您可以通过编辑 config.yaml
文件来定义保存生成的字段的路径。在此存储库中,/public 路径已添加到 .gitignore
以便进行开发。