@@ -139,7 +139,14 @@ import {
139139 r2BucketSippyGetCommand ,
140140 r2BucketSippyNamespace ,
141141} from "./r2/sippy" ;
142- import { secret , secretBulkHandler , secretBulkOptions } from "./secret" ;
142+ import {
143+ secretBulkAlias ,
144+ secretBulkCommand ,
145+ secretDeleteCommand ,
146+ secretListCommand ,
147+ secretNamespace ,
148+ secretPutCommand ,
149+ } from "./secret" ;
143150import {
144151 addBreadcrumb ,
145152 captureGlobalException ,
@@ -481,13 +488,15 @@ export function createCLIParser(argv: string[]) {
481488 registry . registerNamespace ( "tail" ) ;
482489
483490 // secret
484- wrangler . command (
485- "secret" ,
486- "🤫 Generate a secret that can be referenced in a Worker" ,
487- ( secretYargs ) => {
488- return secret ( secretYargs . command ( subHelp ) ) ;
489- }
490- ) ;
491+ registry . define ( [
492+ { command : "wrangler secret" , definition : secretNamespace } ,
493+ { command : "wrangler secret put" , definition : secretPutCommand } ,
494+ { command : "wrangler secret delete" , definition : secretDeleteCommand } ,
495+ { command : "wrangler secret list" , definition : secretListCommand } ,
496+ { command : "wrangler secret bulk" , definition : secretBulkCommand } ,
497+ { command : "wrangler secret:bulk" , definition : secretBulkAlias } ,
498+ ] ) ;
499+ registry . registerNamespace ( "secret" ) ;
491500
492501 // types
493502 registry . define ( [ { command : "wrangler types" , definition : typesCommand } ] ) ;
@@ -917,14 +926,6 @@ export function createCLIParser(argv: string[]) {
917926 subdomainHandler
918927 ) ;
919928
920- // [DEPRECATED] secret:bulk
921- wrangler . command (
922- "secret:bulk [json]" ,
923- false ,
924- secretBulkOptions ,
925- secretBulkHandler
926- ) ;
927-
928929 // [DEPRECATED] generate
929930 wrangler . command (
930931 "generate [name] [template]" ,
0 commit comments