Platform CLI
The Platform CLI is a command line interface used to manage your PureWeb projects.
Installation
To install the latest released version:
Using yarn:
$ yarn global add @pureweb/platform-cli
Using npm:
$ npm install -g @pureweb/platform-cli
Getting Started
Access the PureWeb Developer Console
- Navigate to https://console.pureweb.io
- Login (or signup) and create a new project.
- Note the
CLIENT_ID
andCLIENT_SECRET
for the project, for use in the next step.
Set up your PureWeb project configuration.
$ pw config set client-id <CLIENT_ID>
$ pw config set client-secret <CLIENT_SECRET>
Example Commands
For a full list of commands, run pw help
.
Create an Agent Environment
$ pw environment create --name MyEnvironment
Create an Agent Token
$ pw agent create <environmentId>
Create a Model
$ pw model create MyModel /path/to/zip/file
Support
Contact support@pureweb.com with any questions or concerns.