Skip to content

Commit 50bab63

Browse files
committed
feat: add Gen 1 maintenance mode deprecation warning to CLI
1 parent e366e6f commit 50bab63

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

packages/amplify-cli/src/index.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,13 @@ const disableCDKDeprecationWarning = () => {
6363
* Command line entry point
6464
*/
6565
export const run = async (startTime: number): Promise<void> => {
66+
// Gen 1 CLI deprecation warning — prints to stderr to avoid interfering with JSON/stdout parsing
67+
process.stderr.write(
68+
'\n\x1b[33m⚠️ WARNING: AWS Amplify Gen 1 CLI is in maintenance mode and will reach end of life on May 1, 2027.\n' +
69+
'During maintenance mode, only critical bug fixes and security patches will be provided.\n' +
70+
'Migrate to Amplify Gen 2: https://docs.amplify.aws/react/start/migrate-to-gen2/\x1b[0m\n\n',
71+
);
72+
6673
deleteOldVersion();
6774

6875
//TODO: This is a temporary suppression for CDK deprecation warnings, which should be removed after the migration is complete

0 commit comments

Comments
 (0)