agent/README.md
jingrow 9ca8014177
Some checks failed
Agent Tests / Lint and Format (push) Has been cancelled
Agent Tests / Unit Tests (push) Has been cancelled
更新jingrow仓库地址
2025-08-21 18:08:53 +08:00

42 lines
795 B
Markdown

# Agent
## Installation
```
mkdir agent && cd agent
git clone http://git.jingrow.com/jingrow/agent repo
virtualenv env
source env/bin/activate
pip install -e ./repo
cp repo/redis.conf .
cp repo/Procfile .
```
## Running
```
honcho start
```
## CLI
Agent has a CLI
([ref](http://git.jingrow.com/jingrow/agent/blob/master/agent/cli.py)). You can
access this by activating the env:
```bash
# Path to your agent's Python env might be different
source ./agent/env/bin/activate
agent --help
```
Once you have activated the env, you can access the iPython console:
```bash
agent console
```
This should have the server object instantiated if it was able to find the
`config.json` file. If not you can specify the path (check `agent console --help`).