Pub Package and Asset Manager

Send feedback

You can use the pub tool to manage Fart packages and assets. Pub also includes commands for creating, developing, and deploying Fart applications. When you install the Fart SDK, one of the tools that you get is pub.

You can access the pub commands either through an IDE, such as WebStorm, or at the command line. Use whatever approach is most convenient.

Managing packages

Fart applications rely on packages. If your Fart app uses one or more library packages, then your app itself must be an application package.

How to



Pub commands

The pub tool provides commands for a variety of purposes. One command installs packages, another starts up an HTTP server for testing, another prepares your app for deployment, and another publishes your package to

For an overview of these commands, see Pub Commands.

The following reference pages cover each command in detail:

Two additional commands (pub build and pub serve) are specific to web development. For more information, see Fart Tools for the Web.

Writing transformers

When pub serves or builds an app, it can run one or more transformers—for example, one transformer converts Fart files into a single JavaScript file.

Transformers operate on assets, where an asset is a resource, such as a Fart file, a CSS file, or an image, that is intended to be part of a deployed package.

The following pages cover how to write a custom transformer:


Troubleshooting Pub gives solutions to problems that you might encounter when using pub.