Skip to content

Commit bbe8da4

Browse files
2 parents 518d633 + 4e23752 commit bbe8da4

File tree

2 files changed

+54
-19
lines changed

2 files changed

+54
-19
lines changed

README.md

Lines changed: 53 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ USAGE
3030
<!-- usagestop -->
3131
# Commands
3232
<!-- commands -->
33+
* [`sc help [COMMAND]`](#sc-help-command)
3334
* [`sc missionctrl broker create`](#sc-missionctrl-broker-create)
3435
* [`sc missionctrl broker delete`](#sc-missionctrl-broker-delete)
3536
* [`sc missionctrl broker display`](#sc-missionctrl-broker-display)
@@ -51,28 +52,52 @@ USAGE
5152
* [`sc plugins unlink [PLUGIN]`](#sc-plugins-unlink-plugin)
5253
* [`sc plugins update`](#sc-plugins-update)
5354

55+
## `sc help [COMMAND]`
56+
57+
Display help for sc.
58+
59+
```
60+
USAGE
61+
$ sc help [COMMAND...] [-n]
62+
63+
ARGUMENTS
64+
COMMAND... Command to show help for.
65+
66+
FLAGS
67+
-n, --nested-commands Include all nested commands in the output.
68+
69+
DESCRIPTION
70+
Display help for sc.
71+
```
72+
73+
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.2.28/src/commands/help.ts)_
74+
5475
## `sc missionctrl broker create`
5576

5677
Create an event broker service. You must provide a unique name and select a service class and datacenter. You can optionally define other properties for the event broker service.
5778

5879
```
5980
USAGE
60-
$ sc missionctrl broker create -d <value> -n <value> -c <value> [-e <value>] [-l] [-s <value>] [-m <value>] [-v <value>]
81+
$ sc missionctrl broker create -d <value> -n <value> -c <value> [-e <value>] [-l] [-s <value>] [-m <value>] [-v
82+
<value>]
6183
6284
FLAGS
6385
-c, --service-class-id=<value> (required) Supported service classes.
6486
-d, --datacenter-id=<value> (required) The identifier of the datacenter.
65-
-e, --env-name=<value> The name of the environment environment where you want to create the service. If no name is provided, the service will be
66-
created in the default environment.
67-
-l, --locked Indicates if you can delete the event broker service after creating it. The default value is false.
68-
-m, --msg-vpn-name=<value> The message VPN name. A default message VPN name is provided when this is not specified.
87+
-e, --env-name=<value> The name of the environment environment where you want to create the service. If no
88+
name is provided, the service will be created in the default environment.
89+
-l, --locked Indicates if you can delete the event broker service after creating it. The default
90+
value is false.
91+
-m, --msg-vpn-name=<value> The message VPN name. A default message VPN name is provided when this is not
92+
specified.
6993
-n, --name=<value> (required) Name of the event broker service to create.
70-
-s, --max-spool-usage=<value> The message spool size, in gigabytes (GB). A default message spool size is provided if this is not specified.
94+
-s, --max-spool-usage=<value> The message spool size, in gigabytes (GB). A default message spool size is provided if
95+
this is not specified.
7196
-v, --version=<value> The event broker version. A default version is provided when this is not specified.
7297
7398
DESCRIPTION
74-
Create an event broker service. You must provide a unique name and select a service class and datacenter. You can optionally define other properties for the
75-
event broker service.
99+
Create an event broker service. You must provide a unique name and select a service class and datacenter. You can
100+
optionally define other properties for the event broker service.
76101
77102
Your token must have one of the permissions listed in the Token Permissions.
78103
@@ -113,6 +138,8 @@ _See code: [src/commands/missionctrl/broker/delete.ts](https://github.com/dishan
113138

114139
## `sc missionctrl broker display`
115140

141+
Get the details of an event broker service using its identifier or name.
142+
116143
```
117144
USAGE
118145
$ sc missionctrl broker display [-b <value>] [-n <value>]
@@ -126,7 +153,8 @@ DESCRIPTION
126153
127154
Use either the Event Broker's ID (--broker-id) or name of the Event Broker (--name).
128155
129-
Token Permissions: [ `mission_control:access` **or** `services:get` **or** `services:get:self` **or** `services:view` **or** `services:view:self` ]
156+
Token Permissions: [ `mission_control:access` **or** `services:get` **or** `services:get:self` **or** `services:view`
157+
**or** `services:view:self` ]
130158
131159
EXAMPLES
132160
$ sc missionctrl broker display
@@ -165,7 +193,8 @@ DESCRIPTION
165193
166194
Your token must have one of the permissions listed in the Token Permissions.
167195
168-
Token Permissions: [ `mission_control:access` **or** `services:get` **or** `services:get:self` **or** `services:view` **or** `services:view:self` ]
196+
Token Permissions: [ `mission_control:access` **or** `services:get` **or** `services:get:self` **or** `services:view`
197+
**or** `services:view:self` ]
169198
170199
EXAMPLES
171200
$ sc missionctrl broker list --name=MyBrokerName --pageNumber=1 --pageSize=10 --sort=name:asc
@@ -196,7 +225,7 @@ DESCRIPTION
196225
Token Permissions: [ environments:edit ]
197226
198227
EXAMPLES
199-
$ sc platform env create
228+
$ sc platform env create --name=MyEnvironment --desc="My environment description" --isDefault --isProduction
200229
```
201230

202231
_See code: [src/commands/platform/env/create.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.0.0/src/commands/platform/env/create.ts)_
@@ -256,11 +285,12 @@ _See code: [src/commands/platform/env/display.ts](https://github.com/dishantlang
256285

257286
## `sc platform env list`
258287

259-
Get a list of all Environments.
288+
Get a list of all Environments.
260289

261290
```
262291
USAGE
263-
$ sc platform env list [--json] [--log-level debug|warn|error|info|trace] [-n <value>] [--pageNumber <value>] [--pageSize <value>] [--sort <value>]
292+
$ sc platform env list [--json] [--log-level debug|warn|error|info|trace] [-n <value>] [--pageNumber <value>]
293+
[--pageSize <value>] [--sort <value>]
264294
265295
FLAGS
266296
-n, --name=<value> Name of the environment to match on.
@@ -323,19 +353,24 @@ Display help for sc.
323353

324354
```
325355
USAGE
326-
$ sc help [COMMAND...] [-n]
356+
$ sc platform env update [FILE] [-f] [-n <value>]
327357
328358
ARGUMENTS
329-
COMMAND... Command to show help for.
359+
FILE file to read
330360
331361
FLAGS
332-
-n, --nested-commands Include all nested commands in the output.
362+
-f, --force
363+
-n, --name=<value> name to print
333364
334365
DESCRIPTION
335-
Display help for sc.
366+
This command has not been implemented yet. It is a placeholder for future functionality related to updating platform
367+
environments.
368+
369+
EXAMPLES
370+
$ sc platform env update
336371
```
337372

338-
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.2.28/src/commands/help.ts)_
373+
_See code: [src/commands/platform/env/update.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.0.0/src/commands/platform/env/update.ts)_
339374

340375
## `sc plugins`
341376

src/commands/platform/env/create.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default class PlatformEnvCreate extends Command {
1010
static override description = `Create a new environment.
1111
1212
Token Permissions: [ environments:edit ]`
13-
static override examples = ['<%= config.bin %> <%= command.id %>']
13+
static override examples = ['<%= config.bin %> <%= command.id %> --name=MyEnvironment --desc="My environment description" --isDefault --isProduction']
1414
static override flags = {
1515
desc: Flags.string({char: 'd', description: 'Description of the environment to create.'}),
1616
// flag with no value (--isDefault)

0 commit comments

Comments
 (0)