kenso 0.1.116 → 0.1.118
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/kenso.js +167 -51
- package/dist/operations.index.json +1 -1
- package/dist/operations.json +1 -1
- package/docs/crm.md +93 -10
- package/docs/output-and-errors.md +3 -3
- package/docs/reference.md +13 -4
- package/package.json +2 -2
package/docs/crm.md
CHANGED
|
@@ -15,7 +15,7 @@ The CRM commands work on Kenso's Accounts lane: accounts (companies), the people
|
|
|
15
15
|
| `opportunities move <id> [--stage <key>] [--pipeline <pipelineId>] [--reason <key>]` | Move a deal to a stage or another pipeline, with its won or lost reason; a field the stage asks for never stops it |
|
|
16
16
|
| `opportunities stage-history <id>` | A deal's stage history: each stage, when, who moved it and how long it sat there |
|
|
17
17
|
| `notes list`, `notes add`, `notes edit`, `notes delete` | Notes and comments on accounts, people and deals (needs `record_notes`) |
|
|
18
|
-
| `deleted-accounts list`, `accounts restore <id>` | The accounts deleted in the last 30 days, and bringing one back |
|
|
18
|
+
| `deleted-accounts list`, `accounts restore --account-id <id>` | The accounts deleted in the last 30 days, and bringing one back |
|
|
19
19
|
| `accounts duplicates`, `accounts merge <id> --into <id>`, `accounts merges list` | The pairs that look like one company, merging a pair, and the log of merges |
|
|
20
20
|
| `export <accounts\|people\|deals>` | The list as CSV: everything, a saved view (`--view <id>`), or what the filters match |
|
|
21
21
|
| `capture status` | Your captured mailbox, its backfill progress and what teammates see of a captured email. Needs the `crm_capture` flag |
|
|
@@ -31,6 +31,11 @@ The CRM commands work on Kenso's Accounts lane: accounts (companies), the people
|
|
|
31
31
|
| `layouts show\|set\|reset <object>` | How every account, person or deal page in the workspace lays out its fields: header, rail sections and hidden fields (needs `record_layout`) |
|
|
32
32
|
| `crm-connections`, `crm-imports`, `crm-sync-issues` | Read and run CRM sync. Connecting a CRM stays in the app |
|
|
33
33
|
| `tasks add`, `tasks done`, `tasks assign`, `tasks queue` | Add a to-do for a member on an account, person or deal, complete it, hand it on, or read your open work (needs `tasks`) |
|
|
34
|
+
| `fields list`, `create`, `update`, `archive` | The built-in and custom fields of accounts, people and deals, and adding your own (needs `custom_fields`) |
|
|
35
|
+
| `field-fill-settings`, `suggestions`, `fields fill` | How Ken fills each field from email, calls and meetings, the values it waits on you for, and filling a deal field for existing deals (needs `ken_field_fill`) |
|
|
36
|
+
| `views list`, `create`, `run`, `update`, `delete` | Saved views of accounts, people and deals, private or shared with the workspace (needs `shared_views`) |
|
|
37
|
+
| `reports summary`, `reports run <report>`, `reports query`, `dashboards` | Pipeline reports over your deals, your own counts and sums, and dashboards of saved charts (needs `opportunities` and `reports`) |
|
|
38
|
+
| `forecast show`, `quotas list`, `set`, `propose` | Closed won, commit and best case against each member's quota for a month or quarter (needs `opportunities` and `forecast`) |
|
|
34
39
|
|
|
35
40
|
Import accounts first, then people: `people import` never creates an account.
|
|
36
41
|
|
|
@@ -101,7 +106,7 @@ kenso accounts search --data '{"where": {"match": "all", "conditions": [{"field"
|
|
|
101
106
|
- `countBy` (`stage`, `stageGroup`) adds `counts` to the output: every value with the number of matching accounts that hold it, whatever the page. The output is then one object: `data`, `pagination` and `counts`.
|
|
102
107
|
- `filters` and `where` narrow the accounts.
|
|
103
108
|
|
|
104
|
-
An account's timeline pages the same way. `kenso accounts activity 812` returns the newest 100 earlier rows and, when older ones exist, `data.nextCursor`. Pass it back as `--cursor` (with the same `--category`) for the rows before them, until a page comes without one.
|
|
109
|
+
An account's timeline pages the same way. `kenso accounts activity --account-id 812` returns the newest 100 earlier rows and, when older ones exist, `data.nextCursor`. Pass it back as `--cursor` (with the same `--category`) for the rows before them, until a page comes without one.
|
|
105
110
|
|
|
106
111
|
## Edit accounts, people and opportunities
|
|
107
112
|
|
|
@@ -136,10 +141,10 @@ It makes a change set: the accounts it names and, for each, the field, its value
|
|
|
136
141
|
|
|
137
142
|
`kenso accounts bulk-update` used to be the generated command for the route's older one-field body, which sets one `accountType` on up to 500 accounts and needs only `accounts`. The route still takes that body, but this command no longer sends it: use `kenso accounts update --each` with an `accountType` column, or `kenso api POST /v1/accounts/bulk-update --data '{"accountIds":[812,813],"accountType":"lost"}'`.
|
|
138
143
|
|
|
139
|
-
`people bulk-update` and `opportunities bulk-update` work the same way. People take `--set` for `ownerMemberId` (or `owner`), `leadStatus`, `title`, `seniority`, `department` and `location`, and a `--filter` of `kenso people search --data` fields (`leadStatus`, `roles`, `tagIds`, `q` and the rest). Deals take `stage` (a live stage key), `ownerMemberId` (or `owner`), `closeDate` (or `close`), `amount`, `dealType` and `nextStep`, and a `--filter` of `kenso opportunities search --data` fields (`filters`, `accountId`, `q`):
|
|
144
|
+
`people bulk-update` and `opportunities bulk-update` work the same way. People take `--set` for `ownerMemberId` (or `owner`), `leadStatus`, `title`, `seniority`, `department` and `location`, and a `--filter` of `kenso people search --data` fields (`leadStatus`, `roles`, `tagIds`, `q` and the rest). Deals take `stage` (a live stage key), `ownerMemberId` (or `owner`), `closeDate` (or `close`), `amount`, `dealType` and `nextStep`, and a `--filter` of `kenso opportunities search --data` fields (`filters`, `accountId`, `pipelineId`, `q`, `missingFields`). A stage belongs to one pipeline, and a bulk stage change keeps every deal in its own: `"pipelineId"` in the filter names one pipeline's deals, and a deal of another pipeline is counted under `failed` with the row code `other_pipeline` and is not moved (`kenso opportunities update` moves one deal to another pipeline):
|
|
140
145
|
|
|
141
146
|
```bash
|
|
142
|
-
kenso opportunities bulk-update --filter '{"filters":[{"field":"stageCategory","operator":"is","values":["open"]}]}' --set stage=proposal --dry-run
|
|
147
|
+
kenso opportunities bulk-update --filter '{"pipelineId":3,"filters":[{"field":"stageCategory","operator":"is","values":["open"]}]}' --set stage=proposal --dry-run
|
|
143
148
|
kenso people bulk-update --ids 501,502 --set owner=42 --yes
|
|
144
149
|
```
|
|
145
150
|
|
|
@@ -284,10 +289,10 @@ kenso opportunities move 77 --pipeline 6 --stage negotiating
|
|
|
284
289
|
|
|
285
290
|
```bash
|
|
286
291
|
kenso deleted-accounts list
|
|
287
|
-
kenso accounts restore 812
|
|
292
|
+
kenso accounts restore --account-id 812
|
|
288
293
|
```
|
|
289
294
|
|
|
290
|
-
A deleted account can be restored for 30 days. `deleted-accounts list` shows each one with who deleted it, `expiresAt` (restore works until then) and what comes back: `personCount`, `opportunityCount` and `touchCount`. `accounts restore <id>` brings the account back with its domains, its people, its deals and its planned touches, which wait for approval again. A domain another account took since stays with that account and is listed in `domainsTaken`. A merged account is not listed and cannot be restored: a merge has no undo. Both commands are behind the `crm_import_export` feature flag (`404` while it is off).
|
|
295
|
+
A deleted account can be restored for 30 days. `deleted-accounts list` shows each one with who deleted it, `expiresAt` (restore works until then) and what comes back: `personCount`, `opportunityCount` and `touchCount`. `accounts restore --account-id <id>` brings the account back with its domains, its people, its deals and its planned touches, which wait for approval again. Its Studio pages, committee seats and Knowledge facts do not come back: the delete purged them. A domain another account took since stays with that account and is listed in `domainsTaken`. A merged account is not listed and cannot be restored: a merge has no undo. Both commands are behind the `crm_import_export` feature flag (`404` while it is off).
|
|
291
296
|
|
|
292
297
|
## Import a CSV export of another CRM
|
|
293
298
|
|
|
@@ -358,7 +363,7 @@ kenso notes add --parent 900 --body 'Sent it this morning' # a comment
|
|
|
358
363
|
cat call-notes.md | kenso notes add --deal 77 --body - # the body from stdin
|
|
359
364
|
kenso notes edit 900 --body 'Budget approved for Q1' # the author only
|
|
360
365
|
kenso notes edit 900 --pin
|
|
361
|
-
kenso notes delete 900 --yes # kenso notes restore 900 brings it back
|
|
366
|
+
kenso notes delete 900 --yes # kenso notes restore --note-id 900 brings it back
|
|
362
367
|
```
|
|
363
368
|
|
|
364
369
|
The body is markdown, up to 20,000 characters. Mention a teammate as `@[Name](memberId)`: they get a notification that opens the note. A note shows on the record's Notes tab and its Activity timeline, and Ken's account brief quotes the account's notes. The MCP's `notes` tool does the same. A note on an account needs the accounts plan feature; people and deals work on every plan.
|
|
@@ -367,12 +372,14 @@ The body is markdown, up to 20,000 characters. Mention a teammate as `@[Name](me
|
|
|
367
372
|
|
|
368
373
|
```bash
|
|
369
374
|
kenso pipelines stage-rules
|
|
375
|
+
kenso pipelines stage-rules --pipeline 6
|
|
376
|
+
kenso pipelines stage-rules proposal --require amount,closeDate,custom.tier --dry-run
|
|
370
377
|
kenso pipelines stage-rules proposal --require amount,closeDate,custom.tier
|
|
371
378
|
kenso pipelines stage-rules proposal --none
|
|
372
379
|
kenso pipelines stage-rules lost --default
|
|
373
380
|
```
|
|
374
381
|
|
|
375
|
-
With the `deal_stage_rules` flag on, each stage can name the fields a deal should have in it. Without a stage the command prints every stage's `key`, `label`, `category`, `isArchived`, `requiredFields` and `isDefault`, plus `requirableFields`: `amount`, `closeDate`, `ownerMemberId`, `primaryPersonId`, `nextStep`, `lostReasonKey`, `wonReasonKey` and `custom.<key>` for each custom deal field. `--require` sets the stage's whole list, in order, at most 10. `--none` requires nothing, and `--default` goes back to the default: a lost stage asks for `lostReasonKey`, any other stage nothing. Setting a rule needs the `workspace_settings` permission. The same as the MCP's `opportunities(operation="stages-set-required-fields")`.
|
|
382
|
+
With the `deal_stage_rules` flag on, each stage can name the fields a deal should have in it. Without a stage the command prints every stage's `key`, `label`, `category`, `isArchived`, `requiredFields` and `isDefault`, plus `requirableFields`: `amount`, `closeDate`, `ownerMemberId`, `primaryPersonId`, `nextStep`, `lostReasonKey`, `wonReasonKey` and `custom.<key>` for each custom deal field. `--require` sets the stage's whole list, in order, at most 10. `--none` requires nothing, and `--default` goes back to the default: a lost stage asks for `lostReasonKey`, any other stage nothing. Without `--pipeline` the list is the default pipeline's stages; `--pipeline <id>` lists that pipeline's. A stage key is unique across pipelines, so a stage of any pipeline is set by its key, and with `--pipeline` the command first checks the stage is that pipeline's. Setting a rule needs the `workspace_settings` permission. The same as the MCP's `opportunities(operation="stages-set-required-fields")`.
|
|
376
383
|
|
|
377
384
|
A missing field never stops a move. The deal moves, and it is flagged Missing on the board, the list and the deal page until the field is filled. A rule also applies to deals already in the stage.
|
|
378
385
|
|
|
@@ -401,12 +408,13 @@ With the `deal_stage_rules` flag on, each workspace edits why its deals are lost
|
|
|
401
408
|
kenso layouts show account
|
|
402
409
|
kenso layouts set account --header tier,ownerMemberId,score,custom.arr
|
|
403
410
|
kenso layouts show account > layout.json && kenso layouts set account --data @layout.json
|
|
404
|
-
kenso layouts reset account
|
|
411
|
+
kenso layouts reset account --dry-run
|
|
412
|
+
kenso layouts reset account --yes
|
|
405
413
|
```
|
|
406
414
|
|
|
407
415
|
With the `record_layout` flag on, a workspace lays out each record page once, for every member: `account`, `person` or `opportunity` (a deal). `show` prints `GET /v1/record-layouts/{object}`: `isDefault`, `version`, `headerFields` (up to 6, pinned under the record's name), `railSections` (`{name, fields}`), `hiddenFields` (under the rail's More), `sections` (`{key, label, placement, locked, hidden}`, in page order) and `availableFields`. Field keys are the field catalog's (`ownerMemberId`, `closeDate`, `primaryDomain`); a custom field is `custom.<field_key>`, and a new one joins the last rail section.
|
|
408
416
|
|
|
409
|
-
`set --header` pins up to 6 fields and keeps the rest of the saved layout; the fields it unpins go to the top of the first rail section. `set --data` saves a whole layout, so group the rail into sections or hide a section that way, starting from `show`. A save made after someone else's answers a conflict: show it again. `reset` puts the page back to Kenso's default. Saving needs the `workspace_settings` permission, and the account page also needs the `accounts` plan. The same as the MCP's `account_views` operations `record-layouts-get`, `record-layouts-replace` and `record-layouts-reset`.
|
|
417
|
+
`set --header` pins up to 6 fields and keeps the rest of the saved layout; the fields it unpins go to the top of the first rail section. `set --data` saves a whole layout, so group the rail into sections or hide a section that way, starting from `show`. A save made after someone else's answers a conflict: show it again. `reset` puts the page back to Kenso's default for every member, so it needs `--yes` (save the layout with `show` first). `set` and `reset` print the request with `--dry-run` and change nothing. Saving needs the `workspace_settings` permission, and the account page also needs the `accounts` plan. The same as the MCP's `account_views` operations `record-layouts-get`, `record-layouts-replace` and `record-layouts-reset`.
|
|
410
418
|
|
|
411
419
|
## Pin a saved view
|
|
412
420
|
|
|
@@ -435,3 +443,78 @@ kenso tasks done 7 --undo
|
|
|
435
443
|
- `tasks done` completes each task it names, in order (`PATCH /v1/tasks/{id}` with `status: done`); `--undo` reopens them. When one fails, its error names the tasks before it, which are already changed. `tasks assign` gives a task to `me`, a member id or a member's email; that member gets a `task_assigned` notification.
|
|
436
444
|
- `tasks queue` is `task-queue list` under the name you would try: the Tasks screen's open work by due day, with `--scope mine|assigned_by_me|everyone`. It lists tasks, manual touches, call tasks, inbox threads with a reminder due (when you can view the Inbox) and Ken's follow-ups to you, each with the app path in `href` (null for a task, which opens in its panel).
|
|
437
445
|
- `tasks list`, `get`, `update`, `delete`, `restore` and `task-queue list` are generated from the API: `kenso tasks --help` lists them.
|
|
446
|
+
|
|
447
|
+
## Custom fields
|
|
448
|
+
|
|
449
|
+
```bash
|
|
450
|
+
kenso fields list --object account
|
|
451
|
+
kenso fields create --object account --type select --label Region --data '{"options":["EMEA","North America"]}' --dry-run
|
|
452
|
+
kenso fields create --object account --type select --label Region --data '{"options":["EMEA","North America"]}'
|
|
453
|
+
kenso fields update --field-id 412 --label "Sales region"
|
|
454
|
+
kenso fields archive --field-id 412 --yes
|
|
455
|
+
```
|
|
456
|
+
|
|
457
|
+
With the `custom_fields` flag on, each workspace adds its own fields to accounts, people and deals (`--object account`, `person` or `opportunity`). `fields list` prints the built-in and custom fields; a custom field is `custom.<key>`, the name `customFields`, `bulk-update --set`, stage rules, layouts and imports use. Run it before you add a field that may already exist.
|
|
458
|
+
|
|
459
|
+
- **`create`** takes `--object`, `--type` (`text`, `number`, `boolean`, `date`, `json`, `select`, `multi_select`, `currency`, `url` or `user`; fixed once created) and `--label`. `--key` is made from the label when you leave it out ("Contract value" is `contract_value`). `--description` says what the field means; Ken reads it when it fills the field. A select or multi_select takes its choices in `--data` as `options`, each a label or `{label, color, key}`, up to 200.
|
|
460
|
+
- **`update`** changes the label, the description or the options. `options` in `--data` is the whole list: keep an option by its `key`, and one you leave out is archived, never deleted, so the records that hold it keep it.
|
|
461
|
+
- **`archive`** hides a field from the pickers, the columns and the record rail and keeps every value, so it asks for `--yes`. `kenso fields update --field-id 412 --no-is-archived` brings it back. An object holds at most 100 live custom fields.
|
|
462
|
+
|
|
463
|
+
## Field-fill settings and Ken's suggestions
|
|
464
|
+
|
|
465
|
+
```bash
|
|
466
|
+
kenso field-fill-settings list
|
|
467
|
+
kenso field-fill-settings update --object opportunity --field amount --mode suggest --instruction "Budget the buyer named, in USD"
|
|
468
|
+
kenso suggestions list --account-id 812
|
|
469
|
+
kenso suggestions approve --suggestion-id 31
|
|
470
|
+
kenso suggestions reject --suggestion-id 32 --reason "That was last year's budget"
|
|
471
|
+
kenso fields fill --object opportunity --field nextStep --all
|
|
472
|
+
```
|
|
473
|
+
|
|
474
|
+
With the `ken_field_fill` flag on, Ken reads email, calls and meetings and fills record fields. `field-fill-settings list` shows each field Ken can fill with its `mode`: `default` (Ken fills an empty field and suggests a change to a filled one), `off`, `suggest` (every value waits for a person) or `auto`. `update` sets a field's mode and an `--instruction` of up to 500 characters that tells Ken what to look for. A new mode applies to the next email, call or meeting Ken reads.
|
|
475
|
+
|
|
476
|
+
A value that waits for a person is a suggestion: the field, its value now (`from`), Ken's value (`to`), the quote and its source. `suggestions list` shows the pending ones; narrow it with `--status`, `--object` and `--record-id` (one record), `--account-id` (the account, its people and its deals) or `--meeting-id`. `approve` writes Ken's value to the record (`--data '{"value": ...}'` writes yours instead) and `reject` leaves the record as it is. Both are a person's call: run them on the user's word.
|
|
477
|
+
|
|
478
|
+
`fields fill` fills one deal field for the deals that have none, from their recorded meetings and captured email. As written above it only answers how many deals have no value and what filling them costs, and starts nothing; `--no-body-dry-run` starts it. It needs `bulk_edit` too, and works on deal fields only.
|
|
479
|
+
|
|
480
|
+
## Saved views
|
|
481
|
+
|
|
482
|
+
```bash
|
|
483
|
+
kenso views list --object account
|
|
484
|
+
kenso views create --object account --name "Tier 1, no meeting in 30 days" --visibility workspace --data @view.json --dry-run
|
|
485
|
+
kenso views run --view-id 140 --limit 100 --include-total
|
|
486
|
+
kenso views update --view-id 140 --name "Tier 1, quiet for 30 days"
|
|
487
|
+
kenso views delete --view-id 140 --yes
|
|
488
|
+
```
|
|
489
|
+
|
|
490
|
+
With the `shared_views` flag on, a saved view is a name, its object's search `filter` and `sort`, `columns` and a `layout` (`list` or `board`), private to its maker or shared with the workspace (`--visibility workspace`). `view.json` holds `filter` and `sort` in the shape the object's search takes (`filters`, `where`, `q`), so try it with `kenso accounts search --data` first. `views list` shows the workspace's shared views and your private ones. `run` lists a view's records exactly as its object's search returns them, page by page. `update` changes what you send, and `filter` replaces the whole filter. Any member changes or deletes a shared view, but only its maker makes it private. `delete` asks for `--yes` and takes the view off every member's sidebar. `kenso views pin` (above) pins one.
|
|
491
|
+
|
|
492
|
+
## Reports and dashboards
|
|
493
|
+
|
|
494
|
+
```bash
|
|
495
|
+
kenso reports summary
|
|
496
|
+
kenso reports list
|
|
497
|
+
kenso reports run won_by_month --period this_year --owner 41
|
|
498
|
+
kenso reports query --data '{"measures":[{"op":"sum","field":"amount"}],"dimensions":[{"field":"stage"}]}'
|
|
499
|
+
kenso dashboards create --name "Q4 pipeline" --visibility workspace
|
|
500
|
+
kenso dashboards add-chart --dashboard-id 3 --title "Won by month" --data '{"report":{"key":"won_by_month","period":"this_year"}}'
|
|
501
|
+
```
|
|
502
|
+
|
|
503
|
+
With the `opportunities` and `reports` flags on, reports count and sum your deals. `reports summary` prints where the period stands (closed won, open pipeline, weighted pipeline, win rate) and what needs you, then one row per stock report. `reports run <report>` prints one stock report as a table: `pipeline_by_stage`, `won_by_month`, `stage_conversion`, `time_in_stage`, `won_by_source_campaign` or `activity_by_member`. Each takes `--period` (`this_quarter` by default, a month such as `2026-03`, a quarter, a year or a day range), `--owner` and `--pipeline`, and `--full` prints the whole answer with each bucket's filter for `opportunities search`.
|
|
504
|
+
|
|
505
|
+
`reports query` asks your own question: `measures` (1 to 4 of `count`, `sum`, `avg` or `weighted_sum` of `amount`), `dimensions` (up to 2 of `stage`, `stageCategory`, `ownerMemberId`, `sourceCampaignId`, `closedAt`, `createdAt` or `closeDate`, the dates by `month`, `quarter` or `year`) and a `filter` as `opportunities search` takes it. It only reads.
|
|
506
|
+
|
|
507
|
+
A dashboard keeps charts, up to 12, private to its owner or shared with the workspace. A chart is a stock report (`report`: its `key`, `period`, `ownerMemberId`, `pipelineId`) or a `query`, drawn as `bars` or a `trend`. `dashboards get --dashboard-id 3` reads one, and `update`, `remove-chart` and `delete` change it (the last two ask for `--yes`).
|
|
508
|
+
|
|
509
|
+
## Forecast and quotas
|
|
510
|
+
|
|
511
|
+
```bash
|
|
512
|
+
kenso forecast show --period 2026-Q4
|
|
513
|
+
kenso forecast show --period 2026-11 --include-deals
|
|
514
|
+
kenso quotas list --period 2026-Q4
|
|
515
|
+
kenso quotas propose --period 2027-Q1 --uplift-percent 15
|
|
516
|
+
kenso quotas propose --period 2027-Q1 --uplift-percent 15 --apply
|
|
517
|
+
kenso quotas set --period 2027-Q1 --member-id 41 --amount 120000
|
|
518
|
+
```
|
|
519
|
+
|
|
520
|
+
With the `opportunities` and `forecast` flags on, `forecast show` reads closed won, commit and best case for a quarter (`2026-Q4`) or a month (`2026-11`), per member and for the team, each against its quota. Without `--period` it reads the current quarter. `--include-deals` adds the deals it counted. `quotas propose` works out each member's quota from what they closed won in the quarter before the period (or the last quarter that has ended) plus `--uplift-percent` (0 to 200, default 15), and writes nothing; with `--apply` it saves those amounts. `quotas set` sets one member's quota in the workspace currency, and `--data '{"memberId":41,"amount":null}'` removes it.
|
|
@@ -7,8 +7,8 @@ Every command follows one contract, so a script or an agent can parse any of the
|
|
|
7
7
|
- **stdout carries data only.** Progress, warnings, notices and errors go to stderr.
|
|
8
8
|
- No colors, spinners or pagers. On a terminal you get readable tables; in a pipe you get JSON.
|
|
9
9
|
- A batch command (an import, update, remove, tag or `--each` write) takes `--yes`; without it, the command plans or refuses.
|
|
10
|
-
- A command that deletes, archives or
|
|
11
|
-
- Any other single write, such as `kenso tags create` or a write through `kenso api` or `kenso mcp call`, sends at once: add `--dry-run` to print the request first (it sends nothing), then run the command without it.
|
|
10
|
+
- A command that deletes, archives, removes or merges, such as `kenso tags delete --tag-id 7`, `kenso campaigns archive`, `kenso people merge` or `kenso api DELETE /v1/tags/7`, needs `--yes` too. Without it, a person at a terminal is asked to confirm; anywhere else (a pipe, a script, CI, a coding agent) it sends nothing and fails with `confirmation_required`, whose `next` is the same command with `--yes`.
|
|
11
|
+
- Any other single write, such as `kenso tags create`, `kenso notes add` or a write through `kenso api` or `kenso mcp call`, sends at once: add `--dry-run` to print the request first (it sends nothing), then run the command without it. A command that reads before it writes (`kenso layouts set --header` reads the layout it edits) still reads with `--dry-run`, and prints the write it would send. A POST that changes nothing, such as `kenso accounts search` or `kenso reports query`, is a read like a GET.
|
|
12
12
|
- A command with no dry run, such as `kenso contacts export`, `kenso auth logout` or `kenso workspace use`, refuses `--dry-run` with `usage_error` (exit 2) and does nothing. Its help ends with `No --dry-run`, and `kenso describe <resource> <action>` shows `"dryRun": false`.
|
|
13
13
|
|
|
14
14
|
## Formats
|
|
@@ -18,7 +18,7 @@ Every command follows one contract, so a script or an agent can parse any of the
|
|
|
18
18
|
| One object | key-value lines | compact JSON on one line |
|
|
19
19
|
| A list | a table (first 8 scalar fields, cells cut at 60 characters) | NDJSON: one JSON object per line |
|
|
20
20
|
| A batch run | key-value lines | one JSON summary object |
|
|
21
|
-
| No content (HTTP 204) |
|
|
21
|
+
| No content (HTTP 204, such as a delete) | key-value lines: `ok`, `status`, `request` | `{"ok":true,"status":204,"request":{"method":"DELETE","path":"/v1/tasks/7"}}` |
|
|
22
22
|
|
|
23
23
|
`-o` or `--output` picks the format: `json`, `ndjson`, `table` or `ids`. `--json` is the same as `-o json`.
|
|
24
24
|
|
package/docs/reference.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Kenso CLI command reference
|
|
2
2
|
|
|
3
|
-
Generated from kenso 0.1.
|
|
3
|
+
Generated from kenso 0.1.118 (API contracts ec98d78fbf3c) by `scripts/build-reference.ts`. Do not edit it: `pnpm build` writes it again.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
1901 commands, one entry each: summary, API route, feature gate and flag names. Beta commands work only on workspaces with their feature flag; `kenso describe` hides the ones yours cannot use. Every command also takes the global flags below. A command's notes, flag descriptions, body schema and examples: `kenso <resource> <action> --help`, or `kenso describe <resource> <action>` as JSON.
|
|
6
6
|
|
|
7
7
|
## Global flags
|
|
8
8
|
|
|
@@ -413,6 +413,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
|
|
|
413
413
|
- [sequence-imports](#sequence-imports) (1)
|
|
414
414
|
- [sequence-steps](#sequence-steps) (1)
|
|
415
415
|
- [sequence-variables](#sequence-variables) (1)
|
|
416
|
+
- [sequence-views](#sequence-views) (1)
|
|
416
417
|
- [shared-meetings](#shared-meetings) (1)
|
|
417
418
|
- [shares](#shares) (8)
|
|
418
419
|
- [signal-vendor-connections](#signal-vendor-connections) (3)
|
|
@@ -8953,11 +8954,11 @@ Flags: `--pipeline-id` (required), `--each`, `--concurrency`.
|
|
|
8953
8954
|
|
|
8954
8955
|
### kenso pipelines stage-rules
|
|
8955
8956
|
|
|
8956
|
-
List or set the fields a deal should have in each stage. API operations: `opportunity-stages.list`, `opportunity-stages.set-required-fields`. Beta: needs `opportunities` and `deal_stage_rules`.
|
|
8957
|
+
List or set the fields a deal should have in each stage. API operations: `opportunity-stages.list`, `opportunity-stages.set-required-fields`, `pipelines.get`. Beta: needs `opportunities` and `deal_stage_rules`.
|
|
8957
8958
|
|
|
8958
8959
|
Arguments: `<stage>` (optional).
|
|
8959
8960
|
|
|
8960
|
-
Flags: `--default`, `--none`, `--require`.
|
|
8961
|
+
Flags: `--default`, `--none`, `--pipeline`, `--require`.
|
|
8961
8962
|
|
|
8962
8963
|
### kenso pipelines update
|
|
8963
8964
|
|
|
@@ -10517,6 +10518,14 @@ Get the sequence variables. `GET /v1/sequence-variables`.
|
|
|
10517
10518
|
|
|
10518
10519
|
Flags: `--campaign-id`, `--each`, `--concurrency`.
|
|
10519
10520
|
|
|
10521
|
+
## sequence-views
|
|
10522
|
+
|
|
10523
|
+
### kenso sequence-views get
|
|
10524
|
+
|
|
10525
|
+
Get a campaign's sequence view. `GET /v1/campaigns/{campaignId}/sequence-view`.
|
|
10526
|
+
|
|
10527
|
+
Flags: `--campaign-id` (required), `--include`, `--each`, `--concurrency`.
|
|
10528
|
+
|
|
10520
10529
|
## shared-meetings
|
|
10521
10530
|
|
|
10522
10531
|
### kenso shared-meetings get
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kenso",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.118",
|
|
4
4
|
"description": "The Kenso CLI: bulk lead, CRM and Studio work for people and coding agents",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"typescript-eslint": "8.71.1",
|
|
50
50
|
"vitest": "5.0.3"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "d057bed3ba7f7fd90c248e7be296fda20544b3dd"
|
|
53
53
|
}
|