@cargo-ai/cli 1.0.108 → 1.0.112
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
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# Cargo CLI
|
|
2
2
|
|
|
3
|
-
Command-line interface for [Cargo](https://www.getcargo.ai), the
|
|
3
|
+
Command-line interface for [Cargo](https://www.getcargo.ai), the go-to-market platform (npm: `@cargo-ai/cli`, binary: `cargo-ai`). Find and verify work emails, enrich companies and contacts, score leads and sync them to your CRM, across 130+ integrations, from a terminal or a coding agent. For the full command reference, see the [Cargo CLI Overview](https://docs.getcargo.ai/cli/overview).
|
|
4
|
+
|
|
5
|
+
> Cargo here is the go-to-market platform at getcargo.ai, not Rust's `cargo`. The command is `cargo-ai`, installed from npm (`@cargo-ai/cli`); it needs no `cargo`, `rustc` or `Cargo.toml`.
|
|
4
6
|
|
|
5
7
|
## Before you write an enrichment script
|
|
6
8
|
|
|
@@ -22,6 +24,8 @@ cargo-ai orchestration action execute-batch \
|
|
|
22
24
|
|
|
23
25
|
The same two steps cover `verify email`, `enrich company` and the rest; record fields follow the provider (Hunter's are `first_name`, `last_name`, `domain`). `--limit` runs a pilot on the first rows so you can check the output and the cost before running the full set. `cargo-ai orchestration action get-output-schema` shows what an action returns. Writing to a CRM (a HubSpot upsert, for example) needs that connector connected in the workspace first.
|
|
24
26
|
|
|
27
|
+
The full find-then-verify chain for emails, with credit costs and the fields each provider returns: [Find and verify work emails at scale](https://www.getcargo.ai/blog/find-and-verify-work-emails-at-scale).
|
|
28
|
+
|
|
25
29
|
Driving Cargo from an agent instead? `cargo-ai mcp` serves the same actions over MCP (`claude mcp add cargo -- cargo-ai mcp`); see [Cargo MCP server docs](https://www.getcargo.ai/developers/mcp).
|
|
26
30
|
|
|
27
31
|
## Requirements
|
|
@@ -88,7 +88,7 @@ Examples:
|
|
|
88
88
|
.addHelpText("after", `
|
|
89
89
|
Examples:
|
|
90
90
|
$ cargo-ai orchestration action execute --action '{"kind":"tool","toolUuid":"550e8400-..."}' --data '{"email":"user@example.com"}'
|
|
91
|
-
$ cargo-ai orchestration action execute --action '{"kind":"connector","integrationSlug":"slack","actionSlug":"
|
|
91
|
+
$ cargo-ai orchestration action execute --action '{"kind":"connector","integrationSlug":"slack","actionSlug":"postMessage","connectorUuid":"..."}' --data '{"channelId":"C0123456789","format":"markdown","body":"hello"}' --wait-until-finished`)
|
|
92
92
|
.action(async (opts) => {
|
|
93
93
|
const actionPayload = parseJson(opts.action, "--action");
|
|
94
94
|
const data = parseJson(opts.data, "--data");
|
|
@@ -120,8 +120,8 @@ Examples:
|
|
|
120
120
|
.addHelpText("after", `
|
|
121
121
|
Examples:
|
|
122
122
|
$ cargo-ai orchestration action execute-batch --action '{"kind":"tool","toolUuid":"550e8400-..."}' --records '[{"email":"a@b.com"},{"email":"c@d.com"}]'
|
|
123
|
-
$ cargo-ai orchestration action execute-batch --action '{"kind":"connector","integrationSlug":"slack","actionSlug":"
|
|
124
|
-
$ cargo-ai orchestration action execute-batch --action '{"kind":"connector","integrationSlug":"
|
|
123
|
+
$ cargo-ai orchestration action execute-batch --action '{"kind":"connector","integrationSlug":"slack","actionSlug":"postMessage","connectorUuid":"..."}' --records '[{"channelId":"C0123456789","format":"markdown","body":"hello"}]' --wait-until-finished
|
|
124
|
+
$ cargo-ai orchestration action execute-batch --action '{"kind":"connector","integrationSlug":"findyMail","actionSlug":"findEmail"}' --records '[{"name":"Ada Lovelace","domain":"example.com"},{"linkedinUrl":"https://www.linkedin.com/in/ada"}]' --limit 1 --wait-until-finished`)
|
|
125
125
|
.action(async (opts) => {
|
|
126
126
|
const actionPayload = parseJson(opts.action, "--action");
|
|
127
127
|
let records = parseJson(opts.records, "--records");
|
|
@@ -163,7 +163,7 @@ Google Sheet. Pass those in --data, exactly as you would to 'action execute'.
|
|
|
163
163
|
|
|
164
164
|
Examples:
|
|
165
165
|
$ cargo-ai orchestration action get-output-schema --action '{"kind":"tool","toolUuid":"550e8400-..."}'
|
|
166
|
-
$ cargo-ai orchestration action get-output-schema --action '{"kind":"connector","integrationSlug":"clearbit","actionSlug":"
|
|
166
|
+
$ cargo-ai orchestration action get-output-schema --action '{"kind":"connector","integrationSlug":"clearbit","actionSlug":"enrichCompany"}'
|
|
167
167
|
$ cargo-ai orchestration action get-output-schema --action '{"kind":"connector","integrationSlug":"hubspot","actionSlug":"findRecords"}' --data '{"objectType":"contacts"}'`)
|
|
168
168
|
.action(async (opts) => {
|
|
169
169
|
const actionPayload = parseJson(opts.action, "--action");
|
|
@@ -38,7 +38,7 @@ so you can see a node's inputs before spending credits on it. Returns
|
|
|
38
38
|
{"computedConfig":{...}} — pass that inner object to 'node execute'.
|
|
39
39
|
|
|
40
40
|
Examples:
|
|
41
|
-
$ cargo-ai orchestration node compute --node '{"uuid":"...","slug":"enrich","kind":"connector","integrationSlug":"clearbit","actionSlug":"
|
|
41
|
+
$ cargo-ai orchestration node compute --node '{"uuid":"...","slug":"enrich","kind":"connector","integrationSlug":"clearbit","actionSlug":"enrichCompany","connectorUuid":"...","config":{"domain":{"kind":"templateExpression","expression":"{{nodes.start.domain}}","instructTo":"none","fromRecipe":false}}}' --context '{"nodes":{"start":{"domain":"acme.com"}}}'`)
|
|
42
42
|
.action(async (opts) => {
|
|
43
43
|
const api = getApi();
|
|
44
44
|
const result = await handleApiCall(() => api.orchestration.node.compute({
|
|
@@ -69,9 +69,9 @@ function opening(project) {
|
|
|
69
69
|
return [
|
|
70
70
|
"Work with the user on their Cargo workspace.",
|
|
71
71
|
"",
|
|
72
|
-
"Cargo is
|
|
73
|
-
"models holding the data, plays and agents that act on it.
|
|
74
|
-
"CLI is installed and signed in.",
|
|
72
|
+
"Cargo is go-to-market infrastructure: connectors to the systems they",
|
|
73
|
+
"sell with, models holding the data, plays and agents that act on it.",
|
|
74
|
+
"The `cargo-ai` CLI is installed and signed in.",
|
|
75
75
|
];
|
|
76
76
|
}
|
|
77
77
|
return [
|
|
@@ -96,7 +96,7 @@ export async function runStart(getApi, deps, opts) {
|
|
|
96
96
|
});
|
|
97
97
|
}
|
|
98
98
|
info("");
|
|
99
|
-
info("Cargo —
|
|
99
|
+
info("Cargo — go-to-market infrastructure your agents can run on.");
|
|
100
100
|
info("");
|
|
101
101
|
const workspace = isSignedIn() === true ? await currentWorkspace(getApi) : await signIn(opts);
|
|
102
102
|
success(`Workspace: ${workspace.name}`);
|
package/build/index.js
CHANGED
|
@@ -40,7 +40,7 @@ const { version } = require("../package.json");
|
|
|
40
40
|
const program = new Command();
|
|
41
41
|
program
|
|
42
42
|
.name("cargo-ai")
|
|
43
|
-
.description("Cargo
|
|
43
|
+
.description("Cargo, the go-to-market platform at getcargo.ai (not Rust's cargo). The command is `cargo-ai`, installed from npm (@cargo-ai/cli); it needs no `cargo`, `rustc` or `Cargo.toml`.")
|
|
44
44
|
.version(version)
|
|
45
45
|
// Boolean flags take no value, so `--is-enabled false` parses as
|
|
46
46
|
// `--is-enabled` plus a stray `false` — silently inverting what the caller
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cargo-ai/cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.112",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"homepage": "https://getcargo.ai",
|
|
@@ -12,11 +12,12 @@
|
|
|
12
12
|
"bugs": {
|
|
13
13
|
"url": "https://github.com/getcargohq/cargo-skills/issues"
|
|
14
14
|
},
|
|
15
|
-
"description": "
|
|
15
|
+
"description": "Cargo, the go-to-market platform, from your terminal or coding agent: find and verify work emails, enrich companies and contacts, score leads and sync them to your CRM (HubSpot, Salesforce) across 130+ integrations, run plays and workflows, and serve it all to AI agents as an MCP server.",
|
|
16
16
|
"keywords": [
|
|
17
17
|
"cargo",
|
|
18
|
-
"gtm",
|
|
19
18
|
"go-to-market",
|
|
19
|
+
"gtm",
|
|
20
|
+
"sales",
|
|
20
21
|
"revenue",
|
|
21
22
|
"revops",
|
|
22
23
|
"enrichment",
|
|
@@ -24,9 +25,13 @@
|
|
|
24
25
|
"lead-enrichment",
|
|
25
26
|
"prospecting",
|
|
26
27
|
"email-finder",
|
|
28
|
+
"email-verification",
|
|
29
|
+
"lead-scoring",
|
|
27
30
|
"sales-automation",
|
|
28
31
|
"outbound",
|
|
29
32
|
"crm",
|
|
33
|
+
"hubspot",
|
|
34
|
+
"salesforce",
|
|
30
35
|
"orchestration",
|
|
31
36
|
"cli",
|
|
32
37
|
"agent-skills",
|
|
@@ -34,7 +39,9 @@
|
|
|
34
39
|
"claude-code",
|
|
35
40
|
"cursor",
|
|
36
41
|
"codex",
|
|
37
|
-
"mcp"
|
|
42
|
+
"mcp",
|
|
43
|
+
"mcp-server",
|
|
44
|
+
"clay-alternative"
|
|
38
45
|
],
|
|
39
46
|
"engines": {
|
|
40
47
|
"node": ">=22"
|
|
@@ -44,8 +51,7 @@
|
|
|
44
51
|
},
|
|
45
52
|
"type": "module",
|
|
46
53
|
"bin": {
|
|
47
|
-
"cargo-ai": "./build/index.js"
|
|
48
|
-
"cargo": "./build/index.js"
|
|
54
|
+
"cargo-ai": "./build/index.js"
|
|
49
55
|
},
|
|
50
56
|
"files": [
|
|
51
57
|
"build",
|
|
@@ -67,9 +73,9 @@
|
|
|
67
73
|
"dependencies": {
|
|
68
74
|
"@ai-sdk/harness": "^1.0.144",
|
|
69
75
|
"@ai-sdk/harness-claude-code": "^1.0.148",
|
|
70
|
-
"@cargo-ai/api": "^1.0.
|
|
76
|
+
"@cargo-ai/api": "^1.0.94",
|
|
71
77
|
"@cargo-ai/app-sdk": "^1.0.11",
|
|
72
|
-
"@cargo-ai/cdk": "^1.0.
|
|
78
|
+
"@cargo-ai/cdk": "^1.0.111",
|
|
73
79
|
"@cargo-ai/types": "^1.0.96",
|
|
74
80
|
"@cargo-ai/utils": "^1.0.32",
|
|
75
81
|
"@cargo-ai/worker-sdk": "^1.0.20",
|