Security News
cURL Project and Go Security Teams Reject CVSS as Broken
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
prismic-cli
Advanced tools
Command line tool to bootstrap prismic projects.
$ npm install -g prismic-cli
$ prismic COMMAND
running command...
$ prismic (-v|--version|version)
prismic-cli/4.1.0 darwin-arm64 node-v16.6.1
$ prismic --help [COMMAND]
USAGE
$ prismic COMMAND
...
prismic help [COMMAND]
prismic list
prismic login
prismic logout
prismic new
prismic signup
prismic slicemachine
prismic theme [SOURCE]
prismic whoami
prismic help [COMMAND]
display help for prismic
USAGE
$ prismic help [COMMAND]
ARGUMENTS
COMMAND command to show help for
OPTIONS
--all see all commands in CLI
See code: @oclif/plugin-help
prismic list
Lists available project templates.
USAGE
$ prismic list
OPTIONS
-h, --help show CLI help
See code: src/commands/list.ts
prismic login
Login to prismic
USAGE
$ prismic login
OPTIONS
-h, --help show CLI help
--port=port [default: 5555] port to start the local login server
See code: src/commands/login.ts
prismic logout
logout of prismic
USAGE
$ prismic logout
OPTIONS
-h, --help show CLI help
See code: src/commands/logout.ts
prismic new
Create a project with a new prismic repository.
USAGE
$ prismic new
OPTIONS
-d, --domain=domain name of the prismic repository ie: example, becomes https://example.prismic.io
-f, --folder=folder name of project folder
-h, --help show CLI help
-t, --template=template Prismic template for the project
--force over write local files
--skip-install prevent running install command after generating project
See code: src/commands/new.ts
prismic signup
Create a prismic account
USAGE
$ prismic signup
OPTIONS
-h, --help show CLI help
--port=port [default: 5555] port to start the local login server
See code: src/commands/signup.ts
prismic slicemachine
Slice Machine Commands
USAGE
$ prismic slicemachine
OPTIONS
-d, --domain=domain prismic repo to to create
-f, --force
-h, --help show CLI help
--add-storybook add storybook to a slicemachine project
--bootstrap reconfigure a slicemachine project
--create-slice add a slice to a slicemachine project
--develop run slice machine
--folder=folder output directory
--framework=nextjs|nuxt
--library=library name of the slice library
--list list local slices
--setup setup slice machine in an already existing project
--skip-install prevent npm install from running
--sliceName=sliceName name of the slice
ALIASES
$ prismic sm
See code: src/commands/slicemachine.ts
prismic theme [SOURCE]
Create a project from a zip file or github repository with a new prismic repository.
USAGE
$ prismic theme [SOURCE]
ARGUMENTS
SOURCE path or url to a zip file, or a github Repository for the theme
OPTIONS
-c, --conf=conf [default: prismic-configuration.js] path to prismic configuration file
-d, --domain=domain name of the prismic repository ie: example, becomes https://example.prismic.io
-f, --folder=folder name of project folder
-h, --help show CLI help
-t, --theme-url=theme-url Url or path to the theme
--customTypes=customTypes [default: custom_types] path to custom types directory in the theme
--documents=documents [default: documents] path to documents in the theme
--force over-write local files
--skip-install prevent running install command after generating project
See code: src/commands/theme.ts
prismic whoami
Shows the user name of the current user
USAGE
$ prismic whoami
OPTIONS
-h, --help show CLI help
See code: src/commands/whoami.ts
git clone https://github.com/prismic.io/prismic-cli
cd prismic-cli
yarn
(uses workspaces)./bin/run --help
Run tests with npm test
or yarn test
The main testing libary used is @oclif/test the documentation on how to use the testing library can be found here https://github.com/oclif/fancy-test.
Mocking/stubbing dependencies can be tricky due package versions for nested dependencies, and native modules being used else where.
eslint is automatically run after the test
script, but it can also be invoked by running npm run posttest
or yarn posttest
, optionally with a --fix
flag.
leran is used for managing versions and publishing.
update versions with lerna version [semantic-version] --exact
Publish with lerna publish [--dist-tag alpha]
FAQs
Command line to bootstrap prismic projects.
The npm package prismic-cli receives a total of 4,689 weekly downloads. As such, prismic-cli popularity was classified as popular.
We found that prismic-cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.