Prerequisites
Before installing the CLI, make sure you have:- Node.js (version 14 or higher)
- npm or yarn package manager
- Git (for cloning the repository)
Installation steps
Install dependencies
Install the required npm packages:This installs the following dependencies:
zustand- The state management librarychalk- For colorful terminal outputcommander- For CLI command parsinginquirer- For interactive promptsfs-extra- For enhanced file system operations
Verify installation
To verify the CLI was installed correctly, run:1.0.0 displayed.
If you encounter permission errors when running
npm link, you may need to use sudo npm link on macOS/Linux or run your terminal as administrator on Windows.Alternative: Using yarn
If you prefer yarn, you can use it instead of npm:Uninstalling
If you need to uninstall the CLI, navigate to the project directory and run:Next steps
Now that you have the CLI installed, you’re ready to create your first Zustand store.Quick start
Learn how to create your first store with the CLI