@@ -12,7 +12,7 @@ export function registerOAuthClientsCommand(parent: Command): void {
1212 // oauth-clients list
1313 const list = oauthClients
1414 . command ( "list" )
15- . description ( "List all OAuth clients" )
15+ . description ( "List all registered OAuth clients and their configurations " )
1616 . action (
1717 withErrorHandler ( async ( _opts : unknown , cmd : Command ) => {
1818 const client = createClient ( cmd ) ;
@@ -27,12 +27,16 @@ export function registerOAuthClientsCommand(parent: Command): void {
2727 description : "List all OAuth clients" ,
2828 command : "geonic admin oauth-clients list" ,
2929 } ,
30+ {
31+ description : "List OAuth clients in table format" ,
32+ command : "geonic admin oauth-clients list --format table" ,
33+ } ,
3034 ] ) ;
3135
3236 // oauth-clients get
3337 const get = oauthClients
3438 . command ( "get <id>" )
35- . description ( "Get an OAuth client by ID " )
39+ . description ( "Get an OAuth client's details — name, client ID, policy, and redirect URIs " )
3640 . action (
3741 withErrorHandler ( async ( id : unknown , _opts : unknown , cmd : Command ) => {
3842 const client = createClient ( cmd ) ;
@@ -47,14 +51,15 @@ export function registerOAuthClientsCommand(parent: Command): void {
4751
4852 addExamples ( get , [
4953 {
50- description : "Get an OAuth client by ID " ,
54+ description : "Inspect an OAuth client's configuration " ,
5155 command : "geonic admin oauth-clients get <client-id>" ,
5256 } ,
5357 ] ) ;
5458
5559 // oauth-clients create
5660 const create = oauthClients
5761 . command ( "create [json]" )
62+ . summary ( "Create a new OAuth client" )
5863 . description (
5964 "Create a new OAuth client\n\n" +
6065 "JSON payload example:\n" +
@@ -94,6 +99,7 @@ export function registerOAuthClientsCommand(parent: Command): void {
9499 // oauth-clients update
95100 const update = oauthClients
96101 . command ( "update <id> [json]" )
102+ . summary ( "Update an OAuth client" )
97103 . description (
98104 "Update an OAuth client\n\n" +
99105 "JSON payload: only specified fields are updated.\n" +
@@ -134,7 +140,7 @@ export function registerOAuthClientsCommand(parent: Command): void {
134140 // oauth-clients delete
135141 const del = oauthClients
136142 . command ( "delete <id>" )
137- . description ( "Delete an OAuth client" )
143+ . description ( "Delete an OAuth client. Existing tokens issued by this client will be invalidated " )
138144 . action (
139145 withErrorHandler ( async ( id : unknown , _opts : unknown , cmd : Command ) => {
140146 const client = createClient ( cmd ) ;
@@ -148,7 +154,7 @@ export function registerOAuthClientsCommand(parent: Command): void {
148154
149155 addExamples ( del , [
150156 {
151- description : "Delete an OAuth client" ,
157+ description : "Delete an OAuth client by ID " ,
152158 command : "geonic admin oauth-clients delete <client-id>" ,
153159 } ,
154160 ] ) ;
@@ -157,12 +163,12 @@ export function registerOAuthClientsCommand(parent: Command): void {
157163export function registerCaddeCommand ( parent : Command ) : void {
158164 const cadde = parent
159165 . command ( "cadde" )
160- . description ( "Manage CADDE configuration" ) ;
166+ . description ( "Manage CADDE (data exchange) configuration for cross-platform data sharing " ) ;
161167
162168 // cadde get
163169 const caddeGet = cadde
164170 . command ( "get" )
165- . description ( "Get CADDE configuration" )
171+ . description ( "Get the current CADDE data exchange configuration (provider, endpoint, etc.) " )
166172 . action (
167173 withErrorHandler ( async ( _opts : unknown , cmd : Command ) => {
168174 const client = createClient ( cmd ) ;
@@ -174,14 +180,19 @@ export function registerCaddeCommand(parent: Command): void {
174180
175181 addExamples ( caddeGet , [
176182 {
177- description : "Get CADDE configuration" ,
183+ description : "View current CADDE configuration" ,
178184 command : "geonic admin cadde get" ,
179185 } ,
186+ {
187+ description : "View CADDE configuration in table format" ,
188+ command : "geonic admin cadde get --format table" ,
189+ } ,
180190 ] ) ;
181191
182192 // cadde set
183193 const caddeSet = cadde
184194 . command ( "set [json]" )
195+ . summary ( "Set CADDE configuration" )
185196 . description (
186197 "Set CADDE configuration\n\n" +
187198 "JSON payload example:\n" +
@@ -221,7 +232,7 @@ export function registerCaddeCommand(parent: Command): void {
221232 // cadde delete
222233 const caddeDelete = cadde
223234 . command ( "delete" )
224- . description ( "Delete CADDE configuration" )
235+ . description ( "Remove the CADDE data exchange configuration, disabling cross-platform data sharing " )
225236 . action (
226237 withErrorHandler ( async ( _opts : unknown , cmd : Command ) => {
227238 const client = createClient ( cmd ) ;
@@ -232,7 +243,7 @@ export function registerCaddeCommand(parent: Command): void {
232243
233244 addExamples ( caddeDelete , [
234245 {
235- description : "Delete CADDE configuration" ,
246+ description : "Remove CADDE configuration" ,
236247 command : "geonic admin cadde delete" ,
237248 } ,
238249 ] ) ;
0 commit comments