Commands
Danh sách các lệnh được sử dụng trong plugin Devtool Skilldo CMS
Auth
User
user:username
Thay đổi tên đăng nhập của một user
Arguments
- username-current - username của account muốn thay đổi username REQUIRED
- username-new - username mới của người dùng REQUIRED
user:username [<username-current>] [<username-new>]
user:username hello xinchao
user:password
Thay đổi mật khẩu đăng nhập của một user
Arguments
- username-current - username của account muốn thay đổi mật khẩu REQUIRED
- password - password muốn thay đổi REQUIRED
user:username [<username-current>] [<username-new>]
user:password xinchao 1234Game
Cache
Cms
cms:version
Lấy thông tin phiên bản của cms
Arguments
- type - loại lấy version (current
default, last) Optional
cms:version [<type>]
Db
db:empty
empty table, views, hoặc types được chỉ định
Arguments
- table_name - tên table muốn empty REQUIRED
db:empty [<table_name>]
db:run:plugin
Thực thi file migration của một plugin được chỉ định
Arguments
- plugin_name - tên thư mục plugin muốn chạy migration REQUIRED
- file_name - tên file migration muốn chạy optional
db:run:plugin [<plugin_name>] [<file_name>]
db:run:theme
Thực thi file migration của theme hiện tại
Arguments
- file_name - tên file migration muốn chạy optional
db:run:plugin [<file_name>]
db:table
Hiển thị thông tin của một bảng trong cơ sở dữ liệu
Arguments
- table_name - tên table muốn xem thông tin REQUIRED
db:table [<table_name>]
db:seed
Tạo dữ liệu mẫu
Options
- module - tên module muốn tạo dữ liệu (hiện tại chỉ hỗ trợ post) REQUIRED
Arguments
- number - số lượng dữ liệu muốn tạo nhỏ nhất 1 và lớn nhất là 50 (mặc định 10) optional
db:seed --module=[<module>] [<number>]
db:seed --module=post 20
Lang
License
License:change
license:change
v.1.1.2 Hiên thị thông tin license hiện đang lưu của cms
Arguments
- key - mã key license REQUIRED
- secret - mã secret license REQUIRED
license:change {key} {secret}
Make
make:command
Tạo lệnh Devtool mới
Arguments
- name - tên class của command REQUIRED
make:command [<name>]
make:db:plugin
Tạo file migration cho một plugin được chỉ định.
File được tạo nằm trong thư mục views/plugins/[plugin_name]/database
Arguments
- plugin_name - tên thư mục plugin muốn tạo migration REQUIRED
- file_name - tên file migration muốn tạo REQUIRED
make:db:plugin [<plugin_name>] [<file_name>]
make:db:theme
Tạo file migration cho theme hiện tại
File được tạo nằm trong thư mục views/[theme]/database
Arguments
- file_name - tên file migration muốn tạo REQUIRED
make:db:theme [<file_name>]
make:form-field:plugin
Tạo field mới cho một plugin được chỉ định
File được tạo nằm trong thư mục views/plugins/[plugin_name]/core/Form/Field
Arguments
- plugin_name - tên thư mục plugin muốn tạo field REQUIRED
- file_name - tên class field muốn tạo REQUIRED
make:form-field:plugin [<plugin_name>] [<file_name>]
make:form-field:theme
Tạo field mới cho theme hiện tại
File được tạo nằm trong thư mục views/[theme]/core/Form/Field
Arguments
- file_name - tên class field muốn tạo REQUIRED
make:form-field:theme [<file_name>]
make:lang:plugin
Tạo bản dịch cho một plugin được chỉ định
File được tạo nằm trong thư mục views/plugins/[plugin_name]/language/[local]
Arguments
- plugin_name - tên thư mục plugin muốn tạo bản dịch REQUIRED
- file_name - tên file bản dịch muốn tạo REQUIRED
make:lang:plugin [<plugin_name>] [<file_name>]
make:lang:theme
Tạo bản dịch cho theme hiện tại
File được tạo nằm trong thư mục views/[theme]/language/[local]
Arguments
- file_name - tên file bản dịch muốn tạo REQUIRED
make:lang:theme [<file_name>]
make:macro:plugin
Tạo file macro cho một plugin được chỉ định
File được tạo nằm trong thư mục views/plugins/[plugin_name]/core/Macro
Arguments
- plugin_name - tên thư mục plugin muốn tạo macro REQUIRED
- file_name - tên file macro muốn tạo REQUIRED
make:macro:plugin [<plugin_name>] [<file_name>]
make:macro:theme
Tạo file macro cho theme hiện tại
File được tạo nằm trong thư mục views/[theme]/core/Macro
Arguments
- file_name - tên file macro muốn tạo REQUIRED
make:macro:theme [<file_name>]
make:popover:plugin
Tạo popover cho một plugin được chỉ định
File được tạo nằm trong thư m ục views/plugins/[plugin_name]/core/Form/Popover
Arguments
- plugin_name - tên thư mục plugin muốn tạo popover REQUIRED
- file_name - tên class popover muốn tạo REQUIRED
make:popover:plugin [<plugin_name>] [<file_name>]
make:popover:theme
Tạo popover cho theme hiện tại
File được tạo nằm trong thư mục views/[theme]/core/Form/Popover
Arguments
- file_name - tên class popover muốn tạo REQUIRED
make:popover:theme [<file_name>]
make:validate:plugin
Tạo validate rule cho một plugin được chỉ định
File được tạo nằm trong thư mục views/plugins/[plugin_name]/core/Validate
Arguments
- plugin_name - tên thư mục plugin muốn tạo validate REQUIRED
- file_name - tên class validate muốn tạo REQUIRED
make:validate:plugin [<plugin_name>] [<file_name>]
make:validate:theme
Tạo validate rule cho theme hiện tại
File được tạo nằm trong thư mục views/[theme]/core/Validate
Arguments
- file_name - tên class validate muốn tạo REQUIRED
make:validate:theme [<file_name>]
make:column:plugin
v.1.0.2 Tạo table column cho một plugin được chỉ định
File được tạo nằm trong thư mục views/plugins/[plugin_name]/core/Table/Columns
Arguments
- plugin_name - tên thư mục plugin muốn tạo validate REQUIRED
- file_name - tên class column muốn tạo REQUIRED
make:column:plugin [<plugin_name>] [<file_name>]