Questions tagged [sxa-cli]

SXA CLI is a useful command-line tool to automatize tasks for an SXA project. Questions that are related CLI om Sitecore SXA context can use this tag

Filter by
Sorted by
Tagged with
0 votes
0 answers
56 views

Sitecore SXA CLI set up

I am trying to set up SXA CLI on Sitecore 10.3 and SXA 10.1.0. However, getting error as below. Using Latest node js - 21.6.2 Has anyone configured SXA CLI on the latest Sitecore? Logs below 0 ...
Syed Amanulla's user avatar
1 vote
1 answer
121 views

How to upload JS & CSS file changes to pre-optimized-min media library items

I have an existing SXA project with a custom theme, in my local machine. I have made changes in the gallery.js file. Path: D:\Projects\External\MyProject\theme\-\media\Themes\MyProject\Shared\Shared ...
sukesh's user avatar
  • 3,129
0 votes
0 answers
79 views

npm sxa command installation error

I am using Visual Professional 2022, with Sitecore 10.0 I am trying to install SXA for themes. But when I run the command npm install -g @sitecore/sxa-cli --force It's installing the required files ...
Mamtha's user avatar
  • 65
0 votes
1 answer
378 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:
Jagmeet Kaur's user avatar
3 votes
2 answers
110 views

Pre-optimized-min file named with GUID Sitecore SXA 10.2

We use Unicorn in our project, and we are saving the pre-optimized-min.yml files in source control. Here is the exclude predicate we have for this file: <exclude childrenOfPath="/sitecore/...
Germán Merlo's user avatar
1 vote
1 answer
217 views

How do I disable minification for pre-optimized-min items in my theme?

Sitecore/SXA 10.2 I find it very difficult to know exactly which part of my code is broken when the theme scripts are mangled beyond my comprehension. What can I do to improve this experience? Take ...
Michael West's user avatar
  • 18.2k
1 vote
1 answer
463 views

Cannot read properties of null (reading '1')

I am getting this error when I am trying to create a new theme using SXA CLI. ? Enter your login sitecore\admin ? Enter your password [hidden] ? Specify theme path. Root is Themes folder(format <...
Samke11's user avatar
  • 359
1 vote
0 answers
69 views

Error on sxa watch [Cannot read property 'jsPath' of undefined]

I set up my project with Creative Exchange Live using SXA CLI, the command "sxa build" works but when I try to use "sxa watch" or "sxa upload" I have this below. I ...
vnico's user avatar
  • 11
0 votes
0 answers
78 views

Synchronizing theme changes with Creative Exchange Live

I set up my project with Creative Exchange Live using SXA CLI, everything works when I use "sxa watch" my files are well compiled and send to the server. The issue is when I try to get the ...
vnico's user avatar
  • 11
3 votes
3 answers
739 views

SXA CLI skips uploading pre-optimized-min.css.map, says "Incorrect File Name."

On Sitecore 10.1, we have a pretty standard SXA CLI setup. in gulp\config.js the following settings are set for Css handling. css: { path: ['styles/**/*.css','styles/**/*.css.map'], ...
Mark Cassidy's user avatar
  • 25.2k
4 votes
1 answer
631 views

How to I use file based Scriban template development with SXA Creative Exchange?

We're in the process of establishing a new SXA solution. As part of that work we've established the necessary folder structure and procedures to use the SXA CLI to build and upload our theme (later, ...
Mark Cassidy's user avatar
  • 25.2k
0 votes
0 answers
311 views

Creative Exchange Live Gulp task returning not authenticated

We're using Creative Exchange Live gulp task to upload FE Assets but at the moment it is keep failing by giving 403 error status message. I have followed the Sitecore documentation on setting up at ...
Tony's user avatar
  • 1
3 votes
1 answer
323 views

Serialized version contained a blank language value!

I am trying to serialize some Sitecore items from the Sitecore instance running in my docker container. So I try this: dotnet sitecore ser pull This works most of the time. But occasionally I get an ...
SXAGOR's user avatar
  • 65
2 votes
2 answers
636 views

Caching issue with the pre-optimized-min file in Sitecore SXA 9.3

We are facing a caching issue for the pre-optimized-min file generated by the Sitecore cli gulp task. As this task adds/updates the file in the Sitecore, which only updates the timestamp of the file. ...
Mrunal Brahmbhatt's user avatar
2 votes
2 answers
785 views

SXA CLI not executing

I have installed the latest SXA CLI (@sxa/CLI) on a development computer. When I run "sxa init" I get: SyntaxError: The requested module 'file:///D:/XXXXx/AppData/Roaming/npm/node_modules/@...
Gary Williams's user avatar
3 votes
1 answer
399 views

Unable to upload files with larger than 100kb using Creative Exchange/CLI

I have created a new theme using the CLI and have it connected to my local instance of Sitecore. This all mostly works without any issues. I have my settings to upload source files (SASS, CSS and JS). ...
jammykam's user avatar
  • 13.8k
1 vote
1 answer
276 views

How to create project for SXA themes in Helix-Habitat solution in SXA 9.3?

We are creating a new project with Sitecore SXA 9.3. This project will have multiple sites and multiple themes also. We are creating a new solution by following Helix Principles. So let's say we have ...
Vinod Chavan's user avatar
1 vote
0 answers
71 views

Why is the SXA CLI tooling not open source like JSS? [closed]

The Sitecore SXA CLI tooling lives in its own npm repository and does not seem to be open source like the Sitecore JSS tooling. Is there a reason why this is the case? It is not that much of a problem ...
Serge van den Oever's user avatar