@cyber-supplies/cysu_windows_arm64 0.0.0-stage → 0.5.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 +126 -2
- package/cysu.exe +0 -0
- package/package.json +20 -3
package/README.md
CHANGED
|
@@ -1,3 +1,127 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Cyber Supplies CLI
|
|
2
2
|
|
|
3
|
-
This
|
|
3
|
+
This is the CLI the agent and user use for interacting with our backend.
|
|
4
|
+
|
|
5
|
+
## Installing
|
|
6
|
+
|
|
7
|
+
On Linux or macOS, run the installer. Node.js (npm and npx) and git are required:
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
curl -fsSL https://cysu-gateway-670100724771.europe-west1.run.app/install.sh | sh
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
On Windows PowerShell, install the CLI with npm and the agent skill from a local checkout:
|
|
14
|
+
|
|
15
|
+
```powershell
|
|
16
|
+
npm install -g @cyber-supplies/cysu
|
|
17
|
+
git clone https://github.com/cyber-supplies/cysu-cli.git
|
|
18
|
+
npx -y skills add .\cysu-cli -g
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Set `CYSU_TOKEN`, run `cysu key init`, then use `cysu debug check` to check the token and gateway. `cysu proxy install` is supported only on Linux.
|
|
22
|
+
|
|
23
|
+
## Build From Source
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
go vet ./... 2>&1 && go build -o cysu ./cmd/cysu 2>&1 && echo "BUILD OK"
|
|
27
|
+
./cysu help
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Releasing
|
|
31
|
+
|
|
32
|
+
The repository secret `NPM_TOKEN` must be a granular npm token with permission to publish to the `@cyber-supplies` scope and bypass 2FA. A new version tag builds Linux, macOS, and Windows binaries for x64 and arm64, checks the generated npm packages on native runners, and publishes the platform packages before `@cyber-supplies/cysu`. npm will not overwrite an existing version.
|
|
33
|
+
|
|
34
|
+
```sh
|
|
35
|
+
git checkout main && git pull
|
|
36
|
+
git tag -a v0.5.0 -m "v0.5.0"
|
|
37
|
+
git push origin v0.5.0
|
|
38
|
+
gh run watch --exit-status
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Environment Variables
|
|
42
|
+
|
|
43
|
+
`CYSU_TOKEN` - Supplies the API token.
|
|
44
|
+
|
|
45
|
+
`CYSU_PROVIDER` - The default provider: `AGENTS`, `CLAUDE`, or `CODEX`.
|
|
46
|
+
|
|
47
|
+
## Usage
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
cysu - CyberSupplies CLI
|
|
51
|
+
|
|
52
|
+
Usage:
|
|
53
|
+
cysu <resource> <action> [flags]
|
|
54
|
+
|
|
55
|
+
Storage:
|
|
56
|
+
cysu storage list [--dir <dir>]
|
|
57
|
+
cysu storage upload --file <local> --path <path>
|
|
58
|
+
cysu storage download --path <path> --output <local>
|
|
59
|
+
cysu storage read --path <path>
|
|
60
|
+
cysu storage delete --path <path>
|
|
61
|
+
|
|
62
|
+
JavaScript:
|
|
63
|
+
cysu javascript add --url <url> [--url <url>...]
|
|
64
|
+
cysu javascript list [--domain <domain>]
|
|
65
|
+
cysu javascript download --domain <domain>
|
|
66
|
+
cysu javascript clear
|
|
67
|
+
|
|
68
|
+
Endpoints:
|
|
69
|
+
cysu endpoints list [--domain <domain>] [--path <path>] [--method <method>] [--full]
|
|
70
|
+
|
|
71
|
+
cysu endpoints list-scope
|
|
72
|
+
|
|
73
|
+
cysu endpoints add-scope --scope <regex>
|
|
74
|
+
cysu endpoints set-scope --scope <regex>
|
|
75
|
+
|
|
76
|
+
Notes:
|
|
77
|
+
cysu notes list [--domain <regex>] [--path <regex>]
|
|
78
|
+
|
|
79
|
+
cysu notes create --domain <domain> [--path <path>] --content <content>
|
|
80
|
+
cysu notes modify --note <note> [--domain <domain>] [--path <path>] [--content <content>]
|
|
81
|
+
cysu notes delete --note <note>
|
|
82
|
+
|
|
83
|
+
Email:
|
|
84
|
+
cysu email accounts
|
|
85
|
+
cysu email list --account <accountsId>
|
|
86
|
+
cysu email read --account <accountId> --email <emailId>
|
|
87
|
+
|
|
88
|
+
Profiles:
|
|
89
|
+
cysu profiles install --scope <global|project> --profile <profile> [--provider <provider>]
|
|
90
|
+
cysu profiles uninstall --scope <global|project> [--provider <provider>]
|
|
91
|
+
|
|
92
|
+
cysu profiles list
|
|
93
|
+
cysu profiles read --profile <profile>
|
|
94
|
+
cysu profiles remove --profile <profile>
|
|
95
|
+
|
|
96
|
+
cysu profiles create --profile <profile> [--example]
|
|
97
|
+
cysu profiles edit [--profile <profile>] [--all]
|
|
98
|
+
cysu profiles save [--profile <profile>] [--all]
|
|
99
|
+
|
|
100
|
+
Accounts:
|
|
101
|
+
cysu accounts list [--location <location>]
|
|
102
|
+
cysu accounts get --account <account>
|
|
103
|
+
cysu accounts set-cookie --account <account> --cookie <cookie>
|
|
104
|
+
|
|
105
|
+
cysu accounts create --username <user> --password <pass> --location <location>
|
|
106
|
+
cysu accounts modify --account <account> [--username <user>] [--password <pass>] [--location <location>]
|
|
107
|
+
cysu accounts remove --account <account>
|
|
108
|
+
|
|
109
|
+
Key:
|
|
110
|
+
cysu key init [--force]
|
|
111
|
+
cysu key path
|
|
112
|
+
cysu key verify
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
## Authentication
|
|
116
|
+
|
|
117
|
+
The recommended way to authenticate is to set an environment variable:
|
|
118
|
+
|
|
119
|
+
```
|
|
120
|
+
export CYSU_TOKEN=sk-xxxx
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
It is also possible to pass the token directly via a CLI flag:
|
|
124
|
+
|
|
125
|
+
```
|
|
126
|
+
cysu debug check --token sk-xxxx
|
|
127
|
+
```
|
package/cysu.exe
ADDED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cyber-supplies/cysu_windows_arm64",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
|
|
3
|
+
"version": "0.5.0",
|
|
4
|
+
"bin": {
|
|
5
|
+
"cysu_windows_arm64": "cysu.exe"
|
|
6
|
+
},
|
|
7
|
+
"os": [
|
|
8
|
+
"win32"
|
|
9
|
+
],
|
|
10
|
+
"cpu": [
|
|
11
|
+
"arm64"
|
|
12
|
+
],
|
|
13
|
+
"files": [
|
|
14
|
+
"README.md"
|
|
15
|
+
],
|
|
16
|
+
"keywords": [],
|
|
17
|
+
"license": "UNLICENSED",
|
|
18
|
+
"description": "Cyber Supplies CLI",
|
|
19
|
+
"repository": {
|
|
20
|
+
"type": "git",
|
|
21
|
+
"url": "https://github.com/cyber-supplies/cysu-cli"
|
|
22
|
+
}
|
|
6
23
|
}
|