@tryterra/cli-darwin-x64 0.2.0 → 0.3.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 +49 -4
- package/bin/terra +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
# Terra CLI
|
|
2
2
|
|
|
3
|
-
 [![npm]](https://www.npmjs.com/package/@tryterra/cli) 
|
|
4
4
|
|
|
5
|
+
[Homebrew]: https://img.shields.io/badge/Homebrew-tryterra%2Ftap-orange?style=flat-square
|
|
5
6
|
[npm]: https://img.shields.io/npm/v/@tryterra/cli.svg?style=flat-square
|
|
6
7
|
|
|
7
8
|
Set up and debug your Terra integration from the terminal. Create environments
|
|
@@ -9,9 +10,8 @@ and credentials, turn providers on and off, see which users have connected, and
|
|
|
9
10
|
replay the webhook events your integration received. `terra data-api` reaches
|
|
10
11
|
the data API too, for the wearable data itself and the user-linking flow.
|
|
11
12
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
agent every command in a single call.
|
|
13
|
+
Your coding agent can drive it too, so you can ask for the result instead of
|
|
14
|
+
looking up the command. See [Let your agent drive it](#let-your-agent-drive-it).
|
|
15
15
|
|
|
16
16
|
## Get started
|
|
17
17
|
|
|
@@ -55,6 +55,51 @@ agent every command in a single call.
|
|
|
55
55
|
Every command and flag as one page. Name a group to narrow it:
|
|
56
56
|
`terra reference billing`.
|
|
57
57
|
|
|
58
|
+
## Let your agent drive it
|
|
59
|
+
|
|
60
|
+
Terra configuration usually means clicking around the dashboard, which your
|
|
61
|
+
agent cannot do. Give it the CLI instead. Paste this into Claude Code, Cursor,
|
|
62
|
+
Codex or whatever you use:
|
|
63
|
+
|
|
64
|
+
```text
|
|
65
|
+
Set up the Terra API CLI for this project. Install it with
|
|
66
|
+
"brew install tryterra/tap/terra" on macOS, or "npm install -g @tryterra/cli"
|
|
67
|
+
otherwise. Then run "terra agent setup" to install Terra's agent skills, read
|
|
68
|
+
the terra-cli skill it writes, and follow its getting-started section to tell
|
|
69
|
+
me what my account is configured to do.
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
That installs the skills into whichever agent is asking, so your agent then
|
|
73
|
+
knows the commands, the exit codes, and the traps worth avoiding. In a later
|
|
74
|
+
session, once it has picked the skills up, this is enough:
|
|
75
|
+
|
|
76
|
+
```text
|
|
77
|
+
Get started with Terra API.
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
It will check that the CLI is authenticated, find your environments, report
|
|
81
|
+
which wearable providers are on and where webhooks are going, and name the gap
|
|
82
|
+
that matters. Then ask for whatever you need:
|
|
83
|
+
|
|
84
|
+
```text
|
|
85
|
+
Which wearable providers are enabled in my dev environment, and where are its
|
|
86
|
+
webhooks going?
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
```text
|
|
90
|
+
A sleep webhook never arrived for user 8f2a1c. Find out what Terra actually
|
|
91
|
+
delivered, and resend it.
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
```text
|
|
95
|
+
Set up a staging environment with Garmin and Fitbit turned on, and point its
|
|
96
|
+
webhooks at my tunnel.
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
Asking questions is safe: reading changes nothing, credentials stay hidden
|
|
100
|
+
unless someone passes `--reveal`, and anything destructive refuses to run
|
|
101
|
+
unattended rather than guessing that you meant it.
|
|
102
|
+
|
|
58
103
|
## Before you change anything
|
|
59
104
|
|
|
60
105
|
Every command takes `--dry-run`, which prints the request that would be sent and
|
package/bin/terra
CHANGED
|
Binary file
|