# @sa-pixaper/prismic-cli

> Command line to bootstrap prismic projects.

Latest version **3.9.23** (published 2021-04-27) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @sa-pixaper/prismic-cli
pnpm add @sa-pixaper/prismic-cli
yarn add @sa-pixaper/prismic-cli
bun add @sa-pixaper/prismic-cli
```

Provides the command `prismic`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.9.23 |
| Published | 2021-04-27 |
| First published | 2021-04-21 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 10.0.0 |
| Dependencies | 37 |
| Unpacked size | 475.9 KB |
| Known vulnerabilities | 0 (+5 in 4 direct dependencies) |
| Install scripts | no |
| Author | prismic.io developers |
| Maintainers | sa-pixaper |

## Links

- npm: https://www.npmjs.com/package/@sa-pixaper/prismic-cli
- Repository: https://github.com/prismicio/prismic-cli
- Homepage: https://github.com/prismicio/prismic-cli#readme
- Issues: https://github.com/prismicio/prismic-cli/issues
- npm.io page: https://npm.io/package/@sa-pixaper/prismic-cli

## Dependencies (37)

- [ora](https://npm.io/package/ora.md) ^4.0.3
- [tmp](https://npm.io/package/tmp.md) ~0.0.33
- [mime](https://npm.io/package/mime.md) ^2.5.2
- [open](https://npm.io/package/open.md) ^7.0.0
- [chalk](https://npm.io/package/chalk.md) ^4.1.0
- [ramda](https://npm.io/package/ramda.md) ^0.26.1
- [slash](https://npm.io/package/slash.md) ^3.0.0
- [globby](https://npm.io/package/globby.md) ^11.0.0
- [semver](https://npm.io/package/semver.md) ^7.3.2
- [adm-zip](https://npm.io/package/adm-zip.md) ^0.4.13
- [consola](https://npm.io/package/consola.md) ^2.11.3
- [request](https://npm.io/package/request.md) ~2.85.0
- [shelljs](https://npm.io/package/shelljs.md) ^0.8.4
- [inquirer](https://npm.io/package/inquirer.md) ^7.3.3
- [mustache](https://npm.io/package/mustache.md) ^3.1.0
- [url-join](https://npm.io/package/url-join.md) ^4.0.1
- [cli-clear](https://npm.io/package/cli-clear.md) ^1.0.4
- [deepmerge](https://npm.io/package/deepmerge.md) ^4.2.2
- [form-data](https://npm.io/package/form-data.md) ^3.0.1
- [deep-equal](https://npm.io/package/deep-equal.md) ^1.1.0
- [lodash.get](https://npm.io/package/lodash.get.md) ^4.4.2
- [lodash.set](https://npm.io/package/lodash.set.md) ^4.3.2
- [node-fetch](https://npm.io/package/node-fetch.md) ^2.6.1
- [prismic.io](https://npm.io/package/prismic.io.md) ~3.6.1
- [sm-commons](https://npm.io/package/sm-commons.md) 0.0.21
- [@sentry/node](https://npm.io/package/@sentry/node.md) ^5.11.1
- [libnpmconfig](https://npm.io/package/libnpmconfig.md) ^1.2.1
- [lodash.merge](https://npm.io/package/lodash.merge.md) ^4.6.2
- [is-valid-path](https://npm.io/package/is-valid-path.md) ^0.1.1
- [variable-diff](https://npm.io/package/variable-diff.md) ^2.0.2
- [vue-docgen-api](https://npm.io/package/vue-docgen-api.md) ^3.25.0
- [jest-fetch-mock](https://npm.io/package/jest-fetch-mock.md) ^3.0.3
- [copy-template-dir](https://npm.io/package/copy-template-dir.md) ^1.4.0
- [command-line-usage](https://npm.io/package/command-line-usage.md) ~5.0.4
- [command-line-commands](https://npm.io/package/command-line-commands.md) ~2.0.1
- [@babel/runtime-corejs2](https://npm.io/package/@babel/runtime-corejs2.md) ^7.0.0
- [@prismicio/babel-transform-config](https://npm.io/package/@prismicio/babel-transform-config.md) 0.0.6

## Recent versions

- 3.9.23 (latest) — 2021-04-27
- 3.9.22 — 2021-04-27
- 3.9.21 — 2021-04-26
- 3.9.20 — 2021-04-25
- 3.9.19 — 2021-04-25
- 3.9.18 — 2021-04-25
- 3.9.17 — 2021-04-25
- 3.8.17 — 2021-04-24
- 3.8.16 — 2021-04-24
- 3.8.15 — 2021-04-24
- 3.8.14 — 2021-04-21
- 3.8.13 — 2021-04-21
- 3.8.12 — 2021-04-21

## README

### This fork is not for production use but for demoing purposes only.

I will use it only with some real strict safety measurements

- using a very small and easy to smoke test project
- never create/adjust types in the GUI/prismic dashboard (only using the sync command to update types)
- e2e+smoke test on staging environment with identical content as production.
- backup plan if the api goes down (e.g when you hit an api rate limit or something similar). Might add something that will echo out JSON type objects that you can copy paste to the prismic dashboard as backup plan.
- get more confident this fork is stable.

### What?

Added command

- `prismic sync`

Arguments

- `--custom-types` will upsert custom_types
- `--slices` will upsert slices
- `--dangerous-delete` will also delete "custom_types" and or "slices" from your Prismic CMS API if they don't exist in your codebase it's "custom_types" or "slices library's". E.g. `prismic sync --dangerous-delete --custom-types` will delete and upsert "custom-types" only, where appropriate.
- `PRISMIC_CUSTOM_TYPES_TOKEN` Environment variable to specify an authorization token for the custom_types api.

### Secret token

While running in an CI/CD environment, you might wanna specify an token for authentication in

# Prismic Command Line for Javascript

[![npm version](https://badge.fury.io/js/prismic-cli.svg)](http://badge.fury.io/js/prismic-cli)
[![Build Status](https://api.travis-ci.org/prismicio/prismic-cli.png)](https://travis-ci.org/prismicio/prismic-cli)

This is a command line tool to bootstrap Javascript project using [prismic.io](https://prismic.io). Currently it can be used to bootstrap projects based on:

- [NodeJS](https://nodejs.org/) ([ExpressJS](https://expressjs.com/))
- [ReactJS](https://facebook.github.io/react/)
- [Angular 2.0](https://angular.io/)
- [NuxtJS](https://nuxtjs.org/)

It is meant to install globally:

```
npm install -g prismic-cli
```

## Usage

Just type `prismic` without any argument to read the manual.

### Examples

Create a new project on the 'foobar' repository:

```
prismic init foobar
```

Create a new NodeJS project on the 'foobar' repository, in the 'foobar' folder (non-interactive)

```
prismic init foobar --folder foobar --template NodeJS
```

## More information

Once your project is bootstrapped, you can find more information about developing with prismic.io in the [documentation](http://prismic.io/docs).

All templates rely on the same [Javascript kit](https://github.com/prismicio/javascript-kit).

---
_Source: https://npm.io/package/@sa-pixaper/prismic-cli · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
