@withone/cli 1.12.3 → 1.12.4
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/dist/index.js +28 -11
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4218,16 +4218,28 @@ virtually any integration task across their entire stack.`);
|
|
|
4218
4218
|
sections.push(buildCurrentState(connections));
|
|
4219
4219
|
sections.push(`## How To Use the CLI
|
|
4220
4220
|
|
|
4221
|
+
### IMPORTANT: Always use the --agent flag
|
|
4222
|
+
Every command supports \`--agent\` which gives you clean, structured JSON
|
|
4223
|
+
output instead of human-formatted text. Always use it:
|
|
4224
|
+
one --agent list
|
|
4225
|
+
one --agent actions search gmail "send email"
|
|
4226
|
+
one --agent actions knowledge gmail <actionId>
|
|
4227
|
+
one --agent actions execute gmail <actionId> <connectionKey> -d '{...}'
|
|
4228
|
+
one --agent platforms
|
|
4229
|
+
one --agent guide
|
|
4230
|
+
|
|
4231
|
+
The \`--agent\` flag goes right after \`one\`, before the subcommand.
|
|
4232
|
+
|
|
4221
4233
|
### Discovery Workflow (follow this every time):
|
|
4222
|
-
1. \`one actions search <platform> "<query>"\` \u2014 Find the right action
|
|
4223
|
-
2. \`one actions knowledge <platform> <actionId>\` \u2014 Read the docs (ALWAYS before execute)
|
|
4224
|
-
3. \`one actions execute <platform> <actionId> <connectionKey>\` \u2014 Execute it
|
|
4234
|
+
1. \`one --agent actions search <platform> "<query>"\` \u2014 Find the right action
|
|
4235
|
+
2. \`one --agent actions knowledge <platform> <actionId>\` \u2014 Read the docs (ALWAYS before execute)
|
|
4236
|
+
3. \`one --agent actions execute <platform> <actionId> <connectionKey>\` \u2014 Execute it
|
|
4225
4237
|
|
|
4226
4238
|
### Multi-Step Workflows:
|
|
4227
4239
|
Use \`one flow create\` to build JSON workflows that chain actions across
|
|
4228
4240
|
platforms with conditions, loops, parallel execution, and transforms.
|
|
4229
4241
|
|
|
4230
|
-
Run \`one guide\` for the complete reference documentation with examples.`);
|
|
4242
|
+
Run \`one --agent guide\` for the complete reference documentation with examples.`);
|
|
4231
4243
|
sections.push(buildDemoActions(connections));
|
|
4232
4244
|
sections.push(buildWorkflowIdeas(connections));
|
|
4233
4245
|
sections.push(buildUserScript(connections));
|
|
@@ -4344,14 +4356,19 @@ This project has the One CLI configured. It connects AI agents to 200+
|
|
|
4344
4356
|
platforms (Gmail, Slack, Shopify, HubSpot, Stripe, etc.) through a single
|
|
4345
4357
|
interface.
|
|
4346
4358
|
|
|
4359
|
+
### IMPORTANT: Always use the --agent flag
|
|
4360
|
+
The \`--agent\` flag gives structured JSON output. Always include it right
|
|
4361
|
+
after \`one\`:
|
|
4362
|
+
one --agent <command>
|
|
4363
|
+
|
|
4347
4364
|
### Quick reference:
|
|
4348
|
-
- \`one list\` \u2014 See connected platforms and connection keys
|
|
4349
|
-
- \`one
|
|
4350
|
-
- \`one actions
|
|
4351
|
-
- \`one actions
|
|
4352
|
-
- \`one
|
|
4353
|
-
- \`one
|
|
4354
|
-
- \`one
|
|
4365
|
+
- \`one --agent list\` \u2014 See connected platforms and connection keys
|
|
4366
|
+
- \`one --agent actions search <platform> "<query>"\` \u2014 Find actions
|
|
4367
|
+
- \`one --agent actions knowledge <platform> <actionId>\` \u2014 Read docs (REQUIRED before execute)
|
|
4368
|
+
- \`one --agent actions execute <platform> <actionId> <connectionKey>\` \u2014 Execute action
|
|
4369
|
+
- \`one --agent flow create\` \u2014 Build multi-step workflows
|
|
4370
|
+
- \`one --agent guide\` \u2014 Full documentation
|
|
4371
|
+
- \`one add <platform>\` \u2014 Connect a new platform (interactive, no --agent)
|
|
4355
4372
|
|
|
4356
4373
|
### Workflow: search -> knowledge -> execute
|
|
4357
4374
|
Always read the knowledge before executing. It tells you required parameters,
|