@aventurevc/aventure-cli 0.7.329 → 0.8.0

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,60 +1,132 @@
1
- # aventure-cli
1
+ # aVenture CLI
2
2
 
3
- The public aVenture CLI. Its public binary is `aventure`. Start with the
4
- [CLI quickstart](https://docs.aventure.vc/cli); every command and credential is
5
- documented at [docs.aventure.vc](https://docs.aventure.vc).
3
+ Query aVenture's research data on companies, people, funding, and news from your
4
+ terminal. The package installs one command, `aventure`.
6
5
 
7
- Requires Node.js 24.18 or later in the 24.x series.
6
+ For a guided walkthrough, read the
7
+ [aVenture CLI quickstart](https://docs.aventure.vc/cli).
8
8
 
9
- ```bash
9
+ ## Install
10
+
11
+ The CLI requires Node.js 24.18 or later in the 24.x series. Installation fails on
12
+ any other major version.
13
+
14
+ ```sh
10
15
  npm install --global @aventurevc/aventure-cli --@aventurevc:registry=https://registry.npmjs.org/
11
- aventure status
12
- aventure help
16
+ aventure --version
13
17
  ```
14
18
 
15
- ## Authenticate
19
+ The `--@aventurevc:registry` flag makes npm install from the public npm registry
20
+ even when your npm configuration maps the `@aventurevc` scope somewhere else.
21
+
22
+ ## Get a first result
23
+
24
+ Public reads need no account. This command finds a company by its website
25
+ domain:
26
+
27
+ ```sh
28
+ aventure entities lookup get --url-domain stripe.com
29
+ ```
16
30
 
17
- Choose one public user credential.
31
+ ## Sign in
18
32
 
19
- ### Native OAuth
33
+ Name lookups and searches need a signed-in account. Choose one credential.
20
34
 
21
- Run these commands in an interactive terminal:
35
+ ### Browser sign-in
22
36
 
23
37
  ```sh
24
38
  aventure auth login
25
- aventure entities list --entity-name Stripe
39
+ aventure lookup Stripe
26
40
  ```
27
41
 
28
- Complete browser sign-in when prompted. The CLI stores the OAuth credential in
29
- the operating-system credential store, or in `~/.config/aventure/credentials.json`
30
- (mode `0600`) where the keyring cannot be used without a GUI session. An expired
31
- access token is renewed with its refresh token automatically. `aventure auth
32
- status` reports credential metadata, the store in use, and the sign-in providers
33
- without displaying any secret. `aventure auth logout` revokes the personal key,
34
- revokes the OAuth refresh token, and removes both local records.
42
+ `aventure auth login` prints a one-time code and a sign-in URL, opens your browser
43
+ when one is available, and waits until you approve. You can approve on any device,
44
+ so the same command works on a laptop, over SSH, and in a container. Add
45
+ `--no-browser` to print the URL without opening a browser. The approval page uses
46
+ the aVenture account already signed in to that browser; to use another account,
47
+ open the URL in a private window.
48
+
49
+ The CLI saves the credential in your operating system's credential store. When no
50
+ credential store is available, such as on a server without a desktop session, it
51
+ saves the credential to `~/.config/aventure/credentials.json` with file mode
52
+ `0600`. Expired access is renewed automatically.
53
+
54
+ Review or revoke CLI sign-ins in
55
+ [aVenture developer access settings](https://aventure.vc/settings/developer).
35
56
 
36
57
  ### Personal API key
37
58
 
38
- Create a key at [aventure.vc/settings/api-keys](https://aventure.vc/settings/api-keys)
39
- with **Add new key**, then provide it through `AUTH_TOKEN` using your environment or
40
- secret manager. To create and store a personal key through browser approval, run
41
- `aventure auth login --key` in an interactive terminal. `aventure auth status`
42
- reports metadata without displaying the key. Help and the command catalog work
43
- without signing in.
59
+ Create a key in
60
+ [aVenture API key settings](https://aventure.vc/settings/api-keys), then provide it
61
+ in the `AUTH_TOKEN` environment variable from your shell or secret manager. Use
62
+ this path for CI and other non-interactive environments.
63
+
64
+ To create and save a key through browser approval instead, run
65
+ `aventure auth login --key`.
66
+
67
+ ### Check or remove a credential
44
68
 
45
- ## Headless authentication
69
+ - `aventure auth status` shows which credential is in use and where it is stored,
70
+ without printing the secret.
71
+ - `aventure auth doctor` checks the CLI version, API connection, credential, and
72
+ command catalog in one call, and names the command that fixes each failure.
73
+ - `aventure auth logout` revokes the saved API key and removes the saved sign-in.
46
74
 
47
- `aventure auth login` uses the OAuth device authorization grant: it prints a one-time
48
- code and a sign-in URL, opens the browser when one is available (`--no-browser` only
49
- skips that), you approve on any device, and the CLI polls until the sign-in completes.
50
- The same command works on a laptop, over SSH, and in a container. The verification
51
- page uses the account already signed in at `accounts.aventure.vc`; to choose another
52
- account, open the URL in a private window or sign out there first. `aventure auth
53
- login --key --no-browser` is the equivalent path for a personal API key, and an
54
- existing key can always be provided through `AUTH_TOKEN`.
75
+ ## Plans and usage
55
76
 
56
- The command catalog is generated from the public aVenture OpenAPI spec and must not be hand-edited.
77
+ Calls made with your credential count toward your aVenture plan's usage. Some
78
+ operations, such as plain-English search, need a plan that includes them; without
79
+ one, the API responds with status `402`.
80
+
81
+ - Compare plans on the [aVenture pricing page](https://aventure.vc/pricing).
82
+ - Check your plan and current usage in
83
+ [aVenture subscription settings](https://aventure.vc/settings/subscription).
84
+
85
+ ## Find commands
86
+
87
+ ```sh
88
+ aventure --help
89
+ aventure entities --help
90
+ aventure help entities lookup get
91
+ aventure command-catalog search company lookup --format compact
92
+ ```
93
+
94
+ `aventure <command> --help` lists a command's options, and `aventure help <command>`
95
+ prints its full documentation. `aventure command-catalog search` finds the command
96
+ for a task without calling the API. Help and the catalog work without signing in.
97
+
98
+ ## Output and exit codes
99
+
100
+ Every command accepts one output mode:
101
+
102
+ - `--text` prints readable lines. It is the default in a terminal.
103
+ - `--data` prints the response data as JSON. It is the default when output is
104
+ piped.
105
+ - `--json` prints the full result envelope, capped at 50 KB.
106
+ - `--data-full` prints uncapped JSON.
107
+
108
+ The CLI exits with `0` when the call succeeded and `1` when it failed.
109
+
110
+ ## Shell completion and updates
111
+
112
+ - `aventure completion zsh`, `aventure completion bash`, and
113
+ `aventure completion fish` print completion scripts, and
114
+ `aventure completion install` installs them.
115
+ - `aventure update` checks for a newer release and installs it.
57
116
 
58
117
  ## Diagnostics
59
118
 
60
- The public package writes diagnostics to stderr and does not export telemetry.
119
+ The CLI writes diagnostics to standard error and sends no telemetry.
120
+
121
+ ## Documentation
122
+
123
+ - [CLI quickstart](https://docs.aventure.vc/cli)
124
+ - [Authentication guide](https://docs.aventure.vc/authentication)
125
+ - [Error reference](https://docs.aventure.vc/errors)
126
+ - [API reference](https://docs.aventure.vc/api-reference)
127
+
128
+ The command set is generated from the public aVenture OpenAPI specification.
129
+
130
+ ## License
131
+
132
+ Apache License 2.0. See the [LICENSE file](LICENSE).
@@ -7,27 +7,26 @@ aventure content list · List content · -
7
7
  aventure content search · Search content · --query
8
8
  aventure entities get · Get one company, product, or service by id · --entity-id
9
9
  aventure entities lookup · Find which company a name refers to, or confirm it is new · --name
10
+ aventure entities lookup-batch · Look up companies in bulk by id, slug, or URL · -
11
+ aventure entities lookup-matches · Look up which company each identifier matches · -
10
12
  aventure entities natural-search · Deprecated: find companies in natural language · --query
11
13
  aventure entities search · Search companies, products, and services · -
12
14
  aventure help ask · Answer a natural-language platform help question · --question
13
- aventure lookup slug-redirects · Resolve slug redirect path · --path
14
- aventure lookup unique-ids · Look up an identifier owner · --id-type --identifier
15
15
  aventure news get · Get one news article · --news-id
16
16
  aventure news list · List news articles · -
17
17
  aventure news lookup · Look up one news article · -
18
18
  aventure people get · Get one person by id · --person-id
19
19
  aventure people lookup · Find which person a name refers to, or confirm they are new · --name
20
+ aventure people lookup-batch · Look up people in bulk by id or slug · -
20
21
  aventure people natural-search · Deprecated: find people in natural language · --query
21
22
  aventure people search · Search people · -
22
- aventure provenance get · Get one recorded source for a field · --provenance-id
23
- aventure provenance list · List where a record's data came from · --table-name
24
23
  aventure resolve get · Deprecated: find the record behind an id, slug, or URL · --token
25
24
  aventure search all · Deprecated: search companies, people, and news together · --query
26
25
  aventure search link · Search from a page URL · --url
27
26
  aventure slug-redirects list · List a record's slug redirects · --resource-type --resource-id
28
- aventure slug-redirects lookup · Deprecated: resolve slug redirect path · --path
29
- aventure unique-ids lookup · Deprecated: look up an identifier owner · --id-type --identifier
30
- aventure url-types list · Deprecated: list the accepted values for --url-type · -
27
+ aventure slug-redirects lookup · Resolve slug redirect path · --path
28
+ aventure unique-ids lookup · Look up an identifier owner · --id-type --identifier
29
+ aventure url-types list · List the accepted values for --url-type · -
31
30
  aventure web search · Search the live web · --search
32
31
  aventure agents help answer · Deprecated: answer a natural-language platform help question · --question
33
32
  aventure agents instructions get · Deprecated: get one agent instruction document · --kind --name
@@ -63,9 +62,7 @@ aventure entities fundraise-rounds list · List a company's funding rounds · --
63
62
  aventure entities investments list · List the investments a company made · --entity-id
64
63
  aventure entities investor-activity get · Get investor activity · --entity-id
65
64
  aventure entities investors list · List a company's investors · --entity-id
66
- aventure entities lookup batch · Look up companies in bulk by id, slug, or URL · -
67
- aventure entities lookup get · Read full entity detail by exact slug, URL, or domain · -
68
- aventure entities lookup matches · Look up which company each identifier matches · -
65
+ aventure entities lookup-exact get · Read full entity detail by exact slug, URL, or domain · -
69
66
  aventure entities media get · Get a company media slot · --entity-id --media-type
70
67
  aventure entities people get · Get one person's role at a company · --entity-id --association-id
71
68
  aventure entities people list · List the people at a company · --entity-id
@@ -92,7 +89,6 @@ aventure entities urls get · Get one company URL · --entity-id --url-id
92
89
  aventure entities urls list · List a company's URLs · --entity-id
93
90
  aventure entities valuations list · List a company's valuation over time · --entity-id
94
91
  aventure help instructions get · Get one agent instruction document · --kind --name
95
- aventure lookup url-types list · List the accepted values for --url-type · -
96
92
  aventure news feedback create · Submit news feedback · -
97
93
  aventure news media get · Get news thumbnail · --news-id --media-type
98
94
  aventure news related-entities list · List the entities a news article is about · --news-id
@@ -110,8 +106,7 @@ aventure people filters search · Search people filter options · --filter-key -
110
106
  aventure people graph get · Get person graph · --person-id
111
107
  aventure people investments list · List a person's investments · --person-id
112
108
  aventure people investor-activity get · Get person investor activity · --person-id
113
- aventure people lookup batch · Look up people in bulk by id or slug · -
114
- aventure people lookup get · Read one person's full detail by exact slug or URL · -
109
+ aventure people lookup-exact get · Read one person's full detail by exact slug or URL · -
115
110
  aventure people media get · Get person photo · --person-id --media-type
116
111
  aventure people repositories list · List a person's GitHub repositories · --person-id
117
112
  aventure people similar list · List people similar to one person · --person-id
@@ -121,14 +116,10 @@ aventure people unique-ids get · Get one person identifier · --person-id --uni
121
116
  aventure people unique-ids list · List a person's identifiers · --person-id
122
117
  aventure people urls get · Get one person URL · --person-id --url-id
123
118
  aventure people urls list · List person URLs · --person-id
124
- aventure provenance latest get · Get the newest source for a record · --table-name
125
119
  aventure search natural entities · Find companies, startups, and investors in natural language · --query
126
120
  aventure search natural people · Find people with natural language · --query
127
121
  aventure sec company lookup · Get SEC EDGAR facts for a public company · -
128
- aventure sitemap entities list · Paginated thin entity directory · -
129
- aventure sitemap index-manifest get · Sitemap index manifest · -
130
- aventure sitemap url-slots list · Paginated sitemap URL slots · --family
131
- aventure unique-ids types list · Deprecated: list the accepted unique identifier types · -
122
+ aventure unique-ids types list · List the accepted unique identifier types · -
132
123
  aventure agents instructions manifest get · Deprecated: get the agent instruction manifest · -
133
124
  aventure agents instructions versions get · Deprecated: get one agent instruction document version · --kind --name --instruction-version
134
125
  aventure auth me permissions authorize · Authorize API operations · -
@@ -139,21 +130,10 @@ aventure entities filters counts list · List the company filter tag counts · -
139
130
  aventure entities products suggestions list · Suggest a company's products or services · --entity-id
140
131
  aventure entities relationships suggestions list · Suggest relationships for a company · --entity-id
141
132
  aventure entities relationships types list · List the accepted values for --type · -
133
+ aventure entities research-details types list · List the accepted research detail types · -
134
+ aventure entities research-snippets types list · List the accepted research snippet types · -
142
135
  aventure entities texts types list · List the accepted company text types · -
143
136
  aventure help instructions manifest get · Get the agent instruction manifest · -
144
137
  aventure help instructions versions get · Get one agent instruction document version · --kind --name --instruction-version
145
- aventure lookup unique-ids types list · List the accepted unique identifier types · -
146
138
  aventure people content facets list · Count a person's publications · --person-id
147
139
  aventure people texts types list · List the accepted person text types · -
148
- aventure sitemap entities boundaries get · Entity sitemap boundaries · --type-record
149
- aventure sitemap entities letter-counts get · Entity letter counts · -
150
- aventure sitemap entities routes list · Paginated sitemap-routes projection for an entity type · --type-record
151
- aventure sitemap entities urls list · Paginated sitemap URL slots for entity types · --type-record
152
- aventure sitemap news boundaries get · News sitemap boundaries · -
153
- aventure sitemap news letter-counts get · News author letter counts · -
154
- aventure sitemap people boundaries get · Person sitemap boundaries · -
155
- aventure sitemap people letter-counts get · People letter counts · -
156
- aventure sitemap url-slots boundaries get · Sitemap URL-slot boundaries · --family
157
- aventure entities research details types list · List the accepted research detail types · -
158
- aventure entities research snippets types list · List the accepted research snippet types · -
159
- aventure sitemap entities urls boundaries get · Entity sitemap URL boundaries · --type-record
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{B as e,H as t,Lt as n}from"../chunks/auth-DD_CIwsI.js";import{t as r,v as i}from"../chunks/oauth-bearer-credential-BY_6si5M.js";import{c as a,i as o,t as s}from"../chunks/openapi-commands-DaOeLWGQ.js";import{r as c}from"../chunks/text-field-B07jcQqx.js";var l=process.argv.slice(2);o(l)&&t(!1),l.includes(`--all-fields`)&&c(!0);try{if(a(l,s)===`optional`)try{await r(),await i()}catch(t){e({component:`aventure-cli`,event:`optional_auth_materialization_failed`,message:`saved credential unavailable; continuing with credential-optional command`,error:t})}await import(`../chunks/aventure-cli-BBg4XH_i.js`)}catch(e){if(!(e instanceof n))throw e;process.stderr.write(`${e.message}\n`),process.exitCode=e.exitCode}export{};
2
+ import{B as e,H as t,Lt as n}from"../chunks/auth-DTt1r8ab.js";import{t as r,v as i}from"../chunks/oauth-bearer-credential-DREFG9pZ.js";import{c as a,i as o,t as s}from"../chunks/openapi-commands-C9JKVw0Q.js";import{r as c}from"../chunks/text-field-jyeJ8k8G.js";var l=process.argv.slice(2);o(l)&&t(!1),l.includes(`--all-fields`)&&c(!0);try{if(a(l,s)===`optional`)try{await r(),await i()}catch(t){e({component:`aventure-cli`,event:`optional_auth_materialization_failed`,message:`saved credential unavailable; continuing with credential-optional command`,error:t})}await import(`../chunks/aventure-cli-ChRJCsYc.js`)}catch(e){if(!(e instanceof n))throw e;process.stderr.write(`${e.message}\n`),process.exitCode=e.exitCode}export{};