sketchtool

Product · Developer tool · Engineering & development by Sketch

Automate your Sketch design workflow from the command line.

A command-line tool for developers to automate Sketch asset exports and document inspection. It is bundled with the Sketch Mac app to enable high-performance CI/CD integrations and server-side rendering.

Price
From 120 USD per seat license or subscriptions

Category: Developer Tools

Platforms
macOS
Editors and tools
Terminal, Command Line Interface (CLI)
Deployment
Local (bundled with Sketch macOS app)
Interface Type
Command Line Interface (CLI)
Distribution Method
Bundled with Sketch.app binary
Supported OS
macOS
  • Bundled CLI for Sketch macOS app
  • Export layers, slices, and artboards via terminal
  • Multi-resolution export in one command
  • Automated preview generation for third-party tools

Overview

sketchtool is Sketch's official command-line interface (CLI) designed for developers to automate design workflows on macOS. It is bundled directly with the Sketch Mac app and allows users to export layers, slices, artboards, and entire pages without ever opening the graphical user interface. This tool is particularly useful for teams that need to integrate design assets into automated build pipelines or CI/CD environments. Beyond simple exports, it can be used to check Sketch documents and generate previews for third-party applications. Because it is a native binary, it provides high-performance processing of Sketch files directly from the terminal.

Automation & Export

  • Automated Asset Export: Quickly generate image files for all exportable layers, slices, artboards, or entire pages from a Sketch document.
  • Multi-resolution Support: Export assets in as many different resolutions as required using a single command line instruction.
  • Preview Generation: Automate the generation of previews for Sketch files to integrate with third-party tools and workflows.
  • Document Inspection: Check Sketch documents from the command line to verify content or structure without opening the GUI.

Developer Workflows

  • CI/CD Integration: Integrate Sketch document processing into continuous integration and deployment pipelines for automated builds.
  • Server-side Rendering: Use the tool to render Sketch documents directly from the command line for server-side applications.
  • Task Automation: Automate repetitive design tasks by running scripts through the terminal.

Use cases

  • Developers automate the export of design assets into multiple resolutions for mobile and web build pipelines.
  • Teams integrate Sketch document processing into CI/CD workflows to ensure assets are always up to date.
  • Third-party tool creators use sketchtool to generate previews of Sketch files within their own applications.

Specifications

Platforms
macOS
Editors and tools
Terminal, Command Line Interface (CLI)
Deployment
Local (bundled with Sketch macOS app)
Interface Type
Command Line Interface (CLI)
Distribution Method
Bundled with Sketch.app binary
Supported OS
macOS
Primary Function
Asset export and document inspection

How it works

  1. Locate the binary: Locate the sketchtool binary within the Sketch application bundle on your Mac.
  2. Run commands: Open the Terminal and use the sketchtool command followed by the desired action, such as 'export pages'.
  3. Process documents: Specify the target Sketch file and the output directory for your exported assets or data.

Pricing

Bundled with Sketch License
Included in $120 per seat license or subscriptions

FAQ

What is sketchtool?

sketchtool is a command-line utility bundled with the Sketch macOS app that allows you to perform actions like exporting assets and inspecting documents without opening the Sketch interface.

Where can I find sketchtool?

It is located within the Sketch application bundle at /Contents/Resources/sketchtool/bin/sketchtool.

Does the Mac App Store version of Sketch include sketchtool?

No, sketchtool is not supported in the Mac App Store version of Sketch due to Apple's restrictions on adding extra binaries to apps.

What can I do with sketchtool?

You can use it to export pages, artboards, slices, and layers into various resolutions and formats directly from your terminal or build scripts.

Added by AntSpace from public sources (developer.sketch.com).

Related

More products by Sketch