3.3.3 • Published 11 days ago

@pantheon-systems/pcc-cli v3.3.3

Weekly downloads
-
License
MIT
Repository
-
Last release
11 days ago

Installation

npm

npm install @pantheon-systems/pcc-cli --global

yarn

yarn add @pantheon-systems/pcc-cli --global

Usage

# Login the user
$ pcc login

# Create project with nextjs template
$ pcc init new_proj

# Create project with gatsby template
$ pcc init new_proj --template=gatsby

# Create project using pnpm package manager
$ pcc init new_proj --use-pnpm

# Create Typescript project and setup ESLint in it
$ pcc init new_proj --ts --eslint

# Create project without installing dependencies
$ pcc init new_proj --noInstall

# Create project and provide site ID to pre-populate .env file with
$ pcc init new_proj --site-id 123456789example1234

# Create new token
$ pcc token create

# Create new site
$ pcc site create --url test-site.com

# Get webhooks event delivery logs for a site ID
$ pcc site webhooks history 123456789example1234

# Generate preview link for given document ID
$ pcc document preview 1234567890example1234567890exam_ple123456789

# Get details of logged-in user
$ pcc whoami

# Logout the user
$ pcc logout

Import existing content from a Drupal site

You must ensure that the JSON API for your Drupal site is enabled (which it should be by default). https://www.drupal.org/docs/core-modules-and-themes/core-modules/jsonapi-module/api-overview

Once you've ensured that it's working, you will need to determine the URL which PCC can use to get the initial results page of posts (e.g. https://example.com/jsonapi/node/article). But please note that the exact URL will depend on which resource type(s) you want to import.

The second and last piece of information you will need before proceeding to import, is the id of the PCC site which the posts should be imported into. Posts are NOT going to be published automatically after importing, but they will be automatically connected to the site id provided.

With this information, you can now run the import command.

$ pcc import drupal https://example.com/jsonapi/node/article siteid12345
3.3.3

11 days ago

3.3.2

17 days ago

3.3.1

23 days ago

3.3.0

28 days ago

3.2.1

1 month ago

3.2.0

1 month ago

3.1.2

2 months ago

3.1.1

2 months ago

3.1.0

2 months ago

3.0.5

3 months ago

3.0.4

3 months ago

3.0.3

3 months ago

3.0.1

4 months ago

3.0.0

4 months ago

2.0.18

5 months ago

2.0.17

5 months ago

2.0.15

5 months ago

2.0.14

5 months ago

2.0.13

6 months ago

2.0.12

6 months ago

2.0.11

6 months ago

2.0.10

6 months ago

2.0.9

6 months ago

2.0.8

6 months ago

2.0.7

6 months ago

2.0.6

6 months ago

2.0.5

7 months ago

2.0.4

7 months ago

2.0.3

7 months ago

2.0.2

7 months ago

2.0.1

8 months ago

2.0.0

8 months ago

1.0.5

8 months ago

1.0.4

8 months ago