Publishing from the CLI

Note: This article refers to the Framer desktop app. Learn more about the differences between the Framer web and desktop app here.

In addition to publishing packages through Framer, you can also publish from the command line through the Framer Command Line Interface (CLI)

Use npx to run the package: ~ $ npx framer-cli help

CommandDescription
authenticateProvides a special FRAMER_TOKEN to be used as an environment variable for publishing packages under the authenticated user's account.
buildEnsures that the project is in a valid state for publishing.
publishResponsible for building the project, managing project versioning, and publishing the project publically or to your team. This command requires a FRAMER_TOKEN environment variable for publishing. This token is unique to a given individual and is used for both authentication and determining the user’s available private packages space, if any.
helpPrints the usage instructions and provides additional information about different options available for each function. Running a given command with the --help flag will also show information for that given command.