import chalk from 'chalk' ; const getDeprecationMessage = ( argv = { } ) => [ chalk . red ( '**DEPRECATED**' ) , 'jss create is not supported from JSS CLI version 20.0.0.' , 'Please use npm init sitecore-jss instead. For example:' , chalk . green ( `npm init sitecore-jss ${ argv ?. template || 'nextjs' }` ) , 'Please downgrade to a previous JSS CLI version if you want to install older releases. For example:' , chalk . green ( 'npm install -g @sitecore-jss/sitecore-jss-cli@19.0.0' ) , chalk . green ( `jss create ${ argv ?. name || 'nextjs-app' } ${ argv ?. template || 'nextjs' } --branch release/19.0.0` ) , ] . join ( '\n' ) ; export const command = 'create <name> <template>' ; export const describe = getDeprecationMessage ( ) ; export const builder = { } ; param { Object } argv export function handler ( argv ) { console . log ( getDeprecationMessage ( argv ) ) ; }