- Node >=16
npm install -g @frontify/frontify-cli
# Or
yarn global add @frontify/frontify-cli
npx @frontify/frontify-cli block create <app name>
The content block name needs to be lowercase, spaces are not allowed but you can use an underscore instead.
Example: my_custom_content_block
frontify-cli block serve
Params:
Parameters | Description | Type | Default Value |
---|---|---|---|
entryPath | Path to the entry file exporting block and settings
|
string | src/index.tsx |
port | Port for the local development server | number | 5600 |
frontify-cli block deploy --instance=<Frontify URL>
The Frontify URL represent your instance URL.
Example: weare.frontify.com
or https://weare.frontify.com
frontify-cli login --instance=<Frontify URL>
The Frontify URL represent your instance URL.
Example: weare.frontify.com
or https://weare.frontify.com
If you are using a domain with self-signed certificate, you will need to put NODE_TLS_REJECT_UNAUTHORIZED=0
before the log in command
frontify-cli logout
macOS: ~/Library/Preferences/frontify-cli-nodejs