Fixed the CLI script