Questions tagged [sitecore-cli]
Sitecore Command Line Interface (CLI) allows console communication with a Sitecore instance. All question that is related to this CLI can make use of this tag.
70
questions
1
vote
1
answer
70
views
Breaking content tree to separate modules with SCS
I am using Sitecore CLI for item serialization. I have the next content structure which I want to serialize to different modules:
sitecore/
├─ Content/
│ ├─ MyProject/
│ │ ├─ Home/
│ │ │ ├─ ...
1
vote
2
answers
50
views
Can the JSS import service be used on a Sitecore CD server?
I am setting up a CI/CD pipeline for our Sitecore project and encountering an issue when attempting to use the JSS deploy app command on the CD server. The command works fine on the CM server, but we ...
2
votes
1
answer
123
views
Installation of package fails on timeout
We are using Azure Devops to install packages which are generated during Build Pipelines.
We are using Sitecore CLI - SCS - to install these packages.
This command is the one -> dotnet sitecore ser ...
0
votes
0
answers
79
views
how to configure Sitecore CLI in Azure app services
I want to configure Sitecore CLI in Azure app services (TEST-CM Sitecore 10.3 site)
And want to Serialize Sitecore Content on Azure site (TEST-CM)
So, anyone have a setup steps of the Sitecore CLI on ...
0
votes
0
answers
27
views
Emulator proxy port 3042 not working in disconnected mode using sitecore JSS CLI
I have installed the latest JSS CLI V21.7.0, after the 'jss start' command the Sitecore contents are displayed using the port 'http://localhost:3000'. But I want to create and configure scjssconfig....
0
votes
0
answers
107
views
Sitecore ser push fails - You are not authorized to perform the task you are attempting
Sitecore serialization is no longer working on production, every attempt results in "You are not authorized to perform the task you are attempting. You may need to be assigned additional ...
0
votes
3
answers
137
views
Getting message for Sitecore CLI-5.2.113 - dotnet sitecore ser pull [closed]
I am doing the Sitecore CLI setup on my local Sitecore site.
I am executing the following command - dotnet sitecore ser pull
but I am getting this below message instead of pulling Sitecore items as,
...
0
votes
1
answer
46
views
openid-configuration: DNS Fail
We are using Sitecore 10.3. For the local setup we are using docker. The local setup works fine(cm, id and frontend site) except logging in to Sitecore using Sitecore CLI. It is failing with below ...
0
votes
1
answer
57
views
Why did SCS change branch template $name item paths to start with "_" instead of "#"?
I recently updated Sitecore CLI version 4.2.1 to 5.2.113.
I ran dotnet sitecore ser validate --fix and I noticed many of these log entries:
[/sitecore/templates/Branches/Project/ACME CO] INCORRECT ...
2
votes
2
answers
127
views
Error connecting to ID host: An error occurred while sending the request
I am getting an error when running dotnet sitecore login:
PS C:\projects\MySite> dotnet sitecore login --cm "https://cm.mysite.localhost" --authority "https://id.mysite.localhost&...
1
vote
2
answers
84
views
Getting an error in PowerShell ser push script running time
Getting an error in PowerShell ser push script running time.
Script : dotnet sitecore ser push -i Sitecore.Items.Master
Error : "Execution was cancelled. This occurs when the task is killed
or ...
0
votes
0
answers
162
views
XMCLOUD Serialization Error [GraphQLHttpException] Unexpected HttpResponseMessage with code 524
We are currently experiencing a challenge while running a CLI command.
The issue happening during the serialization process command
dotnet sitecore ser push -n 'Prod'
The exception message we are ...
2
votes
1
answer
92
views
Unhandled exception error when trying to login with Sitecore CLI
I have this error when trying login to sitecore using CLI.
Unhandled exception. System.IO.FileNotFoundException: The configuration file 'cdp.config.json' was not found and is not optional.
at ...
2
votes
0
answers
275
views
GraphQLHttpException Unexpected HttpResponseMessage with code: InternalServerError
We are on Sitecore 10.1 (IaaS) and have used Sitecore Serialization and CLI to install items on higher environments as a task in our Release pipeline. So far it has worked fine for us. But during our ...
1
vote
2
answers
102
views
Sitecore CLI Scope & AllowedPushOperations property equalents in TDS
We are planning to migrate from TDS to Sitecore CLI and I need to create module.json files following the existing TDS setup.
In one of the TDS .scproj, I see nodes like this:
<SitecoreItem Include=&...
1
vote
1
answer
226
views
You are not authorized to perform the task you are attempting
Environment
Sitecore 10.3 XP
Sitecore Management Services
Headless 21
SXA 10.3
SPE 6.3
Federated Authentication via Okta
Problem Statement
Followed the steps to configure the Sitecore Identity and ...
3
votes
3
answers
142
views
How to migrate from TDS to CLI
I have an existing project that uses TDS and now we have to use CLI instead.
Either in the code or the "serialization" folders, I could not find any config file which mentions that paths of ...
0
votes
3
answers
326
views
Should .sitecore folder get comitted to source control
Im developing my first Sitecore 10 site. I have installed the Sitecore CLI. This creates a folder in my project '.sitecore' with my CLI configuration, etc... Does this folder get committed to source ...
2
votes
1
answer
184
views
Could not locate plugin [email protected]. Some CLI commands may not function correctly
While implementing Sitecore Content Serialization using Sitecore Cli, getting this error:
"Could not locate plugin [email protected]. Some CLI commands may not ...
1
vote
2
answers
419
views
ERROR [Sitecore Identity] 'http://www.sitecore.net/identity/claims/originalIssuer' claim is missing. | Sitecore 10.2
When I am trying to use clientid and password for pushing and pulling from sitecore environment with Sitecore CLI.
I am getting following error in logs:
ERROR [Sitecore Identity]
'http://www.sitecore....
1
vote
1
answer
534
views
Sitecore serialization error : HTTP Error invoking GraphQL endpoint https://CM hostname/sitecore/api/management
I am trying to get started using Sitecore CLI on my Sitecore 10.1 project. I am using Sitecore CLI v5.2.113. When I try to run an info command, I get success so I am thinking my setup is okay.
However,...
1
vote
2
answers
433
views
XConnect and CLI not acknowledging a custom purge condition
I'm trying to create an XConnect custom contact purge condition for any contacts with 0 interactions. I've followed this walkthrough but I must be missing something as it's not registered when trying ...
2
votes
2
answers
236
views
DevOps build pipeline failing on SCS serialize/package step
My DevOps builds recently started failing on the step in which we use the Sitecore CLI and SCS to build an item package. To my knowledge, nothing has changed on our end, so it is unclear why the build ...
1
vote
1
answer
166
views
Is it possible to Serialize single item or tree from Sitecore CMS using Sitecore CLI
We are using Sitecore CLI as our serialization tool and we are trying to serialize Sitecore Items on the Item level under the Developer tab in Ribbon.
We are trying to replicate how Unicorn ...
1
vote
1
answer
347
views
ItemPathMatch conversion error when attempting to Publish using Sitecore CLI/Sitecore for Visual Studio
Sitecore Version - 10.2
CLI Version 5.1.12
During the publishing process, I receive the following error during the Build Serialized Item Package step
Error Building Package 'C:\project-longhorse\...
1
vote
2
answers
1k
views
Sitecore CLI Not Authorized to perform the task you are attempting: No Sitecore CLI User Created
I have 3 Sitecore environments that have the same configs required for non-interactive login with the Sitecore CLI. 2 of the 3 work without issue, but the 3rd is not. despite having the same ...
0
votes
1
answer
538
views
Error on push of sitecore CLI : Executed action can only be performed by Sitecore Administrators
I have sitecore instance on virtual machine, and I am trying to pull and push with my admin credentials only.
But still receiving following error:
1
vote
2
answers
182
views
Error while installing Sitecore Management Services package
I am getting the below error while installing Sitecore Management Services package in my Sitecore.
I am working upon Sitecore 10.0 and was trying to install the package Sitecore CLI 2.0.0
Method not ...
0
votes
2
answers
2k
views
open id configuration issue with sitecore CLI [closed]
getting error while logging into VM with following command:
dotnet sitecore login --authority https://<sitecore-identity-server> --cm https://<sitecore-instance> --allow-write true --...
0
votes
1
answer
109
views
Facing issue with Non interactive Sitecore CLI 5+ [closed]
I am facing issue while configuring non interactive mode of login for pre-prod environments.
Please let me know the exact steps to do that.
And also, how to configure sitecore CLI in azure?
3
votes
1
answer
388
views
Is it possible to renew certificates for local environment using SIF or CLI?
As my self-signed certificates for Sitecore 10.0 instance expired, I want to use SIF or CLI to renew them and best also to replace thumbprints to minimize manual work.
Is this possible with SIF or CLI?...
3
votes
1
answer
416
views
CLI Error: "The Sitecore Management Service version of the environment this Sitecore CLI operates with is outdated"
There is Sitecore 10.2 solution running with CLI tool v4.2. In order to upgrade to CLI v5.1 the following steps were done:
In sitecore.json all the plugin versions have been updated:
"plugins&...
2
votes
1
answer
699
views
Is Unicorn obsolete with Sitecore 10?
As far as I understand, Unicorn still works with Sitecore 10.x and I understand that Sitecore 10 introduced a new Serialization format.
So... does the new Serialization system of Sitecore 10 make ...
3
votes
3
answers
654
views
How to publish only serialized items
How to publish only the serialized items using the Sitecore CLI command.
I have configured the Module files path in the sitecore.json file.
When I run dotnet sitecore publish, i guess it is trying to ...
2
votes
1
answer
340
views
Error when trying to sync items using Sitecore for Visual Studio 4.1.0.0
Getting this error comes up every time I try to pull (and push) items from Sitecore, using Sitecore for Visual Studio.
Matched module configurations: SC.Feature.Disclaimers
Sync operation with ...
2
votes
1
answer
391
views
Sitecore Serialization using Sitecore CLI Installation Error
I am attempting to install Sitecore CLI 4.2.1 on Sitecore 10.0. The installation is fresh install of Sitecore 10.0. I keep getting this error below. This error will shut down Sitecore where I have to ...
1
vote
0
answers
63
views
Errors in validating multi-level taxonomy
I created a multi-level taxonomy SampleTaxonomy in Content Hub with hierarchy below:
I was pulling the serialized entities using ch-cli with ch-cli serialization pull entity -d SampleTaxonomy.
Then I ...
2
votes
1
answer
479
views
Sitecore CLI Error: It was not possible to find any installed .NET Core SDKs
I am new to Sitecore and trying to sync Sitecore content using Sitecore CLI. I am using Sitecore 10.2 version and CLI 4.2.1 version. I have installed Microsoft .NET Core SDK, ASP.NET Core Runtime
...
5
votes
1
answer
265
views
How do I use the Sitecore CLI with Sitecore Cloud to serialize content?
I've been watching all of videos about XM Cloud (https://developers.sitecore.com/learn/getting-started/xm-cloud-introduction) and I have a question about serialization? How is it working on XM Cloud?
...
5
votes
2
answers
839
views
Sitecore CLI can't locate plugin that actually exists
I'm following the documentation on how to set up Sitecore CLI: https://doc.sitecore.com/xp/en/developers/102/developer-tools/install-sitecore-command-line-interface.html
After doing all the steps I've ...
2
votes
1
answer
112
views
not able to pull content using CLI and SVS [closed]
I have installed the Helix example and I am trying to pull items from the Sitecore content tree using CLI and SVS. In both cases, I am getting an error,
No connection could be made because the target ...
0
votes
1
answer
771
views
Sitecore serialization dotnet sitecore ser validate error [closed]
I am getting this error whenever i am running command dotnet sitecore ser validate.How to fix.
0
votes
1
answer
475
views
Sitecore CLI integrate with Visual Studio error [duplicate]
Poweshell error when trying to run dotnet sitecore ser push
This is my folder structure
0
votes
2
answers
1k
views
Unable to run Sitecore CLI Serialization push command
I am trying to run the dotnet sitecore ser push command after non-interactive login (login works fine), but only ser push and ser pull command give the following error otherwise all the ser command ...
2
votes
1
answer
757
views
jss create is not supported from JSS CLI version 20.0.0
I am trying to create an application for sitecore 10 JSS with react. But I am getting the error
jss create is not supported from JSS CLI version 20.0.0
can you please suggest.
0
votes
0
answers
998
views
Running Sitecore 10 CLI command Error "dotnet sitecore ser push -p" getting the attached error
When I am running Sitecore 10 CLI command dotnet sitecore ser push -p getting the following error.
dotnet sitecore ser push -p
Unhandled exception: System.Exception: Unhandled exception
---> ...
0
votes
1
answer
278
views
Sitecore CLI 4.1.0-r00492 Login erroring "Endpoint belongs to different authority:"
I have installed a brand new, vanilla version of Sitecore 10.2, using Docker Desktop containers.
My Identity URL (which works) is https://xp0id.localhost.
My CM Url (which works) is https://xp0cm....
1
vote
1
answer
288
views
How to configure a friendly name for the generated user with CLI using non-interactive client login?
Sitecore 10.2:
I followed the documentation as described here.
Configuration applied to Identity Server and stored at C:\identity\config\sitecore.identityserver.devex.xml
<?xml version="1.0&...
0
votes
2
answers
868
views
Error while getting client credentials token: invalid_client on interactive login with Sitecore CLI
I am using the Sitecore CLI to login (interactive) to my local instance and that works fine.
We have a setup for a non-interactive login for the CLI to the cloud dev environment. I wanted to test that ...
1
vote
2
answers
1k
views
Sitecore 10.2 CLI error the SSL connection could not be established [closed]
While I have setup the CLI in helix project root folder and trying to run below command I'm getting error
dotnet sitecore ser pull
The SSL connection could not be established, see inner exception.
...