@retell-ai/retell-cli 0.4.0 → 0.4.2

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/README.md CHANGED
@@ -7,7 +7,7 @@ Every public OpenAPI `operationId` becomes one flat kebab-case command:
7
7
  ```text
8
8
  createPhoneCall -> retell create-phone-call
9
9
  getMCPTools -> retell get-mcp-tools
10
- listCallsV3 -> retell list-calls-v3
10
+ listCalls -> retell list-calls
11
11
  ```
12
12
 
13
13
  The published CLI is self-contained and does not load an OpenAPI document at runtime.
@@ -30,7 +30,7 @@ retell create-phone-call --help
30
30
  retell get-agent agent_123 --dry-run
31
31
  ```
32
32
 
33
- API responses use JSON by default in both terminals and pipelines. Use `--output table` for a compact human-readable summary or `--output jsonl` to emit one item per line from generated paginated responses.
33
+ API responses use JSON by default in both terminals and pipelines. Use `--output table` for a compact human-readable summary or `--output jsonl` to emit one item per line from array and paginated responses.
34
34
 
35
35
  For interactive workstation use, store the API key in the OS keychain:
36
36
 
@@ -65,4 +65,4 @@ For password, token, or API-key request fields, prefer `--body -` or stdin so th
65
65
 
66
66
  Use `--dry-run` to inspect a redacted request without sending it.
67
67
 
68
- `--base-url` is intended for trusted development servers and proxies. The CLI sends the configured Retell bearer credential to the overridden URL, matching the Retell SDK behavior. API requests time out after 60 seconds.
68
+ `--base-url` is intended for trusted development servers and proxies. The CLI sends the configured Retell bearer credential to the overridden URL, matching the Retell SDK behavior. API requests time out after 60 seconds, except multipart/file-upload requests, which time out after 300 seconds.
@@ -30,6 +30,17 @@ export function parseArguments(operation, tokens) {
30
30
  dryRun: false,
31
31
  };
32
32
  const positionals = [];
33
+ const expanded = [];
34
+ for (const token of tokens) {
35
+ const equalsIndex = token.startsWith("--") ? token.indexOf("=") : -1;
36
+ if (equalsIndex === -1) {
37
+ expanded.push(token);
38
+ }
39
+ else {
40
+ expanded.push(token.slice(0, equalsIndex), token.slice(equalsIndex + 1));
41
+ }
42
+ }
43
+ tokens = expanded;
33
44
  for (let index = 0; index < tokens.length; index += 1) {
34
45
  const token = tokens[index];
35
46
  if (!token.startsWith("-")) {
@@ -98,7 +98,8 @@ export function rootHelp(operations) {
98
98
  ` -h, --help Show help\n\n` +
99
99
  `Input conventions:\n` +
100
100
  ` Path parameters are positional arguments. Query parameters and JSON fields use named flags.\n` +
101
- ` Pass nested objects and arrays as JSON strings. Multipart file options accept local paths.\n\n` +
101
+ ` Pass nested objects and arrays as JSON strings. Multipart file options accept local paths.\n` +
102
+ ` Flags accept either --flag value or --flag=value.\n\n` +
102
103
  `Run 'retell <command> --help' for command-specific help.\n`;
103
104
  }
104
105
  export function commandHelp(operation) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@retell-ai/retell-cli",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "description": "Generated command line interface for the Retell API",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {