2.8.3 • Published 5 years ago

@platform-os/marketplace-kit v2.8.3

Weekly downloads
3
License
ISC
Repository
github
Last release
5 years ago

Overview

Greenkeeper badge

Marketplace Kit is command line tool, which was developed to allow you to easily deploy your configuration files and assets to the PlatformOS. It expects you to follow a certain file structure in order to correctly communicate with the PlatformOS API. You do not have to use it, however it is highly recommended that you do. It is a CLI tool, hence you are expected to have basic knowledge in working with Terminal.

If you have any feature requests, feedback or problems please head over to the issues page and let us know.

All commands should be run in the project root directory - i.e. one level above marketplace_builder directory.

Requirements

marketplace-kit requires nodejs >= v8 to work properly. Read more on how to install node on your platform.

Installation and update

If your node is installed for all users you might need to use sudo to install npm packages globally:

sudo npm install -g @platform-os/marketplace-kit

If you are using nvm or node installed on your account, you can omit that:

npm install -g @platform-os/marketplace-kit

Usage

Adding environments and authenticating

Authentication is done with your Partner Portal account credentials. See this guide if you don't have Partner Portal account yet.

To add your environment to a config file, run the env add command, and authenticate with your Partner Portal credentials:

marketplace-kit env add [environment] --email <your email> --url <your marketplace url>

Example: marketplace-kit env add staging --email myemail@example.com --url https://example.com

Configuration for environments lays down in .marketplace-kit file.

Syncing changes

marketplace-kit sync [environment]

Example: marketplace-kit sync staging

Enables sync mode - immediately pushes changes made to filesystem to the proper environment. It feels like working on localhost. For obvious reason, it is dangerous to use on production, on a live marketplace - it is recommended to use it only for staging.

Deploying changes

marketplace-kit deploy [environment]

Example: marketplace-kit deploy staging

Deploys all the changes. It is recommended to first deploy to staging, test, and only then trigger to production. Effectively, deploy creates a zip file containning all your files and sends it to API. It is then processed in the background. Each zip file is stored by us, in order to allow you to rollback in case something goes wrong.

Deploying with force flag (-f or --force)

Force flag is used to override changes made in instance admin. If you see locked_by_admin error and you still want to deploy, use -f flag.

marketplace-kit deploy [environment] -f

Example: marketplace-kit deploy staging -f

Listing environments

If you forgot know what your environments are named or the url that is corresponding to any name, use:

marketplace-kit env list

Initializing required directory structure

If you need to create new project from scratch you can init directory structure using:

marketplace-kit init

It will download directory structure from official repository and extract it in your current directory.

We will try to keep it up to date and also keep it as useful as possible. If you have any feedback for directory structure go to github and create an issue.

Graphical interface

To start http server locally that will serve GUI use:

marketplace-kit gui serve [environment]

Example: marketplace-kit gui serve staging

GraphQL Browser

To explore your instance database using graphql open http://localhost:3333/gui/graphql in your web browser.

In the right sidebar there is a schema documentation should you need it.

Resources editor

To list, edit and create resources open http://localhost:3333/gui/editor in your web browser.

2.8.3

5 years ago

2.8.2

5 years ago

2.8.1

5 years ago

2.7.8

5 years ago

2.7.7

5 years ago

2.7.6

5 years ago

2.7.5

5 years ago

2.7.4

5 years ago

2.7.3

5 years ago

2.7.2

5 years ago

2.7.1

5 years ago

2.7.0

5 years ago

2.6.6

5 years ago

2.6.4

5 years ago

2.6.2

5 years ago

2.6.1

5 years ago

2.6.0

5 years ago

2.4.0

5 years ago

2.3.6

5 years ago

2.3.5

6 years ago

2.3.4

6 years ago

2.3.2

6 years ago

2.3.1

6 years ago

2.3.0

6 years ago

2.2.3

6 years ago

2.2.2

6 years ago

2.2.0

6 years ago

2.1.2

6 years ago

2.1.1

6 years ago

2.1.0

6 years ago

2.0.0

6 years ago

1.4.2

6 years ago

1.4.1

6 years ago

1.4.0

6 years ago

1.3.4

6 years ago

1.3.3

6 years ago

1.3.2

6 years ago

1.3.1

6 years ago

1.333.0

6 years ago

1.3.0

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago