@engini/cli 0.4.0 → 0.4.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.
Files changed (3) hide show
  1. package/README.md +56 -0
  2. package/dist/cli.js +6 -6
  3. package/package.json +1 -1
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. (coming soon)
518
+ whoami Show the authenticated user/company.
519
519
 
520
520
  CONNECTIONS
521
- connections list List connections. (coming soon)
522
- connections get <id> Inspect a connection. (coming soon)
523
- connections delete <id> Remove a connection. (coming soon)
524
- connect <app> [--token] Connect a third-party app. (coming soon)
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.4.0" : "0.0.0";
918
+ var VERSION = true ? "0.4.1" : "0.0.0";
919
919
 
920
920
  // src/main.ts
921
921
  function buildProgram() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@engini/cli",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Engini CLI — machine-first command line over the Engini Public API",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",