# \#cli

**URL:** https://community.prismic.io/tag/cli/38.md

[Latest](https://community.prismic.io/latest.md) · [Categories](https://community.prismic.io/categories.md) · [Tags](https://community.prismic.io/tags.md)

---

## [Prismic CLI and environments](https://community.prismic.io/t/prismic-cli-and-environments/20219)

<div class="topic-metadata">

**Author:** [@ben7](https://community.prismic.io/u/ben7)\
**Replies:** 1\
**Last updated:** [July 1, 2026, 11:38am UTC](https://community.prismic.io/t/prismic-cli-and-environments/20219 "2026-07-01T11:38:18Z")

</div>

Describe your question/issue in detail I have just migrated to Type Builder from Slice Machine. The migration seemed to quite well. I now have a prismic.config.json instead of a slicemachine.config.json. Unfortunately, …

---

## [Cannot Login Via CLI - › Warning: current base is set to https://prismic.io/](https://community.prismic.io/t/cannot-login-via-cli-warning-current-base-is-set-to-https-prismic-io/15843)

<div class="topic-metadata">

**Author:** [@createcacoon](https://community.prismic.io/u/createcacoon)\
**Replies:** 8\
**Last updated:** [November 3, 2024, 10:50am UTC](https://community.prismic.io/t/cannot-login-via-cli-warning-current-base-is-set-to-https-prismic-io/15843 "2024-11-03T10:50:24Z")

</div>

Describe your question/issue in detail Cheers, I'm unable to login via CLI. When I execute prismic login, I first receive this message: › Warning: current base is set to https://prismic.io/ Prismic: Press any key to…

---

## [CLI - cannot login due to CORS error error on localhost:5555](https://community.prismic.io/t/cli-cannot-login-due-to-cors-error-error-on-localhost-5555/7326)

<div class="topic-metadata">

**Author:** [@bdobs](https://community.prismic.io/u/bdobs)\
**Replies:** 9\
**Last updated:** [September 9, 2024, 10:48am UTC](https://community.prismic.io/t/cli-cannot-login-due-to-cors-error-error-on-localhost-5555/7326 "2024-09-09T10:48:25Z")

</div>

Hi, Using prismic-cli, running prismic login or prismic signup doesn't work. In Safari, I get: On the website: It looks like your CLI is unreachable, please refresh the page. In the browser console: Fetch API ca…

---

## [Oops we can't log you in](https://community.prismic.io/t/oops-we-cant-log-you-in/16160)

<div class="topic-metadata">

**Author:** [@paygeoncard](https://community.prismic.io/u/paygeoncard)\
**Replies:** 3\
**Last updated:** [June 20, 2024, 2:10pm UTC](https://community.prismic.io/t/oops-we-cant-log-you-in/16160 "2024-06-20T14:10:35Z")

</div>

I don't know if I am the only one getting this error but every time without fail when I try to login using the cli, I get the same error message and unable to proceed further. I've seen the same error message so many tim…

---

## [Prismic Login CLI failed](https://community.prismic.io/t/prismic-login-cli-failed/16062)

<div class="topic-metadata">

**Author:** [@mrezzaaa](https://community.prismic.io/u/mrezzaaa)\
**Replies:** 1\
**Last updated:** [June 3, 2024, 3:05pm UTC](https://community.prismic.io/t/prismic-login-cli-failed/16062 "2024-06-03T15:05:05Z")

</div>

I tried to logging in to prismic using cli to bind project with nextjs. But they said "oops" After looking to console got this error. Also third party cookies issue. I hope this problem will be solved ASAP.

---

## [Github Codespaces for Development](https://community.prismic.io/t/github-codespaces-for-development/16028)

<div class="topic-metadata">

**Author:** [@nf\_mastroianni](https://community.prismic.io/u/nf_mastroianni)\
**Replies:** 1\
**Last updated:** [June 1, 2024, 3:06am UTC](https://community.prismic.io/t/github-codespaces-for-development/16028 "2024-06-01T03:06:48Z")

</div>

Describe your question/issue in detail I'm trying to make use of GitHub Codespaces to work on NextJS/Prismic projects. I can get Slice Machine up and running via Codespaces, however, when I log into Prismic via slice mac…

---

## [Installation keeps failing](https://community.prismic.io/t/installation-keeps-failing/15933)

<div class="topic-metadata">

**Author:** [@meitetools](https://community.prismic.io/u/meitetools)\
**Replies:** 1\
**Last updated:** [May 16, 2024, 2:59pm UTC](https://community.prismic.io/t/installation-keeps-failing/15933 "2024-05-16T14:59:38Z")

</div>

---

## [Desired flow promoting custom types and slice definitions through multiple environments](https://community.prismic.io/t/desired-flow-promoting-custom-types-and-slice-definitions-through-multiple-environments/13984)

<div class="topic-metadata">

**Author:** [@tim.van.den.hof](https://community.prismic.io/u/tim.van.den.hof)\
**Replies:** 6\
**Last updated:** [April 22, 2024, 2:06pm UTC](https://community.prismic.io/t/desired-flow-promoting-custom-types-and-slice-definitions-through-multiple-environments/13984 "2024-04-22T14:06:47Z")

</div>

We are looking into how to incorporate the slice machine sync in our CI/CD pipeline (on Azure DevOps), combined with Prismic's feature of having multiple environments. So far we found out that there is no slice-machine c…

---

## ["Ooops it looks like you are trying to login to Prismic through your terminal, but something has gone wrong"](https://community.prismic.io/t/ooops-it-looks-like-you-are-trying-to-login-to-prismic-through-your-terminal-but-something-has-gone-wrong/14891)

<div class="topic-metadata">

**Author:** [@nohwee](https://community.prismic.io/u/nohwee)\
**Replies:** 5\
**Last updated:** [January 8, 2024, 5:10pm UTC](https://community.prismic.io/t/ooops-it-looks-like-you-are-trying-to-login-to-prismic-through-your-terminal-but-something-has-gone-wrong/14891 "2024-01-08T17:10:45Z")

</div>

I'm using Macbook Air with NodeJS installed directly from their website. After creating a brand new project, I followed the instructions. After installing all the necessary files on CLI, it prompted me to open up the l…

---

## [Errors occurred while validating your project's slices](https://community.prismic.io/t/errors-occurred-while-validating-your-projects-slices/13983)

<div class="topic-metadata">

**Author:** [@sharukkan.m](https://community.prismic.io/u/sharukkan.m)\
**Replies:** 3\
**Last updated:** [September 1, 2023, 8:35am UTC](https://community.prismic.io/t/errors-occurred-while-validating-your-projects-slices/13983 "2023-09-01T08:35:55Z")

</div>

\[slicemachine\] \[slicemachine\] \> nextjs-starter-prismic-multi-page@0.0.0 slicemachine \[slicemachine\] \> start-slicemachine \[slicemachine\] \[next\] \[next\] \> nextjs-starter-prismic-multi-page@0.0.0 next:dev \[next\] \> next \[next…

---

## [Error while initialising prismic-ts-codegen](https://community.prismic.io/t/error-while-initialising-prismic-ts-codegen/13680)

<div class="topic-metadata">

**Author:** [@david15](https://community.prismic.io/u/david15)\
**Replies:** 8\
**Last updated:** [July 18, 2023, 9:50am UTC](https://community.prismic.io/t/error-while-initialising-prismic-ts-codegen/13680 "2023-07-18T09:50:15Z")

</div>

I'm setting up Prismic in SvelteKit - I am attempting to use prismic-ts-codegen - I have followed the docs and get as far as running npx prismic-ts-codegen init but run into the following error: file:///\*\*\*/no…

---

## [Bulk remove prismic documents by uid](https://community.prismic.io/t/bulk-remove-prismic-documents-by-uid/13121)

<div class="topic-metadata">

**Author:** [@patrickzsy](https://community.prismic.io/u/patrickzsy)\
**Replies:** 1\
**Last updated:** [May 16, 2023, 12:38pm UTC](https://community.prismic.io/t/bulk-remove-prismic-documents-by-uid/13121 "2023-05-16T12:38:08Z")

</div>

Hi team, Is there a way to bulk remove prismic documents by uid? I have got 200 documents in a specific locale that need to be removed/archived, search and remove in prismic documents will take a long time. Can I achie…

---

## [Fetching Remote Custom Types using the CLI](https://community.prismic.io/t/fetching-remote-custom-types-using-the-cli/12878)

<div class="topic-metadata">

**Author:** [@g.rosado](https://community.prismic.io/u/g.rosado)\
**Replies:** 1\
**Last updated:** [April 11, 2023, 6:06pm UTC](https://community.prismic.io/t/fetching-remote-custom-types-using-the-cli/12878 "2023-04-11T18:06:42Z")

</div>

Is there a way to pull remote custom types using the prismic CLI? I'm trying to migrate projects to SliceMachine but without this feature gets pretty hard :confused: Thanks!

---

## [Need help trying to push Slice/Document changes through CLI instead of Slicemachine](https://community.prismic.io/t/need-help-trying-to-push-slice-document-changes-through-cli-instead-of-slicemachine/12493)

<div class="topic-metadata">

**Author:** [@justin.mccarthy\_test](https://community.prismic.io/u/justin.mccarthy_test)\
**Replies:** 2\
**Last updated:** [February 23, 2023, 3:42pm UTC](https://community.prismic.io/t/need-help-trying-to-push-slice-document-changes-through-cli-instead-of-slicemachine/12493 "2023-02-23T15:42:48Z")

</div>

Greetings, I have been trying to find a way to automate pushing the changes that I have made locally to my Prismic repository. Is there any way that this can be done through Prismic CLI or is there any other way? Any an…

---

## [Document Filtering Best Practice](https://community.prismic.io/t/document-filtering-best-practice/12284)

<div class="topic-metadata">

**Author:** [@goldstandartdev](https://community.prismic.io/u/goldstandartdev)\
**Replies:** 1\
**Last updated:** [February 7, 2023, 9:54pm UTC](https://community.prismic.io/t/document-filtering-best-practice/12284 "2023-02-07T21:54:19Z")

</div>

Hello, I want to get advice on filtering documents. We have a component that receives articles (different types of articles) and it is possible to filter (by type, creation date (custom field), date from, date to, + some…

---

## [404 on the homepage](https://community.prismic.io/t/404-on-the-homepage/11593)

<div class="topic-metadata">

**Author:** [@kinga.maria.rozanska](https://community.prismic.io/u/kinga.maria.rozanska)\
**Replies:** 1\
**Last updated:** [November 10, 2022, 5:57pm UTC](https://community.prismic.io/t/404-on-the-homepage/11593 "2022-11-10T17:57:27Z")

</div>

Hello, My team and I have been getting 404 (only) on the homepage quite regularly. To fix it temporarily we have been redeploying the website in Vercel. We have a hard time figuring out what is causing this error. Some…

---

## [Provide account when running npx @slicemachine/init](https://community.prismic.io/t/provide-account-when-running-npx-slicemachine-init/9480)

<div class="topic-metadata">

**Author:** [@singhgru](https://community.prismic.io/u/singhgru)\
**Replies:** 1\
**Last updated:** [March 24, 2022, 2:10am UTC](https://community.prismic.io/t/provide-account-when-running-npx-slicemachine-init/9480 "2022-03-24T02:10:34Z")

</div>

I have multiple Prismic accounts. When I ran npx @slicemachine/init --repository my-repo on my mac machine the CLI picked up wrong account because of auto login in browser. This seems like a bug as I assume repository n…

---

## [Prismic command not found after installation (OSX)](https://community.prismic.io/t/prismic-command-not-found-after-installation-osx/8460)

<div class="topic-metadata">

**Author:** [@vorben](https://community.prismic.io/u/vorben)\
**Replies:** 1\
**Last updated:** [December 27, 2021, 9:53am UTC](https://community.prismic.io/t/prismic-command-not-found-after-installation-osx/8460 "2021-12-27T09:53:27Z")

</div>

Hi guys, I'm having trouble getting the prismic command to do anything. The current node version is: v14.18.2 Installed prismic using: sudo npm install -g prismic-cli seems the installation went successfully and aft…

---

## [CLI error - missing files](https://community.prismic.io/t/cli-error-missing-files/8129)

<div class="topic-metadata">

**Author:** [@tim8](https://community.prismic.io/u/tim8)\
**Replies:** 1\
**Last updated:** [November 29, 2021, 12:11pm UTC](https://community.prismic.io/t/cli-error-missing-files/8129 "2021-11-29T12:11:16Z")

</div>

Hi there, Just trying to work through getting set up with Prismic and getting errors with the CLI. It installs with no errors using yarn global add prismic-cli I can also use: prism --version after install and it ret…
