Open Studio
CLI

Version

Display the installed CLI version and view available versions of a snippet.

What Is Version?

The version command provides version-related information for the Snipplle CLI and for snippets stored in Snipplle.

It can be used to:

  • Verify the installed CLI version
  • Inspect all available versions of a specific snippet

CLI Version

To display the currently installed version of the Snipplle CLI, run:

snipplle version

The command outputs the CLI version.

This is useful for:

  • Verifying your installation
  • Debugging CLI-related issues
  • Ensuring compatibility with documentation

Snippet Versions

To view all available versions of a specific snippet stored in Snipplle, use the version command with an additional flag:

snipplle version -s <workspace-slug>/<snippet-slug>

This command queries Snipplle directly and returns all versions available for the specified snippet, regardless of whether it exists in the local project.

Snippet version information can help you:

  • Understand the history of a snippet
  • Choose which version to pull in the future
  • Track changes over time