@dishantlangayan/sc-plugin-broker 0.1.0 → 0.1.2

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 CHANGED
@@ -24,7 +24,7 @@ $ npm install -g @dishantlangayan/sc-plugin-broker
24
24
  $ sc COMMAND
25
25
  running command...
26
26
  $ sc (--version)
27
- @dishantlangayan/sc-plugin-broker/0.1.0 darwin-arm64 node-v24.1.0
27
+ @dishantlangayan/sc-plugin-broker/0.1.2 linux-x64 node-v25.8.1
28
28
  $ sc --help [COMMAND]
29
29
  USAGE
30
30
  $ sc COMMAND
@@ -102,11 +102,11 @@ EXAMPLES
102
102
  $ sc broker login basic --broker-name=default-broker --semp-url=https://broker.example.com --semp-port=943 --set-default
103
103
  ```
104
104
 
105
- _See code: [src/commands/broker/login/basic.ts](https://github.com/dishantlangayan/sc-plugin-broker/blob/v0.1.0/src/commands/broker/login/basic.ts)_
105
+ _See code: [src/commands/broker/login/basic.ts](https://github.com/dishantlangayan/sc-plugin-broker/blob/v0.1.2/src/commands/broker/login/basic.ts)_
106
106
 
107
107
  ## `sc broker login cloud`
108
108
 
109
- Login to a Solace Cloud Event Broker using Cloud API credentials.
109
+ Authorize the SC CLI to make SEMP API calls to a Solace Cloud Event Broker using Cloud API credentials.
110
110
 
111
111
  ```
112
112
  USAGE
@@ -124,10 +124,10 @@ GLOBAL FLAGS
124
124
  <options: debug|warn|error|info|trace>
125
125
 
126
126
  DESCRIPTION
127
- Login to a Solace Cloud Event Broker using Cloud API credentials.
127
+ Authorize the SC CLI to make SEMP API calls to a Solace Cloud Event Broker using Cloud API credentials.
128
128
 
129
129
  Retrieves SEMP credentials automatically from Solace Cloud REST API.
130
- Requires prior authentication to Solace Cloud (org:login).
130
+ Requires prior authentication to Solace Cloud (sc:account:login).
131
131
 
132
132
  The command will:
133
133
  1. Look up the broker by name in your Solace Cloud organization
@@ -146,7 +146,7 @@ EXAMPLES
146
146
  $ sc broker login cloud --broker-name=prod --no-prompt
147
147
  ```
148
148
 
149
- _See code: [src/commands/broker/login/cloud.ts](https://github.com/dishantlangayan/sc-plugin-broker/blob/v0.1.0/src/commands/broker/login/cloud.ts)_
149
+ _See code: [src/commands/broker/login/cloud.ts](https://github.com/dishantlangayan/sc-plugin-broker/blob/v0.1.2/src/commands/broker/login/cloud.ts)_
150
150
 
151
151
  ## `sc broker login list`
152
152
 
@@ -171,7 +171,7 @@ EXAMPLES
171
171
  $ sc broker login list
172
172
  ```
173
173
 
174
- _See code: [src/commands/broker/login/list.ts](https://github.com/dishantlangayan/sc-plugin-broker/blob/v0.1.0/src/commands/broker/login/list.ts)_
174
+ _See code: [src/commands/broker/login/list.ts](https://github.com/dishantlangayan/sc-plugin-broker/blob/v0.1.2/src/commands/broker/login/list.ts)_
175
175
 
176
176
  ## `sc broker logout`
177
177
 
@@ -207,7 +207,7 @@ EXAMPLES
207
207
  $ sc broker logout --broker-name=prod --no-prompt
208
208
  ```
209
209
 
210
- _See code: [src/commands/broker/logout.ts](https://github.com/dishantlangayan/sc-plugin-broker/blob/v0.1.0/src/commands/broker/logout.ts)_
210
+ _See code: [src/commands/broker/logout.ts](https://github.com/dishantlangayan/sc-plugin-broker/blob/v0.1.2/src/commands/broker/logout.ts)_
211
211
 
212
212
  ## `sc broker queue create`
213
213
 
@@ -264,5 +264,5 @@ EXAMPLES
264
264
  $ sc broker queue create --broker-name=dev-broker --queue-name=myQueue --msg-vpn-name=default --dead-msg-queue=#DEAD_MSG_QUEUE --max-redelivery-count=3
265
265
  ```
266
266
 
267
- _See code: [src/commands/broker/queue/create.ts](https://github.com/dishantlangayan/sc-plugin-broker/blob/v0.1.0/src/commands/broker/queue/create.ts)_
267
+ _See code: [src/commands/broker/queue/create.ts](https://github.com/dishantlangayan/sc-plugin-broker/blob/v0.1.2/src/commands/broker/queue/create.ts)_
268
268
  <!-- commandsstop -->
@@ -4,10 +4,10 @@ import * as process from 'node:process';
4
4
  import * as readline from 'node:readline';
5
5
  export default class BrokerLoginCloud extends ScCommand {
6
6
  static args = {};
7
- static description = `Login to a Solace Cloud Event Broker using Cloud API credentials.
7
+ static description = `Authorize the SC CLI to make SEMP API calls to a Solace Cloud Event Broker using Cloud API credentials.
8
8
 
9
9
  Retrieves SEMP credentials automatically from Solace Cloud REST API.
10
- Requires prior authentication to Solace Cloud (org:login).
10
+ Requires prior authentication to Solace Cloud (sc:account:login).
11
11
 
12
12
  The command will:
13
13
  1. Look up the broker by name in your Solace Cloud organization
@@ -19,13 +19,14 @@ Displays brokers you have logged into, including their authentication type, SEMP
19
19
  }
20
20
  // Create table array (first row is headers, rest are data rows)
21
21
  const brokerArray = [
22
- ['Broker Name', 'Auth Type', 'SEMP Endpoint', 'SEMP Port', 'Is Default'],
22
+ ['Broker Name', 'Auth Type', 'SEMP Endpoint', 'SEMP Port', 'Is Default', 'Solace Cloud'],
23
23
  ...allBrokers.map((broker) => [
24
24
  broker.name,
25
25
  String(broker.authType),
26
26
  broker.sempEndpoint,
27
27
  broker.sempPort.toString(),
28
28
  broker.isDefault ? 'Yes' : '',
29
+ broker.isSolaceCloud ? 'Yes' : '',
29
30
  ]),
30
31
  ];
31
32
  // Display results as a table
@@ -172,7 +172,7 @@
172
172
  "broker:login:cloud": {
173
173
  "aliases": [],
174
174
  "args": {},
175
- "description": "Login to a Solace Cloud Event Broker using Cloud API credentials.\n\nRetrieves SEMP credentials automatically from Solace Cloud REST API.\nRequires prior authentication to Solace Cloud (org:login).\n\nThe command will:\n1. Look up the broker by name in your Solace Cloud organization\n2. Retrieve SEMP endpoint details and credentials from Cloud API\n3. Store encrypted broker credentials locally for future use\n\nRequired Cloud API permissions: Read access to Event Broker Services",
175
+ "description": "Authorize the SC CLI to make SEMP API calls to a Solace Cloud Event Broker using Cloud API credentials.\n\nRetrieves SEMP credentials automatically from Solace Cloud REST API.\nRequires prior authentication to Solace Cloud (sc:account:login).\n\nThe command will:\n1. Look up the broker by name in your Solace Cloud organization\n2. Retrieve SEMP endpoint details and credentials from Cloud API\n3. Store encrypted broker credentials locally for future use\n\nRequired Cloud API permissions: Read access to Event Broker Services",
176
176
  "examples": [
177
177
  "<%= config.bin %> <%= command.id %> --broker-name=production-broker",
178
178
  "<%= config.bin %> <%= command.id %> --broker-name=dev-broker --set-default",
@@ -471,5 +471,5 @@
471
471
  ]
472
472
  }
473
473
  },
474
- "version": "0.1.0"
474
+ "version": "0.1.2"
475
475
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dishantlangayan/sc-plugin-broker",
3
3
  "description": "Commands to interact with Solace Event Broker.",
4
- "version": "0.1.0",
4
+ "version": "0.1.2",
5
5
  "author": "Dishant Langayan",
6
6
  "bin": {
7
7
  "sc": "./bin/run.js"