@getstackrun/cli 2.0.2 → 2.1.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/LICENSE +202 -0
- package/README.md +332 -42
- package/dist/agent.js +11 -11
- package/dist/agent.js.map +1 -1
- package/dist/auth.d.ts +1 -0
- package/dist/auth.d.ts.map +1 -1
- package/dist/auth.js +19 -16
- package/dist/auth.js.map +1 -1
- package/dist/commands.d.ts +49 -0
- package/dist/commands.d.ts.map +1 -0
- package/dist/commands.js +681 -0
- package/dist/commands.js.map +1 -0
- package/dist/evidence-packs.js +1 -1
- package/dist/evidence-packs.js.map +1 -1
- package/dist/format.d.ts.map +1 -1
- package/dist/format.js +1 -0
- package/dist/format.js.map +1 -1
- package/dist/help.d.ts +17 -0
- package/dist/help.d.ts.map +1 -0
- package/dist/help.js +137 -0
- package/dist/help.js.map +1 -0
- package/dist/identity.js +2 -2
- package/dist/identity.js.map +1 -1
- package/dist/inbound-webhooks.d.ts.map +1 -1
- package/dist/inbound-webhooks.js +4 -3
- package/dist/inbound-webhooks.js.map +1 -1
- package/dist/index.js +8 -226
- package/dist/index.js.map +1 -1
- package/dist/intents.d.ts.map +1 -1
- package/dist/intents.js +1 -2
- package/dist/intents.js.map +1 -1
- package/dist/llm.d.ts.map +1 -1
- package/dist/llm.js +9 -8
- package/dist/llm.js.map +1 -1
- package/dist/me.js +1 -1
- package/dist/me.js.map +1 -1
- package/dist/missions.d.ts.map +1 -1
- package/dist/missions.js +1 -2
- package/dist/missions.js.map +1 -1
- package/dist/partner.d.ts.map +1 -1
- package/dist/partner.js +6 -5
- package/dist/partner.js.map +1 -1
- package/dist/proxy-serve.js +2 -2
- package/dist/proxy-serve.js.map +1 -1
- package/dist/quickstart.js +1 -1
- package/dist/quickstart.js.map +1 -1
- package/dist/services.js +3 -3
- package/dist/services.js.map +1 -1
- package/dist/usage.d.ts.map +1 -1
- package/dist/usage.js +1 -0
- package/dist/usage.js.map +1 -1
- package/package.json +3 -2
package/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
package/README.md
CHANGED
|
@@ -53,40 +53,338 @@ it later.
|
|
|
53
53
|
|
|
54
54
|
## Commands
|
|
55
55
|
|
|
56
|
-
`npx @getstackrun/cli --help` prints
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
56
|
+
`npx @getstackrun/cli --help` prints every command. The reference below is
|
|
57
|
+
generated from the same registry as `--help` (`src/commands.ts`), so the two
|
|
58
|
+
cannot drift. Prefix each command with `npx @getstackrun/cli`.
|
|
59
|
+
|
|
60
|
+
<!-- commands:begin (generated from src/commands.ts by help.ts; do not edit by hand) -->
|
|
61
|
+
|
|
62
|
+
#### Get started
|
|
63
|
+
|
|
64
|
+
| Command | What it does |
|
|
65
|
+
| --- | --- |
|
|
66
|
+
| `quickstart` | Guided setup: register a safe bot, issue a passport, make one governed LLM call, print the audit row |
|
|
67
|
+
| `proxy serve --agent <name\|id>` | Run a localhost LLM gateway. Point any tool's baseURL at it (dummy key ok); STACK injects the real key. No key on the box.<br>`[--port 8788] [--provider anthropic\|openai\|openrouter] [--mission-ttl 3600]` |
|
|
68
|
+
| `setup [--clients claude,codex,cursor]` | Add STACK to one or several installed MCP clients |
|
|
69
|
+
| `register` | Print signup and MCP install instructions |
|
|
70
|
+
|
|
71
|
+
#### Account
|
|
72
|
+
|
|
73
|
+
| Command | What it does |
|
|
74
|
+
| --- | --- |
|
|
75
|
+
| `auth login` | Sign in via browser (Device flow, RFC 8628) |
|
|
76
|
+
| `auth status` | Show current sign-in state |
|
|
77
|
+
| `auth logout` | Revoke session and clear local credentials |
|
|
78
|
+
| `me` | Print your operator profile |
|
|
79
|
+
|
|
80
|
+
#### Usage & billing
|
|
81
|
+
|
|
82
|
+
| Command | What it does |
|
|
83
|
+
| --- | --- |
|
|
84
|
+
| `usage` | Consumption vs plan + spend + earnings (billing period) |
|
|
85
|
+
| `usage --period <p>` | Scope to a window: today \| yesterday \| 7d \| 30d \| month \| last-month \| billing (default) |
|
|
86
|
+
| `usage --since <iso> --until <iso>` | Arbitrary range (ISO-8601 or unix-ms)<br>``scan usage` and `llm usage` drill into those meters` |
|
|
87
|
+
|
|
88
|
+
#### Agents
|
|
89
|
+
|
|
90
|
+
| Command | What it does |
|
|
91
|
+
| --- | --- |
|
|
92
|
+
| `agent list` | List all your agents |
|
|
93
|
+
| `agent show <name\|id>` | Detail on one agent |
|
|
94
|
+
| `agent register <name>` | Register a new agent<br>`[--profile proxied-llm-bot] <- safe default for a bot that just runs`<br>`[--key-mode stack_managed\|customer_managed\|co_signed]`<br>`[--llm-inject-system-prompt true\|false] [--llm-redact-pii true\|false]` |
|
|
95
|
+
| `agent update <name\|id>` | Update LLM-gateway toggles (both default true / fail-closed)<br>`[--llm-inject-system-prompt true\|false]`<br>`[--llm-redact-pii true\|false] <- false sends user PII to the provider unredacted` |
|
|
96
|
+
| `agent enroll <name\|id>` | Enroll a customer-managed keypair (advanced; stack_managed agents and 'proxy serve' auto-enroll, no manual step) |
|
|
97
|
+
| `agent rotate <name\|id>` | Rotate keypair (admin only) |
|
|
98
|
+
| `agent sign-claim <name\|id>` | Sign a claim envelope locally (customer_managed mode)<br>`--envelope <file.json> [--out <file>]` |
|
|
99
|
+
| `agent suspend <name\|id>` | Suspend an agent |
|
|
100
|
+
| `agent unsuspend <name\|id>` | Re-activate a suspended agent |
|
|
101
|
+
| `agent unblock <name\|id>` | Clear an auto-blocked agent so it can issue new passports |
|
|
102
|
+
| `agent delete <name\|id>` | Delete an agent |
|
|
103
|
+
|
|
104
|
+
#### Passports
|
|
105
|
+
|
|
106
|
+
| Command | What it does |
|
|
107
|
+
| --- | --- |
|
|
108
|
+
| `passport list` | List active passports |
|
|
109
|
+
| `passport issue --agent <name\|id> --mission <ms_id> --intent "<summary>"` | Issue a passport for an agent under a Mission<br>`[--services slack,stripe] [--ttl <seconds>]`<br>`or: --from-file issue.json [--mission <ms_id>]` |
|
|
110
|
+
| `passport delegate --agent <child>` | Delegate a passport to a child agent (reads the parent token securely)<br>`[--services a,b] [--ttl 900]` |
|
|
111
|
+
| `passport verify` | Verify a passport JWT from stdin |
|
|
112
|
+
| `passport refresh <jti>` | Refresh a passport JWT from stdin |
|
|
113
|
+
| `passport revoke <jti>` | Revoke one passport |
|
|
114
|
+
| `passport revoke-agent <id>` | Revoke all passports for an agent |
|
|
115
|
+
| `passport revoke-session <id>` | Revoke all passports for a session |
|
|
116
|
+
| `passport revoke-all --yes` | Revoke every active passport |
|
|
117
|
+
| `passport report <jti>` | Show the report for one passport |
|
|
118
|
+
|
|
119
|
+
#### Missions
|
|
120
|
+
|
|
121
|
+
| Command | What it does |
|
|
122
|
+
| --- | --- |
|
|
123
|
+
| `mission start --agent <name\|id> --intent-summary "..."` | Open a Mission for an agent and issue its Passport<br>`[--services a,b] [--expires-in N] [--ttl N]` |
|
|
124
|
+
| `mission start --file <path>` | Start a Mission under a fleet policy |
|
|
125
|
+
| `mission open --intent-summary "..."` | Open a Mission before issuing its Passport<br>`[--agent <name\|id>] [--services a,b] [--expires-in N]` |
|
|
126
|
+
| `mission open --file <path>` | Open a Mission from a request file |
|
|
127
|
+
| `mission renew <id>` | Renew the Passport for an existing Mission |
|
|
128
|
+
| `mission list` | List Missions |
|
|
129
|
+
| `mission get <id>` | Show one Mission |
|
|
130
|
+
| `mission complete <id>` | Complete a Mission<br>`[--output-json <path>]` |
|
|
131
|
+
| `mission revoke <id> --reason <r>` | Revoke a Mission with reason adversarial or operator_initiated_clean<br>`[--notes "..."]` |
|
|
132
|
+
| `mission replay <id>` | Replay a Mission |
|
|
133
|
+
| `mission dossiers <id>` | List a Mission's dossiers |
|
|
134
|
+
| `mission dossier <id> --narrative "..."` | Write a dossier for a Mission<br>`[--lessons "..."] [--classification false_positive\|true_positive_handled\|true_positive_escalated\|inconclusive]` |
|
|
135
|
+
|
|
136
|
+
#### Fleets
|
|
137
|
+
|
|
138
|
+
| Command | What it does |
|
|
139
|
+
| --- | --- |
|
|
140
|
+
| `fleet list [--page <number>] [--limit <number>]` | List fleet policies |
|
|
141
|
+
| `fleet get <id>` | Read one fleet policy and its shared usage |
|
|
142
|
+
| `fleet membership <agent>` | Read the fleet policy an agent belongs to |
|
|
143
|
+
| `fleet activate --file <path> --idempotency-key <key>` | Request approval for a fleet policy |
|
|
144
|
+
| `fleet revise <id> --file <path> --expected-revision <number> --idempotency-key <key>` | Request approval for a policy change |
|
|
145
|
+
| `fleet revoke <id>` | Revoke a fleet policy |
|
|
146
|
+
| `fleet members <id> [--page <number>] [--limit <number>]` | List the agents in a fleet policy |
|
|
147
|
+
| `fleet revoke-member <id> <agent>` | Revoke one agent's fleet membership |
|
|
148
|
+
| `fleet enrollment-challenge <id>` | Request an enrollment challenge |
|
|
149
|
+
| `fleet enroll <id> --file <path>` | Enroll with a public key and signed challenge |
|
|
150
|
+
| `fleet enroll-local <id> --name <name> --idempotency-key <key>` | Create and store an agent key on this machine, then enroll it |
|
|
151
|
+
| `fleet enroll-workload-local <id> --name <name> --idempotency-key <key>` | Enroll using a trusted workload token from STACK_WORKLOAD_TOKEN |
|
|
152
|
+
| `fleet session [--fleet-policy-id <id>]` | Create a short-lived MCP session |
|
|
153
|
+
|
|
154
|
+
#### Intents
|
|
155
|
+
|
|
156
|
+
| Command | What it does |
|
|
157
|
+
| --- | --- |
|
|
158
|
+
| `intents simulate --intent-json <path>` | Dry-run an Intent |
|
|
159
|
+
| `intents submit --intent-json <path>` | Submit for approval |
|
|
160
|
+
| `intents submit-and-wait --intent-json <path>` | Submit for approval and wait for the decision<br>`[--timeout 60] [--interval 1] [--expires 900] [--skip-simulation]` |
|
|
161
|
+
| `intents pending` | List pending approvals |
|
|
162
|
+
| `intents get <approval-id>` | Show one approval row (any status) |
|
|
163
|
+
| `intents approve <approval-id> [--notes "..."]` | Approve an Intent |
|
|
164
|
+
| `intents reject <approval-id> [--notes "..."] [--block-future]` | Reject an Intent |
|
|
165
|
+
|
|
166
|
+
#### Authority
|
|
167
|
+
|
|
168
|
+
| Command | What it does |
|
|
169
|
+
| --- | --- |
|
|
170
|
+
| `authority request --file <request.json> --idempotency-key <key>` | Submit an authority request for approval |
|
|
171
|
+
| `authority status <request-id>` | Show an authority request and its decision |
|
|
172
|
+
|
|
173
|
+
#### Evidence packs
|
|
174
|
+
|
|
175
|
+
| Command | What it does |
|
|
176
|
+
| --- | --- |
|
|
177
|
+
| `evidence-pack export --scope <kind>:<ref>` | Export a signed evidence pack for a mission, session, incident or period<br>`[--supersedes pck_*] [--output pack.json] [--air-gap]` |
|
|
178
|
+
| `evidence-pack list [--scope <kind>:<ref>]` | List evidence packs |
|
|
179
|
+
| `evidence-pack get <pack-id>` | Show one evidence pack |
|
|
180
|
+
|
|
181
|
+
#### Services
|
|
182
|
+
|
|
183
|
+
| Command | What it does |
|
|
184
|
+
| --- | --- |
|
|
185
|
+
| `service catalog` | Browse available service catalog |
|
|
186
|
+
| `service templates` | List credential templates |
|
|
187
|
+
| `service connections` | List your connected services |
|
|
188
|
+
| `service show <connection-id>` | Detail on one connection |
|
|
189
|
+
| `service verify <connection-id>` | Re-test connection health |
|
|
190
|
+
| `service disconnect <id>` | Disconnect a service |
|
|
191
|
+
| `service credential <provider>` | Retrieve raw credential (operator only) |
|
|
192
|
+
| `service connect-custom --stdin --name <name>` | Connect a custom service; the secret is read from stdin<br>`[--scopes a,b] or: --from-file <config.json>` |
|
|
193
|
+
| `service grant --agent <id> --connection <id> --scopes <a,b>` | Grant an agent scoped access to a connection<br>`[--allow-data-from <service,...>] Omit for no cross-service flow` |
|
|
194
|
+
| `service revoke-agent <agent-id>` | Revoke an agent's service grants |
|
|
195
|
+
| `service permissions <agent-id>` | Show an agent's service permissions |
|
|
196
|
+
|
|
197
|
+
#### Drop-offs
|
|
198
|
+
|
|
199
|
+
| Command | What it does |
|
|
200
|
+
| --- | --- |
|
|
201
|
+
| `dropoff list` | List your drop-offs |
|
|
202
|
+
| `dropoff show <id>` | Detail on one drop-off |
|
|
203
|
+
| `dropoff create --from <a> --to <b> --schema <f>` | Create a drop-off between two agents<br>`[--ttl <seconds>] [--on-expire notify\|retry\|fail]` |
|
|
204
|
+
| `dropoff deposit <id> --agent <a> --payload <f>` | Deposit a payload into a drop-off<br>`[--passport-jti <jti>] [--mission <id>]` |
|
|
205
|
+
| `dropoff collect <id> --agent <a>` | Collect a payload from a drop-off |
|
|
206
|
+
| `dropoff expire <id>` | Force-expire a drop-off |
|
|
207
|
+
|
|
208
|
+
#### Skills
|
|
209
|
+
|
|
210
|
+
| Command | What it does |
|
|
211
|
+
| --- | --- |
|
|
212
|
+
| `skill list [--q "..."]` | Browse the skills marketplace |
|
|
213
|
+
| `skill mine` | List your own published skills |
|
|
214
|
+
| `skill show <id>` | Detail on one skill |
|
|
215
|
+
| `skill publish --file <skill.json>` | Publish a skill from a JSON spec |
|
|
216
|
+
| `skill invoke <id> --agent <a> --input '{...}'` | Invoke a skill |
|
|
217
|
+
| `skill suspend <id>` | Suspend a published skill |
|
|
218
|
+
| `skill activate <id>` | Re-activate a suspended skill |
|
|
219
|
+
| `skill allow <id> --agent <a>` | Allow an agent to use a skill |
|
|
220
|
+
| `skill disallow <id> --agent <a>` | Stop an agent from using a skill |
|
|
221
|
+
| `skill favorites` | List your favourite skills |
|
|
222
|
+
| `skill invocations` | List pending skill invocations |
|
|
223
|
+
| `skill check-invocation <id>` | Show one skill invocation |
|
|
224
|
+
| `skill complete <id> --output-file <result.json>` | Complete a skill invocation with its output |
|
|
225
|
+
| `skill check-trust <skill-id>` | Check the trust level of a skill |
|
|
226
|
+
| `skill requests` | List skill requests |
|
|
227
|
+
| `skill post-request "<desc>"` | Post a new skill request |
|
|
228
|
+
| `skill matches <request-id>` | Find skills matching a request<br>`or: --description "<what you want to do>"` |
|
|
229
|
+
| `skill suggest <request-id>` | Suggest a skill composition for a request<br>`or: --description "<what you want to do>"` |
|
|
230
|
+
| `skill pending-reviews` | List skills awaiting review (platform staff) |
|
|
231
|
+
| `skill approve <skill-id>` | Approve a skill (platform staff) |
|
|
232
|
+
| `skill reject <skill-id> [--reason "..."]` | Reject a skill (platform staff) |
|
|
233
|
+
|
|
234
|
+
#### Scan
|
|
235
|
+
|
|
236
|
+
| Command | What it does |
|
|
237
|
+
| --- | --- |
|
|
238
|
+
| `scan "<content>" \| --file <path>` | Scan content for prompt injection |
|
|
239
|
+
| `scan usage` | This month's scan usage vs tier |
|
|
240
|
+
|
|
241
|
+
#### LLM
|
|
242
|
+
|
|
243
|
+
| Command | What it does |
|
|
244
|
+
| --- | --- |
|
|
245
|
+
| `llm usage list` | List per-call LLM usage records (cursor-paginated)<br>`[--limit] [--cursor] [--provider] [--passport-jti] [--mission-id] [--agent-id] [--since] [--until]` |
|
|
246
|
+
| `llm usage summary` | Group-by aggregate (provider [+ model] + day)<br>`same filters as 'list', plus [--no-group-by-model]` |
|
|
247
|
+
| `llm anthropic messages '<body-json>' [--stream]` | Governed Anthropic call; reads the passport token from stdin or a hidden prompt |
|
|
248
|
+
| `llm openai chat-completions '<body-json>' [--stream]` | Governed OpenAI call; reads the passport token from stdin or a hidden prompt |
|
|
249
|
+
| `llm openrouter chat-completions '<body-json>' [--stream]` | Governed OpenRouter call; reads the passport token from stdin or a hidden prompt |
|
|
250
|
+
|
|
251
|
+
#### Identity
|
|
252
|
+
|
|
253
|
+
| Command | What it does |
|
|
254
|
+
| --- | --- |
|
|
255
|
+
| `identity settings` | Get operator identity settings |
|
|
256
|
+
| `identity update-settings` | Update operator identity settings<br>`[--inheritance auto\|opt_in] [--ttl 30d\|90d\|180d\|1y] [--auto-revoke true\|false]` |
|
|
257
|
+
| `identity providers` | List identity-verification providers |
|
|
258
|
+
| `identity claims` | List your verified identity claims |
|
|
259
|
+
| `identity revoke-claim <id>` | Revoke an identity claim |
|
|
260
|
+
| `identity oidc <status\|create\|update\|test\|delete>` | Manage the operator OIDC identity configuration |
|
|
261
|
+
| `identity spiffe <list\|get\|create\|update\|delete>` | Manage SPIFFE trust domains |
|
|
262
|
+
| `identity wimse <list\|get\|create\|update\|delete>` | Manage WIMSE issuers |
|
|
263
|
+
| `identity requirements <list\|create\|replace\|clear\|delete> <service-id>` | Manage the identity requirements of a service |
|
|
264
|
+
|
|
265
|
+
#### Audit
|
|
266
|
+
|
|
267
|
+
| Command | What it does |
|
|
268
|
+
| --- | --- |
|
|
269
|
+
| `audit list [--limit N] [--agent <id>]` | List audit entries |
|
|
270
|
+
| `audit export` | Export the audit log<br>`[--format json\|ndjson\|csv] [--from ...] [--to ...] [--out <file>]` |
|
|
271
|
+
| `audit chain-head` | Current audit-chain head hash |
|
|
272
|
+
| `audit verify-chain` | Verify your audit chain integrity |
|
|
273
|
+
|
|
274
|
+
#### PII redaction
|
|
275
|
+
|
|
276
|
+
| Command | What it does |
|
|
277
|
+
| --- | --- |
|
|
278
|
+
| `pii show` | Threshold + country scope in force |
|
|
279
|
+
| `pii set --countries SE,NO,DK` | Only run these countries' schemes |
|
|
280
|
+
| `pii set --threshold 0.2` | Confidence to redact (higher redacts less) |
|
|
281
|
+
| `pii reset` | Back to built-in defaults |
|
|
282
|
+
|
|
283
|
+
#### Detectors
|
|
284
|
+
|
|
285
|
+
| Command | What it does |
|
|
286
|
+
| --- | --- |
|
|
287
|
+
| `detector list` | List detectors and their configuration |
|
|
288
|
+
| `detector show <detector-key>` | Show one detector configuration |
|
|
289
|
+
| `detector enable <detector-key>` | Enable a detector |
|
|
290
|
+
| `detector disable <detector-key>` | Disable a detector |
|
|
291
|
+
| `detector configure <detector-key> --from-file <config.json>` | Replace a detector configuration |
|
|
292
|
+
| `detector reset <detector-key>` | Back to the built-in defaults |
|
|
293
|
+
|
|
294
|
+
#### Security events
|
|
295
|
+
|
|
296
|
+
| Command | What it does |
|
|
297
|
+
| --- | --- |
|
|
298
|
+
| `event list [--agent <id>]` | List security events |
|
|
299
|
+
| `event show <id>` | Detail on one security event |
|
|
300
|
+
| `event resolve <id>` | Mark a security event resolved |
|
|
301
|
+
|
|
302
|
+
#### Notifications
|
|
303
|
+
|
|
304
|
+
| Command | What it does |
|
|
305
|
+
| --- | --- |
|
|
306
|
+
| `notifications methods list` | List delivery methods |
|
|
307
|
+
| `notifications methods add --kind <k> --destination <addr>` | Add a delivery method (kind: email, sms or webhook) |
|
|
308
|
+
| `notifications methods test <id>` | Send a test notification |
|
|
309
|
+
| `notifications methods send-code <id>` | Send a verification code |
|
|
310
|
+
| `notifications methods verify <id> --code <code>` | Verify a delivery method with its code |
|
|
311
|
+
| `notifications methods delete <id>` | Delete a delivery method |
|
|
312
|
+
| `notifications rules list` | List notification rules |
|
|
313
|
+
| `notifications rules create --method <id> --events <e1,e2>` | Create a notification rule<br>`or: --methods <id1,id2> [--min-severity info\|warning\|critical]` |
|
|
314
|
+
| `notifications rules update <id>` | Update a notification rule<br>`[--events e1,e2] [--min-severity info\|warning\|critical] [--methods id1,id2]` |
|
|
315
|
+
| `notifications rules delete <id>` | Delete a notification rule |
|
|
316
|
+
|
|
317
|
+
#### Inbound webhooks
|
|
318
|
+
|
|
319
|
+
| Command | What it does |
|
|
320
|
+
| --- | --- |
|
|
321
|
+
| `inbound-webhook create --provider <agentmail\|generic> --agent <agt_*>` | Create an inbound webhook (returns the URL and the plaintext secret)<br>`[--forward-url <https://...>] log-only if omitted` |
|
|
322
|
+
| `inbound-webhook list` | List all inbound webhooks |
|
|
323
|
+
| `inbound-webhook get --id <iwh_*>` | Show one inbound webhook |
|
|
324
|
+
| `inbound-webhook revoke --id <iwh_*>` | Revoke an inbound webhook |
|
|
325
|
+
|
|
326
|
+
#### Partners
|
|
327
|
+
|
|
328
|
+
| Command | What it does |
|
|
329
|
+
| --- | --- |
|
|
330
|
+
| `partner connect --email <email>` | Create or request a user-owned partner grant<br>`[--external-customer-id <id>] [--scopes a,b] [--providers a,b]` |
|
|
331
|
+
| `partner connections <list\|get\|revoke\|rotate> [<grant-id>]` | List, get, revoke or rotate partner-held grants |
|
|
332
|
+
| `partner grants <list\|revoke> [<grant-id>]` | List or revoke grants held on your own account |
|
|
333
|
+
| `partner tenant create` | Create a white-label tenant (draws from your allowance)<br>`[--external-customer-id <id>]` |
|
|
334
|
+
| `partner tenant list` | List your tenants with month-to-date usage |
|
|
335
|
+
| `partner tenant get <id>` | Show one tenant |
|
|
336
|
+
| `partner tenant revoke <id>` | Revoke a tenant, its webhooks and its passports |
|
|
337
|
+
| `partner tenant webhook --tenant <op_*> --provider <p> --agent <agt_*>` | Provision an inbound webhook under a tenant<br>`[--forward-url <https://...>]` |
|
|
338
|
+
| `partner tenant issue-passport --tenant <op_*> --agent <agt_*> --mission <ms_*>` | Issue a passport for an agent under a tenant<br>`[--intent "<summary>"] [--services a,b] [--ttl 900]` |
|
|
339
|
+
|
|
340
|
+
#### Team
|
|
341
|
+
|
|
342
|
+
| Command | What it does |
|
|
343
|
+
| --- | --- |
|
|
344
|
+
| `team list` | List team members |
|
|
345
|
+
| `team invite <email> --name "<full name>"` | Invite a team member<br>`[--role admin\|standard\|readonly] [--allowed-connections id1,id2]` |
|
|
346
|
+
| `team update <id>` | Change a team member<br>`[--role admin\|standard\|readonly] [--allowed-connections id1,id2] [--status ...]` |
|
|
347
|
+
| `team revoke <id>` | Remove a team member |
|
|
348
|
+
|
|
349
|
+
#### Monitor
|
|
350
|
+
|
|
351
|
+
| Command | What it does |
|
|
352
|
+
| --- | --- |
|
|
353
|
+
| `monitor` | Replay a scripted run (same as --demo) |
|
|
354
|
+
| `monitor --demo [--loop]` | Replay a real-shape mission (no auth needed) |
|
|
355
|
+
| `monitor --follow` | Tail your own audit log |
|
|
356
|
+
| `monitor --sandbox` | Tail the public sandbox feed |
|
|
357
|
+
| `monitor --challenge` | Tail the public email agent feed |
|
|
358
|
+
|
|
359
|
+
#### Global flags
|
|
360
|
+
|
|
361
|
+
| Name | What it does |
|
|
362
|
+
| --- | --- |
|
|
363
|
+
| `--json` | Emit raw JSON instead of formatted tables. |
|
|
364
|
+
|
|
365
|
+
#### Environment
|
|
366
|
+
|
|
367
|
+
| Name | What it does |
|
|
368
|
+
| --- | --- |
|
|
369
|
+
| `STACK_OAUTH_SCOPE` | Override the OAuth scope requested at `auth login`. Default covers routine runtime and inspection flows; account, secret, billing and security administration remain explicit opt-ins. Set an exact subset (e.g. "passports:read agents:read services:read audit:read") for monitoring-only sign-ins. |
|
|
370
|
+
| `STACK_API_KEY` | Legacy sk_live_… key. Bypasses `auth login`; for CI and headless environments without a browser. |
|
|
371
|
+
| `STACK_API_URL` | Point the CLI at a non-prod API (self-host / dev). Defaults to https://api.getstack.run. |
|
|
372
|
+
|
|
373
|
+
#### monitor flags
|
|
374
|
+
|
|
375
|
+
| Name | What it does |
|
|
376
|
+
| --- | --- |
|
|
377
|
+
| `--demo` | Replay a real-shape mission (no auth needed). Same row format as --follow, just scripted. |
|
|
378
|
+
| `--follow` | Tail your operator's actual audit_log. Polls every 2s. Uses your `auth login` session (or STACK_API_KEY). |
|
|
379
|
+
| `--loop` | Loop the demo until Ctrl-C (default is one run). |
|
|
380
|
+
| `--agent <agent_id>` | (--follow) Only show entries for this agent. |
|
|
381
|
+
| `--jti <passport_jti>` | (--follow) Only show entries for this passport. |
|
|
382
|
+
| `--sandbox` | Tail the public sandbox feed at https://api.getstack.run/v1/public/events. No API key needed; implies a live tail (no --follow required). Same stream visitors see on getstack.run. |
|
|
383
|
+
| `--challenge` | Tail the public email agent at agent@getstack.run (https://api.getstack.run/v1/public/events?feed=challenge). No API key needed; implies a live tail. Same stream the board on getstack.run/attack renders. |
|
|
384
|
+
|
|
385
|
+
<!-- commands:end -->
|
|
386
|
+
|
|
387
|
+
### Monitor examples
|
|
90
388
|
|
|
91
389
|
```sh
|
|
92
390
|
# Tail one agent
|
|
@@ -102,14 +400,6 @@ npx @getstackrun/cli monitor --follow --sandbox
|
|
|
102
400
|
STACK_API_KEY=sk_live_… npx @getstackrun/cli monitor --follow
|
|
103
401
|
```
|
|
104
402
|
|
|
105
|
-
### `register`
|
|
106
|
-
|
|
107
|
-
```
|
|
108
|
-
npx @getstackrun/cli register
|
|
109
|
-
```
|
|
110
|
-
|
|
111
|
-
Prints signup + MCP-install instructions for connecting STACK to Claude Code.
|
|
112
|
-
|
|
113
403
|
## Authentication
|
|
114
404
|
|
|
115
405
|
`auth login` runs the OAuth 2.1 Device Authorization Grant against
|