raykit 0.0.0-stage → 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 +63 -2
- package/THIRD_PARTY_NOTICES.txt +1854 -0
- package/bin/raykit.mjs +33 -0
- package/lib/platform.mjs +16 -0
- package/native/raykit-darwin-amd64 +0 -0
- package/native/raykit-darwin-arm64 +0 -0
- package/native/raykit-linux-amd64 +0 -0
- package/native/raykit-linux-arm64 +0 -0
- package/native/raykit-windows-amd64.exe +0 -0
- package/package.json +22 -4
package/README.md
CHANGED
|
@@ -1,3 +1,64 @@
|
|
|
1
|
-
#
|
|
1
|
+
# raykit
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
A Go-powered CLI with two command names: **`kit`** and **`raykit`**.
|
|
4
|
+
|
|
5
|
+
```sh
|
|
6
|
+
npm install -g raykit --registry=https://registry.npmjs.org
|
|
7
|
+
kit --help
|
|
8
|
+
raykit version
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Requires Node.js 20 or later. Go is not required. The package includes native
|
|
12
|
+
binaries for macOS arm64/x64, Linux arm64/x64, and Windows x64. Installation
|
|
13
|
+
does not run a download script or fetch binaries from a separate website.
|
|
14
|
+
|
|
15
|
+
## Production SQL
|
|
16
|
+
|
|
17
|
+
Production SQL access requires an authorized company DingTalk account. Install
|
|
18
|
+
Google Chrome or Chromium before starting browser login.
|
|
19
|
+
|
|
20
|
+
```sh
|
|
21
|
+
kit sql prod auth login
|
|
22
|
+
kit sql prod auth status --online
|
|
23
|
+
kit sql prod db list
|
|
24
|
+
kit sql prod query --help
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Use `query --db <instance-id> --schema <schema-name> --file query.sql` to run a
|
|
28
|
+
single read-only statement. Production commands do not support writes.
|
|
29
|
+
The SQL service is organization-specific; installing this public package does
|
|
30
|
+
not grant an account or database permissions.
|
|
31
|
+
|
|
32
|
+
## Test MySQL
|
|
33
|
+
|
|
34
|
+
Test commands connect to the configured organization's test MySQL host.
|
|
35
|
+
Use your authorized test database account and supply the password through stdin:
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
kit sql test config init --user YOUR_USER --password-stdin < password.txt
|
|
39
|
+
kit sql test ping
|
|
40
|
+
kit sql test db list
|
|
41
|
+
kit sql test query --db YOUR_DATABASE --file query.sql
|
|
42
|
+
kit sql test exec --db YOUR_DATABASE --file change.sql --dry-run
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Removing `--dry-run` submits and commits the modification. Both SQL inputs accept
|
|
46
|
+
`--sql` or `--file`; use `--file -` to read stdin. Results default to JSON;
|
|
47
|
+
`--output table` displays successful query rows as a table.
|
|
48
|
+
|
|
49
|
+
## Local credentials
|
|
50
|
+
|
|
51
|
+
Each user authenticates independently. Cookies and passwords are stored in that
|
|
52
|
+
user's configuration directory, with private file permissions on POSIX systems.
|
|
53
|
+
They are not part of this npm package. Production sessions have a maximum local
|
|
54
|
+
lifetime of 12 hours. `--config-dir` or `RAYKIT_CONFIG_DIR` selects an independent
|
|
55
|
+
configuration directory.
|
|
56
|
+
|
|
57
|
+
```sh
|
|
58
|
+
kit sql prod auth logout
|
|
59
|
+
npm install -g raykit@latest --registry=https://registry.npmjs.org
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
Source code licensing has not been granted for Raykit (`UNLICENSED`). Licenses
|
|
63
|
+
and source references for bundled third-party components are provided in
|
|
64
|
+
`THIRD_PARTY_NOTICES.txt`.
|