Appearance
Command reference
Below is a detailed specification of the available commands in the Developer CLI. Commands decorated with Remote require internet connection, and often also permissions to the particular resource you are working with.
login
Remote
Log in to Webprovisions to gain access to your remote resources, such as distributions and components. A browser window will open where you will be prompted to provide your Webprovisions credentials.
Options
N/A
Arguments
N/A
Examples
bash
wp login
create
Creates a boilerplate for an empty distribution or component on your local disk. You will be prompted to provide necessary details about the resource, such as name and organization.
Options
-n, --name
- Name of the resource.-o, --organization
- Name of organization owning the resource.
Arguments
distribution
- Creates the required files for a Webprovisions distribution.component
Not yet available - Creates the required files for a Webprovisions component.
Examples
bash
wp create distribution
bash
wp create component
deploy
Remote
This command deploys a distribution Webprovisions for bundling and delivery. If the distribution is new, you will first be prompted to confirm the creation of a remote repository for the distribution.
Options
N/A
Arguments
N/A
Example
bash
wp deploy
subscriptions
Remote
With this command you can add, remove and list the current subscriptions for a distribution.
Options
N/A
Arguments
add <component>
- Adds a subscription for the specified component.remove <component>
- Removes a subscription for the specified component.list
- Lists all current subscriptions for the distribution.
Warning
Adding and removing components doesn't affect the dependencies in package.json
. You will need to add and remove the dependency manually.
Example
bash
wp subscriptions add @webprovisions/hello-world-component
bash
wp subscriptions list
bash
wp subscriptions remove @webprovisions/hello-world-component
auto-upgrade
Remote
Activate or deactivate auto-upgrade for a distribution. With auto-upgrade activated, Webprovisions will automatically create a new version of the distribution if new versions of subscribed components are available.
Options
N/A
Arguments
on
- Activates auto upgrade.off
- Deactivates auto upgrade.
Example
bash
wp auto-upgrade on