Open Studio
CLI

Pull

Fetch snippets from your Snipplle workspace into your local project.

What Is Pull?

The pull command allows you to synchronize snippets from your Snipplle workspace into your local project folder.

It reads the configuration from snipplle.config.json (created with init) and downloads the snippets according to your workspace settings.

Currently, pull is read-only. Pushing changes back to Snipplle is planned for future releases.

How to Use Pull

In your project folder, run:

snipplle pull -s <workspace-slug>/<snippet-slug>@<version>
If no version is specified, the latest version is downloaded.

The CLI will:

  1. Read your project configuration from snipplle.config.json
  2. Connect to your Snipplle workspace using your API key
  3. Download selected snippet/collection accessible to your workspace
  4. Save them in the configured local directory

After the command completes, your local project contains the latest snippets from Snipplle.


Configuration Requirements

pull depends on:

  • A configured project via snipplle init
  • A valid API key (authenticated with snipplle login)
  • Access to the workspace you want to sync

Without these, the command will fail and provide guidance on missing steps.