@frontify/frontify-cli

Node >=14

Usage no npm install needed!

<script type="module">
  import frontifyFrontifyCli from 'https://cdn.skypack.dev/@frontify/frontify-cli';
</script>

README

Frontify CLI

Continuous Integration

Prerequisite

  • Node >=14

Installation

npm install -g @frontify/frontify-cli
# Or
yarn global add @frontify/frontify-cli

App

Create

frontify-cli create <app name>

The app name needs to be lowercase, spaces are not allowed but you can use an underscore instead.

Example: my_custom_app

Block

Serve

frontify-cli block serve

Params: | Parameters | Description | Type | Default Value | | ---------- | ----------- | ---- | ------------- | | blockDir | Directory of the block | string | Current dir | | entry | Path to the entry file | string | src/index.tsx | | port | Port for the local web server | string | 5600 |

Deploy

frontify-cli block deploy --instance=<Frontify URL>

The Frontify URL represent your instance URL.

Example: weare.frontify.com or https://weare.frontify.com

Authentification

Login

frontify-cli login --instance=<Frontify URL>

The Frontify URL represent your instance URL.

Example: weare.frontify.com or https://weare.frontify.com

Logout

frontify-cli logout

Configuration

macOS: ~/Library/Preferences/frontify-cli-nodejs