@@ -278,30 +278,36 @@ func (Certificate) Examples() map[cmd.CmdType][]kingkong.Example {
278278 return map [cmd.CmdType ][]kingkong.Example {
279279 cmd .CmdTypeGet : {
280280 {
281- Description : "Get a certificate by name or UUID" ,
281+ Description : "Inspect a certificate by name or UUID" ,
282282 Commands : []string {"unikraft certificate get demo-cert" },
283283 },
284+ {
285+ Description : "Inspect a certificate in a specific metro" ,
286+ Commands : []string {"unikraft certificate get fra/demo-cert" },
287+ },
288+ {
289+ Description : "Show certificate details in JSON format" ,
290+ Commands : []string {"unikraft certificate get demo-cert -o json" },
291+ },
284292 },
285293 cmd .CmdTypeList : {
286294 {
287- Description : "List all certificates" ,
295+ Description : "List all certificates across metros " ,
288296 Commands : []string {"unikraft certificate list" },
289297 },
298+ {
299+ Description : "List certificates and watch for changes" ,
300+ Commands : []string {"unikraft certificate list -w" },
301+ },
290302 },
291303 cmd .CmdTypeCreate : {
292304 {
293- Description : "Create a new certificate" ,
305+ Description : "Create a self-signed certificate and upload it " ,
294306 Commands : []string {
295307 `openssl req -x509 -newkey rsa:2048 -sha256 -days 365 -nodes \
296308 -subj "/CN=demo.unikraft.dev" \
297309 -keyout cert.key \
298310 -out cert.pem` ,
299- // `unikraft certificate create \
300- // --set name=demo-cert \
301- // --set cn=demo.unikraft.dev. \
302- // --set-file chain=cert.pem \
303- // --set-file pkey=cert.key \
304- // --set metro=fra`,
305311 `unikraft certificate create \
306312 --name demo-cert \
307313 --cn demo.unikraft.dev. \
@@ -310,12 +316,27 @@ func (Certificate) Examples() map[cmd.CmdType][]kingkong.Example {
310316 --metro fra` ,
311317 },
312318 },
319+ {
320+ Description : "Preview certificate creation without applying" ,
321+ Commands : []string {
322+ `unikraft certificate create \
323+ --cn example.com. \
324+ --chain cert.pem \
325+ --pkey cert.key \
326+ --metro sfo \
327+ --dry-run` ,
328+ },
329+ },
313330 },
314331 cmd .CmdTypeDelete : {
315332 {
316- Description : "Delete a certificate by name or UUID " ,
333+ Description : "Delete a certificate by name" ,
317334 Commands : []string {"unikraft certificate delete demo-cert" },
318335 },
336+ {
337+ Description : "Delete all certificates (with confirmation prompt)" ,
338+ Commands : []string {"unikraft certificate delete --all" },
339+ },
319340 },
320341 }
321342}
0 commit comments