@engini/cli 0.4.0 → 0.5.1
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 +21 -0
- package/README.md +56 -0
- package/dist/cli.js +6 -6
- package/package.json +3 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Engini AI Ltd.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# @engini/cli
|
|
2
|
+
|
|
3
|
+
Machine-first command line for the [Engini](https://engini.io) Public API — run tools
|
|
4
|
+
across your connected apps from the terminal or an agent. The `engini` binary is a
|
|
5
|
+
TypeScript port of the Python `engini` CLI, kept in lockstep with it.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install -g @engini/cli
|
|
11
|
+
# or run without installing:
|
|
12
|
+
npx @engini/cli --help
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Quickstart
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
engini login --api-key eng_… # or run interactively on a TTY
|
|
19
|
+
engini applications list --available # discover connector apps
|
|
20
|
+
engini tools list --application monday # discover tools
|
|
21
|
+
engini tools call monday_create_item --args '{}' --connection 3
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Commands
|
|
25
|
+
|
|
26
|
+
```
|
|
27
|
+
engini login | logout | whoami # auth
|
|
28
|
+
engini tools list | get | call # discover & execute tools
|
|
29
|
+
engini applications list | get # browse connector apps
|
|
30
|
+
engini connections list | get # inspect connections
|
|
31
|
+
engini connect # open the connections page in your browser
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Run `engini <command> --help` for details and examples on any command.
|
|
35
|
+
|
|
36
|
+
## Output & exit codes
|
|
37
|
+
|
|
38
|
+
Output adapts to context: human-readable on a TTY, **compact JSON when piped**, pretty JSON
|
|
39
|
+
with `--json`. Every command also accepts:
|
|
40
|
+
|
|
41
|
+
- `--json` — pretty-print JSON
|
|
42
|
+
- `--quiet` — suppress non-essential output
|
|
43
|
+
- `--schema` — print the command's machine-readable arg schema (handy for agents)
|
|
44
|
+
- `--dry-run` — preview a mutating command without executing it
|
|
45
|
+
|
|
46
|
+
Exit codes are a stable contract: `0` success · `1` general error · `2` usage error ·
|
|
47
|
+
`3` authentication error · `4` not found · `5` validation error · `124` timeout.
|
|
48
|
+
|
|
49
|
+
## Configuration
|
|
50
|
+
|
|
51
|
+
Credentials and host config live in `$XDG_CONFIG_HOME/engini/config.toml`
|
|
52
|
+
(`%APPDATA%\engini\config.toml` on Windows), written `0600`. Resolution order is
|
|
53
|
+
**flags > environment > config**; the env vars are `ENGINI_API_KEY` (preferred) or
|
|
54
|
+
`ENGINI_API_TOKEN`, plus `ENGINI_COMPANY_TOKEN`.
|
|
55
|
+
|
|
56
|
+
Source & docs: <https://github.com/engini/engini-sdk>
|
package/dist/cli.js
CHANGED
|
@@ -515,13 +515,13 @@ CORE COMMANDS
|
|
|
515
515
|
ACCOUNT
|
|
516
516
|
login Store an opaque Engini API key (eng_\u2026): --api-key, or interactive on a TTY.
|
|
517
517
|
logout Clear the stored credentials.
|
|
518
|
-
whoami Show the authenticated user/company.
|
|
518
|
+
whoami Show the authenticated user/company.
|
|
519
519
|
|
|
520
520
|
CONNECTIONS
|
|
521
|
-
connections list
|
|
522
|
-
connections get <id>
|
|
523
|
-
connections delete <id>
|
|
524
|
-
connect
|
|
521
|
+
connections list [--application <slug>] List your connections.
|
|
522
|
+
connections get <id> Inspect a connection.
|
|
523
|
+
connections delete <id> Remove a connection. (coming soon)
|
|
524
|
+
connect Open the Engini connections page in your browser.
|
|
525
525
|
|
|
526
526
|
OUTPUT & EXIT CODES
|
|
527
527
|
Output adapts to context: human-readable on a TTY, compact JSON when piped, pretty
|
|
@@ -915,7 +915,7 @@ function registerWhoami(program) {
|
|
|
915
915
|
}
|
|
916
916
|
|
|
917
917
|
// src/version.ts
|
|
918
|
-
var VERSION = true ? "0.
|
|
918
|
+
var VERSION = true ? "0.5.1" : "0.0.0";
|
|
919
919
|
|
|
920
920
|
// src/main.ts
|
|
921
921
|
function buildProgram() {
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@engini/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "Engini CLI — machine-first command line over the Engini Public API",
|
|
5
|
-
"license": "
|
|
5
|
+
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"bin": {
|
|
8
8
|
"engini": "./dist/cli.js"
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"test": "vitest run"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@engini/sdk": "^0.
|
|
24
|
+
"@engini/sdk": "^0.5.1",
|
|
25
25
|
"commander": "^12.1.0",
|
|
26
26
|
"smol-toml": "^1.3.0"
|
|
27
27
|
},
|