https://github.com/opensearch-project/opensearch-cli
A full-featured command line interface (CLI) for OpenSearch.
https://github.com/opensearch-project/opensearch-cli
Last synced: about 2 months ago
JSON representation
A full-featured command line interface (CLI) for OpenSearch.
- Host: GitHub
- URL: https://github.com/opensearch-project/opensearch-cli
- Owner: opensearch-project
- License: apache-2.0
- Created: 2021-04-02T21:06:44.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-06-24T22:07:03.000Z (about 1 year ago)
- Last Synced: 2025-04-30T15:46:40.791Z (about 2 months ago)
- Language: Go
- Homepage: https://opensearch.org/docs/latest/clients/cli/
- Size: 5.55 MB
- Stars: 47
- Watchers: 12
- Forks: 25
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
- Security: SECURITY.md
Awesome Lists containing this project
README
[](https://github.com/opensearch-project/opensearch-cli/actions/workflows/test-build-workflow.yml)
[](https://codecov.io/gh/opensearch-project/opensearch-cli)
[](https://opensearch.org/docs/latest/tools/cli/)
[](https://forum.opensearch.org/)
- [OpenSearch Command Line Interface](#opensearch-command-line-interface)
- [User Guide](#user-guide)
- [Compatibility with OpenSearch](#compatibility-with-opensearch)
- [Security](#security)
- [License](#license)
- [Copyright](#copyright)# OpenSearch Command Line Interface
OpenSearch Command Line Interface (opensearch-cli) is an open source tool that lets you manage your OpenSearch cluster from the command line
and automate tasks. In addition to standard OpenSearch operations, you can configure,
manage, and use the plugins, such as Alerting, Anomaly Detection, and SQLopensearch-cli is best suited for situations in which you want to quickly combine a few commands, possibly adding them to
a script for easy access or automation. This example moves a detector "ecommerce-count-qualtity" from staging
to prod cluster, provided both profiles are available in config file.```
opensearch-cli ad get ecommerce-count-qualtity --profile stg > ecommerce-count-qualtity.json
opensearch-cli ad create ecommerce-count-qualtity.json --profile prod
opensearch-cli ad start ecommerce-count-qualtity.json --profile prod
opensearch-cli ad stop ecommerce-count-qualtity --profile stg
opensearch-cli ad delete ecommerce-count-qualtity --profile stg
```## User Guide
See [User Guide](USER_GUIDE.md).
## Compatibility with OpenSearch
See [Compatibility](COMPATIBILITY.md).
## Security
See [SECURITY](SECURITY.md) for more information.
## License
This project is licensed under the [Apache v2.0 License](LICENSE.txt).
## Copyright
Copyright OpenSearch Contributors. See [NOTICE](NOTICE.txt) for details.