@nestbox-ai/cli 1.0.35 → 1.0.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/GETTING_STARTED.md +166 -0
- package/package.json +1 -1
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
# Getting Started with Nestbox CLI
|
|
2
|
+
|
|
3
|
+
Welcome to the Nestbox CLI! This guide will get you up and running with building, managing, and deploying AI agents on the Nestbox platform.
|
|
4
|
+
|
|
5
|
+
## Prerequisites
|
|
6
|
+
|
|
7
|
+
- Node.js 18+ installed
|
|
8
|
+
- A Nestbox platform account
|
|
9
|
+
|
|
10
|
+
## Installation
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
npm install -g @nestbox-ai/cli
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Quick Start
|
|
17
|
+
|
|
18
|
+
### 1. Login to Nestbox
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
nestbox login demo.nestbox.com
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
This opens your browser for Google SSO authentication. Once authenticated, your credentials are stored locally.
|
|
25
|
+
|
|
26
|
+
### 2. Manage Projects
|
|
27
|
+
|
|
28
|
+
List your projects:
|
|
29
|
+
```bash
|
|
30
|
+
nestbox project list
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Switch to a project:
|
|
34
|
+
```bash
|
|
35
|
+
nestbox project use <project-name>
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Add a new project:
|
|
39
|
+
```bash
|
|
40
|
+
nestbox project add <project-name> [alias]
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### 3. Check Available Compute
|
|
44
|
+
|
|
45
|
+
List available compute resources:
|
|
46
|
+
```bash
|
|
47
|
+
nestbox compute list
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Check compute status:
|
|
51
|
+
```bash
|
|
52
|
+
nestbox compute status <compute-id>
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
### 4. Generate Agent Projects
|
|
56
|
+
|
|
57
|
+
Create a new agent project from templates:
|
|
58
|
+
```bash
|
|
59
|
+
nestbox generate project <folder> --lang <ts|js> --template <agent|chatbot> --name <agent-name>
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
Example - TypeScript agent:
|
|
63
|
+
```bash
|
|
64
|
+
nestbox generate project my-agent --lang ts --template agent --name myAgent
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
Example - JavaScript chatbot:
|
|
68
|
+
```bash
|
|
69
|
+
nestbox generate project my-chatbot --lang js --template chatbot --name myChatbot --project my-project-id
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Available options:
|
|
73
|
+
- `--lang`: Choose `ts` (TypeScript) or `js` (JavaScript)
|
|
74
|
+
- `--template`: Choose `agent` or `chatbot`
|
|
75
|
+
- `--name`: Agent/Chatbot name (must be valid function name)
|
|
76
|
+
- `--project`: Optional project ID
|
|
77
|
+
|
|
78
|
+
### 5. Deploy Your Agent
|
|
79
|
+
|
|
80
|
+
From your agent directory:
|
|
81
|
+
```bash
|
|
82
|
+
nestbox agent deploy --agent <agent-name> --project <project-name>
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
Deploy with detailed logs:
|
|
86
|
+
```bash
|
|
87
|
+
nestbox agent deploy --agent <agent-name> --project <project-name> --log
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
Deploy a specific zip or directory:
|
|
91
|
+
```bash
|
|
92
|
+
nestbox agent deploy --agent <agent-name> --zip ./path/to/agent --project <project-name>
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
List deployed agents:
|
|
96
|
+
```bash
|
|
97
|
+
nestbox agent list
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
Remove an agent:
|
|
101
|
+
```bash
|
|
102
|
+
nestbox agent remove
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
## Common Workflows
|
|
106
|
+
|
|
107
|
+
### Development Cycle
|
|
108
|
+
```bash
|
|
109
|
+
# Generate agent project
|
|
110
|
+
nestbox generate project my-agent --lang ts --template agent --name myAgent
|
|
111
|
+
|
|
112
|
+
# Develop locally
|
|
113
|
+
cd my-agent
|
|
114
|
+
npm install
|
|
115
|
+
npm run dev
|
|
116
|
+
|
|
117
|
+
# Deploy agent
|
|
118
|
+
nestbox agent deploy --agent my-agent --project my-project --log
|
|
119
|
+
|
|
120
|
+
# Test and validate
|
|
121
|
+
nestbox agent list
|
|
122
|
+
|
|
123
|
+
# Deploy with specific instance
|
|
124
|
+
nestbox agent deploy --agent my-agent --instance production --log
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
### Managing Documents
|
|
128
|
+
```bash
|
|
129
|
+
# Upload documents for agent context
|
|
130
|
+
nestbox document upload ./docs/*.pdf
|
|
131
|
+
|
|
132
|
+
# List uploaded documents
|
|
133
|
+
nestbox document list
|
|
134
|
+
|
|
135
|
+
# Delete documents
|
|
136
|
+
nestbox document delete <document-id>
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
## Configuration
|
|
140
|
+
|
|
141
|
+
The CLI stores configuration in `.nestboxrc` in your home directory. You can also use project-specific configuration by creating a `nestbox.config.json` file:
|
|
142
|
+
|
|
143
|
+
```json
|
|
144
|
+
{
|
|
145
|
+
"project": "your-project-id",
|
|
146
|
+
"defaultCompute": "your-compute-id",
|
|
147
|
+
"environment": "staging"
|
|
148
|
+
}
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
## Help & Documentation
|
|
152
|
+
|
|
153
|
+
Get help for any command:
|
|
154
|
+
```bash
|
|
155
|
+
nestbox --help
|
|
156
|
+
nestbox agent --help
|
|
157
|
+
nestbox project --help
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
## Next Steps
|
|
161
|
+
|
|
162
|
+
- Check out the [Nestbox AI developers site](https://developers.nestbox.ai) for detailed documentation
|
|
163
|
+
- Explore the example agents in the templates directory
|
|
164
|
+
- Join our developer community for support and best practices
|
|
165
|
+
|
|
166
|
+
Happy building! 🚀
|