@hyperdrive.bot/sign-admin-cli 0.1.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 +37 -0
- package/bin/run.js +5 -0
- package/package.json +65 -0
package/README.md
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Sign Admin CLI
|
|
2
|
+
|
|
3
|
+
Platform administration CLI for Sign environments. Connects to the admin API endpoints using IaC Cognito authentication.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install -g @hyperdrive.bot/sign-admin-cli
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Quickstart
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
# 1. Initialize with a profile
|
|
15
|
+
sign-admin init --profile vixting-dev
|
|
16
|
+
|
|
17
|
+
# 2. Authenticate
|
|
18
|
+
sign-admin login
|
|
19
|
+
|
|
20
|
+
# 3. Discover available commands
|
|
21
|
+
sign-admin modules list
|
|
22
|
+
|
|
23
|
+
# 4. Run admin commands
|
|
24
|
+
sign-admin tenants list-tenants
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Available Profiles
|
|
28
|
+
|
|
29
|
+
| Profile | Region | Environment |
|
|
30
|
+
|---------|--------|-------------|
|
|
31
|
+
| vixting-dev | us-east-1 | Sign development (vixting) |
|
|
32
|
+
| vixting-live | sa-east-1 | Sign production (vixting) |
|
|
33
|
+
|
|
34
|
+
## Prerequisites
|
|
35
|
+
|
|
36
|
+
- Node.js >= 18
|
|
37
|
+
- Account in the IaC Cognito User Pool for the target environment
|
package/bin/run.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@hyperdrive.bot/sign-admin-cli",
|
|
3
|
+
"description": "Sign Admin CLI — platform administration for Sign environments",
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"author": "marcelomarra",
|
|
6
|
+
"bin": {
|
|
7
|
+
"sign-admin": "./bin/run.js"
|
|
8
|
+
},
|
|
9
|
+
"type": "module",
|
|
10
|
+
"files": [
|
|
11
|
+
"bin/"
|
|
12
|
+
],
|
|
13
|
+
"engines": {
|
|
14
|
+
"node": ">=18.0.0"
|
|
15
|
+
},
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@hyperdrive.bot/auth-plugin": "^0.1.0",
|
|
18
|
+
"@hyperdrive.bot/cli-api-plugin": "^0.1.0",
|
|
19
|
+
"@oclif/core": "^4",
|
|
20
|
+
"@oclif/plugin-help": "^6"
|
|
21
|
+
},
|
|
22
|
+
"oclif": {
|
|
23
|
+
"bin": "sign-admin",
|
|
24
|
+
"dirname": "sign-admin",
|
|
25
|
+
"topicSeparator": " ",
|
|
26
|
+
"plugins": [
|
|
27
|
+
"@oclif/plugin-help",
|
|
28
|
+
"@hyperdrive.bot/auth-plugin",
|
|
29
|
+
"@hyperdrive.bot/cli-api-plugin"
|
|
30
|
+
],
|
|
31
|
+
"authPlugin": {
|
|
32
|
+
"appName": "sign-admin",
|
|
33
|
+
"displayName": "Sign Admin",
|
|
34
|
+
"envPrefix": "SIGN_ADMIN",
|
|
35
|
+
"ciTokenPrefix": "sign_admin_sk_",
|
|
36
|
+
"primaryApiName": "tenants",
|
|
37
|
+
"authMode": "admin",
|
|
38
|
+
"profiles": {
|
|
39
|
+
"vixting-dev": {
|
|
40
|
+
"region": "us-east-1",
|
|
41
|
+
"cognitoUserPoolId": "us-east-1_wjFWZUIJs",
|
|
42
|
+
"cognitoClientId": "32a9n6796qd0jsioe0qdrf6mqk",
|
|
43
|
+
"cognitoIdentityPoolId": "us-east-1:7fb09ef2-158e-493f-87fb-73085a5bcfb6",
|
|
44
|
+
"cognitoDomain": "243645409157-api-tenants-dev.auth.us-east-1.amazoncognito.com",
|
|
45
|
+
"bootstrapUrl": "https://oo2wp0ax27.execute-api.us-east-1.amazonaws.com/dev"
|
|
46
|
+
},
|
|
47
|
+
"vixting-live": {
|
|
48
|
+
"region": "sa-east-1",
|
|
49
|
+
"cognitoUserPoolId": "sa-east-1_d88GogyRC",
|
|
50
|
+
"cognitoClientId": "395mq587ckm1p5tqhunr5jdk9j",
|
|
51
|
+
"cognitoIdentityPoolId": "sa-east-1:b7083b09-d66e-49ac-b431-7c46b592379f",
|
|
52
|
+
"cognitoDomain": "318265007229-api-tenants-live.auth.sa-east-1.amazoncognito.com",
|
|
53
|
+
"bootstrapUrl": "https://qbwxfbokqj.execute-api.sa-east-1.amazonaws.com/live"
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"apiPlugin": {
|
|
58
|
+
"adminMode": true
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"scripts": {
|
|
62
|
+
"test": "echo \"No tests — brand shell only\"",
|
|
63
|
+
"build": "echo \"No build — brand shell only\""
|
|
64
|
+
}
|
|
65
|
+
}
|