https://github.com/hexastack/hexabot-cli
CLI for Hexabot to create projects and run them.
https://github.com/hexastack/hexabot-cli
agent ai artificial-intelligence chatbot chatbot-application chatbot-development chatbot-framework chatbots chatgpt cli conversational-ai gemini hexabot llama llm llms local-ai mistral ollama text-to-action
Last synced: 2 months ago
JSON representation
CLI for Hexabot to create projects and run them.
- Host: GitHub
- URL: https://github.com/hexastack/hexabot-cli
- Owner: Hexastack
- Created: 2024-10-27T18:12:28.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-30T17:10:49.000Z (about 1 year ago)
- Last Synced: 2025-03-30T03:11:33.233Z (about 1 year ago)
- Topics: agent, ai, artificial-intelligence, chatbot, chatbot-application, chatbot-development, chatbot-framework, chatbots, chatgpt, cli, conversational-ai, gemini, hexabot, llama, llm, llms, local-ai, mistral, ollama, text-to-action
- Language: JavaScript
- Homepage: https://docs.hexabot.ai
- Size: 92.8 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Hexabot CLI
Hexabot CLI is a powerful command-line tool to help manage your Hexabot chatbot instance. With it, you can create new projects, initialize environments, start services in various modes, run database migrations, and more. The CLI aims to make managing your chatbot seamless and intuitive.
Not yet familiar with [Hexabot](https://hexabot.ai/)? It's a open-source chatbot / agent solution that allows users to create and manage AI-powered, multi-channel, and multilingual chatbots with ease. If you would like to learn more, please visit the [official github repo](https://github.com/Hexastack/Hexabot/).
## Getting Started
### Prerequisites
- Node.js >= 18.17.0
- npm (Node Package Manager)
- Docker installed
### Installation
Install Hexabot CLI globally to have easy access to its commands:
```sh
npm install -g hexabot-cli
```
### Usage
Once installed, you can use the `hexabot` command in your terminal. Here are some of the available commands:
### Commands
#### `create `
Create a new Hexabot project.
```sh
hexabot create my-chatbot
```
Options:
- `--template `: Specify a GitHub repository in the format `GITHUB_USERNAME/GITHUB_REPO` to use a custom template.
Example:
```sh
hexabot create my-chatbot --template myusername/my-template-repo
```
#### `init`
Initialize the environment by copying `.env.example` to `.env`.
```sh
hexabot init
```
#### `dev`
Start specified services in development mode with Docker Compose.
```sh
hexabot dev --services nlu,ollama
```
Options:
- `--services `: Comma-separated list of services to enable.
#### `start`
Start specified services with Docker Compose.
```sh
hexabot start --services api,nlu
```
Options:
- `--services `: Comma-separated list of services to enable.
#### `migrate [args...]`
Run database migrations.
```sh
hexabot migrate
```
You can also pass additional arguments to the migration command.
#### `start-prod`
Start specified services in production mode with Docker Compose.
```sh
hexabot start-prod --services api,nlu
```
Options:
- `--services `: Comma-separated list of services to enable.
#### `stop`
Stop specified Docker Compose services.
```sh
hexabot stop --services api,nlu
```
Options:
- `--services `: Comma-separated list of services to stop.
#### `destroy`
Destroy specified Docker Compose services and remove volumes.
```sh
hexabot destroy --services api,nlu
```
Options:
- `--services `: Comma-separated list of services to destroy.
## Example Workflow
1. **Create a new project**:
```sh
hexabot create my-chatbot
```
This will create a new folder `my-chatbot` with all necessary files to get started.
2. **Navigate to your project folder**:
```sh
cd my-chatbot
```
3. **Install dependencies**:
```sh
npm install
```
4. **Initialize environment**:
```sh
hexabot init
```
This command copies the `.env.example` file to `.env`, which you can edit to customize your configuration.
5. **Run in development mode**:
```sh
hexabot dev --services nlu,ollama
```
This starts the required services in development mode.
## Documentation
For detailed information on how to get started, as well as in-depth user and developer guides, please refer to our full documentation available in the docs folder or visit the [Documentation](https://docs.hexabot.ai).
You can also find specific documentation for different components of the project in the following locations:
- [API Documentation](api/README.md)
- [UI Documentation](frontend/README.md)
- [Live Chat Widget Documentation](widget/README.md)
- [NLU Engine Documentation](nlu/README.md)
## Contributing
We welcome contributions from the community! Whether you want to report a bug, suggest new features, or submit a pull request, your input is valuable to us.
Please refer to our contribution policy first : [How to contribute to Hexabot](./CONTRIBUTING.md)
[](./CODE_OF_CONDUCT.md)
Feel free to join us on [Discord](https://discord.gg/rNb9t2MFkG)
## License
This software is licensed under the GNU Affero General Public License v3.0 (AGPLv3) with the following additional terms:
1. The name "Hexabot" is a trademark of Hexastack. You may not use this name in derivative works without express written permission.
2. All derivative works must include clear attribution to the original creator and software, Hexastack and Hexabot, in a prominent location (e.g., in the software's "About" section, documentation, and README file).