Publishing from the CLI
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
Note: You may be asked to set a FRAMER_TOKEN
, find out more about this in this article.
Command | Description |
---|---|
authenticate | Provides a special FRAMER_TOKEN to be used as an environment variable for publishing packages under the authenticated user's account. |
build | Ensures that the project is in a valid state for publishing. |
publish | Responsible 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. |
help | Prints 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. |