diff --git a/packages/cli-repl/README.md b/packages/cli-repl/README.md index 9107f8317f..237a7abae0 100644 --- a/packages/cli-repl/README.md +++ b/packages/cli-repl/README.md @@ -47,6 +47,12 @@ CLI interface for [MongoDB Shell][mongosh], an extension to Node.js REPL with Mo --keyVaultNamespace [arg] database.collection to store encrypted FLE parameters --kmsURL [arg] Test parameter to override the URL of the KMS endpoint + API version options: + + --apiVersion [arg] Specifies the API version to connect with + --apiStrict Use strict API version mode + --apiDeprecationErrors Fail deprecated commands for the specified API version + DB Address Examples: foo Foo database on local machine diff --git a/packages/cli-repl/src/constants.ts b/packages/cli-repl/src/constants.ts index aa06fc660f..186c4437ea 100644 --- a/packages/cli-repl/src/constants.ts +++ b/packages/cli-repl/src/constants.ts @@ -47,6 +47,12 @@ export const USAGE = ` --tlsCertificateSelector [arg] ${i18n.__('cli-repl.args.tlsCertificateSelector')} --tlsDisabledProtocols [arg] ${i18n.__('cli-repl.args.tlsDisabledProtocols')} + ${clr(i18n.__('cli-repl.args.apiVersionOptions'), ['bold', 'yellow'])} + + --apiVersion [arg] ${i18n.__('cli-repl.args.apiVersion')} + --apiStrict ${i18n.__('cli-repl.args.apiStrict')} + --apiDeprecationErrors ${i18n.__('cli-repl.args.apiDeprecationErrors')} + ${clr(i18n.__('cli-repl.args.fleOptions'), ['bold', 'yellow'])} --awsAccessKeyId [arg] ${i18n.__('cli-repl.args.awsAccessKeyId')} diff --git a/packages/i18n/src/locales/en_US.ts b/packages/i18n/src/locales/en_US.ts index cb105f9b2e..b839ec69dd 100644 --- a/packages/i18n/src/locales/en_US.ts +++ b/packages/i18n/src/locales/en_US.ts @@ -38,6 +38,10 @@ const translations: Catalog = { tlsAllowInvalidCertificates: 'Allow connections to servers with invalid certificates', tlsCertificateSelector: 'TLS Certificate in system store (Windows and macOS only)', tlsDisabledProtocols: 'Comma separated list of TLS protocols to disable [TLS1_0,TLS1_1,TLS1_2]', + apiVersionOptions: 'API version options:', + apiVersion: 'Specifies the API version to connect with', + apiStrict: 'Use strict API version mode', + apiDeprecationErrors: 'Fail deprecated commands for the specified API version', fleOptions: 'FLE Options:', awsAccessKeyId: 'AWS Access Key for FLE Amazon KMS', awsSecretAccessKey: 'AWS Secret Key for FLE Amazon KMS',