🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more →
Socket
Book a DemoInstallSign in
Socket

webiny-cli

Package Overview
Dependencies
Maintainers
2
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webiny-cli

A tool to bootstrap a blank Webiny project. Visit https://www.webiny.com to find out more about Webiny.

Source
npmnpm
Version
2.0.14
Version published
Weekly downloads
2
Maintainers
2
Weekly downloads
 
Created
Source

Webiny CLI

A tool to bootstrap a blank Webiny project. Visit https://www.webiny.com to find out more about Webiny.

How to use?

Create a folder for your project and install webiny-cli as a regular dev dependency.

// Create an empty project folder
mkdir my-project
cd my-project

// Initialize your project to create package.json
yarn init -y

// For per-project installation (recommended)
yarn add webiny-cli --dev
npx webiny init

// For global installations
yarn global add webiny-cli
webiny init

This will setup the entire project in form of a monorepo for easier project maintenance.

How to run development builds?

Each app requires its own build process (just like any create-react-app project). Open a terminal window, navigate to your app root and run yarn start:

// To start development build of your admin app
cd packages/admin
yarn start

// To start development build of your site app
cd packages/site
yarn start

// To start development build of your API
cd packages/api
yarn start

Deploying your project to the Webiny Cloud

From the root of your project:

// To deploy everything
webiny deploy

// To deploy a particular app/api
webiny deploy packages/admin

FAQs

Package last updated on 02 Apr 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts