Open Studio
CLI

Installation

Learn how to install the Snipplle CLI and prepare your environment for snippet synchronization.

Requirements

Before installing the CLI, make sure you have:

  • Node.js (version 14 or higher) installed
  • A terminal or command-line interface
  • A Snipplle account with an API key

The CLI works on Windows, macOS, and Linux.


Installation Steps

Open your terminal or command-line interface.

Run the following command to install the Snipplle CLI globally:

npm
npm install -g @snipplle/cli

Verify the installation by running:

snipplle --version

This should display the installed version of the CLI.

Authenticate the CLI

Use your API key to log in:

snipplle login <api-key>
Generate API key from Snipplle settings.

Initialize a Project

To start using snippets in a local project:

snipplle init

Follow the prompts to configure Snipplle config file in your project folder for snippet synchronization.