-
Notifications
You must be signed in to change notification settings - Fork 12
3.B. Reference Command Line Tools
- 3.B.1. help
- 3.B.2. connect
- 3.B.3. install
- 3.B.4. server
- 3.B.5. update
- 3.B.6. deploy
- 3.B.7. deploy production
- 3.B.8. deploy s3
- 3.B.9. elastic
- 3.B.10. elastic flush
- 3.B.11. elastic map
- 3.B.12. elastic populate
- 3.B.13. package
- 3.B.14. package install
- 3.B.15. package list
- 3.B.16. package remove
- 3.B.17. package search
- 3.B.18. package update
- 3.B.19. redis
- 3.B.20. redis
- 3.B.21. sql
- 3.B.22. sql flush
- 3.B.23. sql build
- 3.B.24. sql populate
Command line tools are used to better control the stack of your project.
General help menu
$ cradle helpConnects to a server. see: config/deploy.php
$ cradle connect app-1Connects to a server. see: config/deploy.php
-
-f | --force- Installs Cradle force overriding files -
--skip-sql- Installs Cradle, but skips the SQL part -
--skip-versioning- Installs Cradle but skips updating the packages -
--skip-mkdir- Installs Cradle but skips the making of cache folders -
--skip-chmod- Installs Cradle but skips the permission settings -
-h- Database Host -
-u- Database user -
-p- Database password
$ cradle install
$ cradle install -f
$ cradle install --force
$ cradle install --skip-sql
$ cradle install --skip-versioning
$ cradle install -h 127.0.0.1 -u root -p 123Starts a PHP server
-
-h- Server Host -
-p- Server Port
$ cradle server -h 127.0.0.1 -p 8888Updates all packages to their latest version
$ cradle updateDeploy Commands
$ cradle deploy
$ cradle deploy helpDeploys code to server see: config/deploy.php
$ cradle deploy productionUploads static assets to S3. see: config/services.php
-
--include-yarn- Uploads static assets to S3 including Yarn folder -
--include-upload- Uploads static assets to S3 including upload folder
$ cradle deploy s3
$ cradle deploy s3 --include-yarn
$ cradle deploy s3 --include-uploadElasticSearch Commands
$ cradle elastic
$ cradle elastic helpTruncates the entire index
$ cradle elastic flush
$ cradle elastic flush foo/barSubmits the ElasticSearch schema
$ cradle elastic map
$ cradle elastic map foo/barSubmits the ElasticSearch schema related to given package
$ cradle elastic populate
$ cradle elastic populate foo/barPackage Commands
$ cradle package
$ cradle package helpInstalls a package from packagist
$ cradle package install foo/bar
$ cradle package install foo/bar 1.0.0Lists out all the available packages
$ cradle package listRemoves a package
$ cradle package remove foo/barSearches packagist for a particular package
$ cradle package search foobarUpdates a package to its latest version
$ cradle package update foo/bar
$ cradle package update foo/bar 1.0.0Redis Commands
$ cradle redis
$ cradle redis helpTruncates the entire cache
$ cradle redis flush
$ cradle redis flush foo/barSQL Commands
$ cradle sql
$ cradle sql helpTruncates the entire database
$ cradle sql flush
$ cradle sql flush foo/barRebuilds the database schema
$ cradle sql build
$ cradle sql build foo/barPopulates all the tables of every package
$ cradle sql populate
$ cradle sql populate foo/bar2.B. Reference: Validation Types
2.D. Reference: Indexes & Relations
3.A. Reference: Cradle on Shared Hosts
3.B. Reference: Command Line Tools
3.C. Reference: Architecture Recommendations
4.4. Intro to Handlebars Templating
4.B. Reference: Handlebars Helpers
4.C. Reference: Doon Interfaces
4.D. Reference: Global Package Methods