2.0.2 • Published 2 months ago

@zeplin/cli v2.0.2

Weekly downloads
6,334
License
MIT
Repository
github
Last release
2 months ago

Zeplin CLI

Command-line interface for Zeplin

Installation

Install Zeplin CLI using npm.

npm install -g @zeplin/cli

Usage

Connected Components

Connected Components in Zeplin lets you access components in your codebase directly on designs in Zeplin, with links to Storybook, GitHub and any other source of documentation based on your workflow. 🧩

CLI connect command uses plugins to analyze component source code and publishes a high-level overview to be displayed in Zeplin. You can either publish changes to your components manually, or better yet, you can always keep them in sync by running the CLI as a step in your CI workflow.

Make sure that you created a configuration file (.zeplin/components.json) following Connected Components documentation and run the connect command:

zeplin connect [options]
OptionsDescriptionDefault
-f, --filePath to components configuration file.zeplin/components.json
-d, --devActivate development modefalse
--no-watchDisable watching file changes on development modefalse
-p, --pluginnpm package name of a Zeplin CLI connect plugin
-h, --helpOutput usage information
--verboseEnable verbose logs

Plugins

Zeplin CLI commands are extensible using plugins. See PLUGIN.md to build your own plugin.

Connected Components

connect command uses plugins to analyze component source code. Plugins generate component descriptions, code snippets and links for each component.

Available plugins

npm package nameDescription
@zeplin/cli-connect-react-pluginGenerates snippets from React components
@zeplin/cli-connect-angular-pluginGenerate snippets from Angular components
@zeplin/cli-connect-swift-pluginGenerates snippets from iOS, macOS views in Swift
@zeplin/cli-connect-storybook-pluginGenerates Storybook links of components

Usage

Install a connect plugin using npm.

npm install -g @zeplin/cli-connect-react-plugin

Execute connect command using the plugin.

zeplin connect -p @zeplin/cli-connect-react-plugin

You can also provide a list of plugins via the plugins parameter of the components configuration file, where it's possible to pass custom parameters to plugins.

Usage with access token

Zeplin CLI can authenticate using an access token instead of your Zeplin credentials which makes it easier to integrate it into your CI workflow.

  1. Get a CLI access token from your Profile in Zeplin.
  2. Set ZEPLIN_ACCESS_TOKEN environment variable in your CI.

Contributing and Issue Tracking

See CONTRIBUTING.md for details.

2.0.2

2 months ago

2.0.1

2 years ago

2.0.0

2 years ago

1.1.13

2 years ago

1.1.12

3 years ago

1.1.11

3 years ago

1.1.10

3 years ago

1.1.9

3 years ago

1.1.8

3 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.1.0-beta.2

3 years ago

1.1.0-beta.3

3 years ago

1.1.0-beta.1

3 years ago

1.1.0-beta.0

3 years ago

1.0.5

3 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.5.0

4 years ago

0.4.3

4 years ago

0.4.2

4 years ago

0.4.1

4 years ago

0.4.0

4 years ago

0.3.1

4 years ago

0.3.0

4 years ago

0.2.7

4 years ago

0.2.6

4 years ago

0.2.5

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.4

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

5 years ago

0.1.0

5 years ago