Linux command
cradle-elastic 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
Start Elasticsearch
cradle elastic start
Stop Elasticsearch
cradle elastic stop
Check status
cradle elastic status
Flush
cradle elastic flush
Map
cradle elastic map
说明
cradle elastic manages Elasticsearch instances within the Cradle PHP framework. It provides commands to start, stop, and check the status of Elasticsearch services for development environments. This tool simplifies local Elasticsearch management by handling service lifecycle operations through the Cradle CLI. It's particularly useful for developers who need Elasticsearch running locally for search functionality testing without manually managing the service. Part of the Cradle framework's integrated service management tools that allow developers to control dependencies directly from the framework CLI.
参数
- start
- Start the Elasticsearch service for the Cradle development environment.
- stop
- Stop the running Elasticsearch service.
- status
- Display the current status of the Elasticsearch service.
- flush
- Flush all Elasticsearch indices, clearing cached data.
- map
- Apply schema mappings to Elasticsearch indices.
FAQ
What is the cradle-elastic command used for?
cradle elastic manages Elasticsearch instances within the Cradle PHP framework. It provides commands to start, stop, and check the status of Elasticsearch services for development environments. This tool simplifies local Elasticsearch management by handling service lifecycle operations through the Cradle CLI. It's particularly useful for developers who need Elasticsearch running locally for search functionality testing without manually managing the service. Part of the Cradle framework's integrated service management tools that allow developers to control dependencies directly from the framework CLI.
How do I run a basic cradle-elastic example?
Run `cradle elastic start` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does start do in cradle-elastic?
Start the Elasticsearch service for the Cradle development environment.