Installation
TL;DR: Use
npxfor one-off commands, or install as a dev dependency for local development.
Using npx (Recommended)
The simplest way to use Scry is via npx. No installation required:
bash
# Initialize a new project
npx @scry/storybook-deployer init --projectId xxx --apiKey yyy
# Deploy manually
npx @scry/storybook-deployer --dir ./storybook-staticThis always uses the latest version and requires no local dependencies.
Installing as a Dependency
If you prefer to have the package in your node_modules:
bash
npm install @scry/storybook-deployer --save-devbash
pnpm add @scry/storybook-deployer -Dbash
yarn add @scry/storybook-deployer --devAfter installation, you can run commands using:
bash
# Using the full name
npx storybook-deployer init --projectId xxx --apiKey yyy
# Using the short alias
npx scry init --projectId xxx --apiKey yyyInstalling from GitHub
For the latest development version:
bash
npm install github:epinnock/scry-node --save-devbash
pnpm add github:epinnock/scry-node -Dbash
yarn add github:epinnock/scry-node --devBinary Aliases
The package provides multiple binary names for convenience:
| Binary | Description |
|---|---|
storybook-deployer | Full name |
storybook-deploy | Short name for deploy commands |
scry | Shortest alias |
All binaries are equivalent:
bash
npx storybook-deployer --help
npx storybook-deploy --help
npx scry --helpVerifying Installation
Check that the CLI is working:
bash
npx @scry/storybook-deployer --versionExpected output:
@scry/storybook-deployer v1.0.0System Requirements
| Requirement | Version |
|---|---|
| Node.js | 18.x or later |
| npm/pnpm/yarn | Any recent version |
| Git | 2.x or later |
| GitHub CLI | 2.x or later (optional, for init) |
Environment Setup
The CLI reads configuration from multiple sources:
- Command-line arguments (highest priority)
- Environment variables (prefixed with
STORYBOOK_DEPLOYER_orSCRY_) - Configuration file (
.storybook-deployer.json) - Default values (lowest priority)
See Configuration for details.
Next Steps
- Quick Start - Set up automatic deployments
- CLI Commands - Full command reference
- Configuration - Configuration options