goldfinch / taz
Command Line Interface (CLI) for Silverstripe, to help and speed up development process
Installs: 1 813
Dependents: 29
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:silverstripe-vendormodule
Requires
- php: >=8.0
- consolidation/comments: ^1.0
- goldfinch/cli-supplier: ^2.0
- goldfinch/helpers: ^2.0
- goldfinch/illuminate: ^2.0
- hackzilla/password-generator: ^1.6
- minwork/array: ^1.13
- silverstripe/admin: ^2.0
- silverstripe/framework: ^5.0
- symfony/console: ^6.3
- dev-main
- v2.0.12
- v2.0.11
- v2.0.10
- v2.0.9
- v2.0.8
- v2.0.7
- v2.0.6
- v2.0.5
- v2.0.4
- v2.0.3
- v2.0.2
- v2.0.1
- v2.0.0
- v1.0.27
- v1.0.26
- v1.0.25
- v1.0.24
- v1.0.23
- v1.0.22
- v1.0.21
- v1.0.20
- v1.0.19
- v1.0.18
- v1.0.17
- v1.0.16
- v1.0.15
- v1.0.14
- v1.0.13
- v1.0.12
- v1.0.11
- v1.0.10
- v1.0.9
- v1.0.8
- v1.0.7
- v1.0.6
- v1.0.5
- v1.0.4
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0.0
This package is auto-updated.
Last update: 2024-11-16 02:26:47 UTC
README
Taz 🌪️ is the command line interface (CLI) that can assist you with the development of your Silverstripe application and save time.Install
- Install module
composer require goldfinch/taz
- Copy taz file to the root of your project
cp vendor/goldfinch/taz/taz taz
Usage
Call Taz via console php taz
💨
List of available commands
php taz dev/build php taz display:version php taz display:theme php taz display:routes php taz display:members php taz display:admins php taz generate:base64-key php taz generate:crypto-key php taz generate:password php taz generate:app-key php taz make:admin # --template=(full/plain) php taz make:command php taz make:command-template php taz make:config # --template=(full/plain) --plain --after=* --before=* php taz make:controller php taz make:extension # --fielder php taz make:form php taz make:helper php taz make:include php taz make:model # --template=(full/plain/full-fielder/plain-fielder) php taz make:page # --template=(full/plain/full-fielder/plain-fielder) php taz make:page-controller php taz make:page-template php taz make:provider php taz make:service php taz make:task php taz make:trait php taz make:view # Commands for external modules (each command depends on its module, make sure the module is installed in your project before using the dependent command below) # (lekoala/silverstripe-encrypt) php taz generate:encryption-key # (jonom/silverstripe-someconfig) php taz make:adminconfig # --template=(full/full-fielder) # (silverstripe/silverstripe-elemental) php taz make:element # --template=(full/plain/full-fielder/plain-fielder) # (silverstripe/silverstripe-elemental) php taz make:element-template # (silverstripe/silverstripe-crontask) php taz make:crontask
Run dev/build in CLI
Runing php taz dev/build
can throw MySQL errors. If this is your case, you probably need to specify the path to your MySQL socket. Here is how you can do that.
// you can place it to app/_config.php use SilverStripe\Core\Environment; use SilverStripe\Control\Director; if (Director::isDev() && Environment::hasEnv('SS_DATABASE_SOCKET')) { ini_set('mysqli.default_socket', Environment::getEnv('SS_DATABASE_SOCKET')); }
and add the var to your .env
SS_DATABASE_SOCKET="/path/to/mysql/mysql.sock"
Create custom commands
You can create your own custom commands for your application. They can be widely stored across separate modules.
php taz make:command MyCustom
Preview
License
The MIT License (MIT)