shopify cli: theme deploy changed file only - shopify

using shopify cli, theme deploy will push entire directory, which is slow. I changed a few files and only want push them to shopify.
is there any theme deploy changed files only cmd?

Without config.yml setup
theme deploy --password=[your-api-password] --store=[your-store.myshopify.com] --themeid=[your-theme-id] --env=[environemnt-name] [path-to-file/file-name]
EXP:
theme deploy --password=AFSJASFLDJ32R424 --store=test.myshopify.com --themeid=3242435425 --env=development assets/test.min.js
With config.yml and environment setup
EXP: Deploy One file
theme deploy --env=development assets/test.min.js
EXP: Deploy Mutiple Files
theme deploy --env=development assets/test.min.js assets/test-2.min.js
config.yml example configurations
development:
password: 1232134124124adfasd32423
theme_id: "93204212432"
store: test.myshopify.com

If you use theme kit, you can just use upload command. It is very similar to shopify-cli.
theme
Theme Kit is a tool kit for manipulating shopify themes
Theme Kit is a fast and cross platform tool that enables you to build shopify themes with ease.
Complete documentation is available at https://shopify.github.io/themekit/
Usage:
theme [command]
Available Commands:
bootstrap Bootstrap will create theme using Shopify Timber
configure Create a configuration file
deploy deploy files to shopify
download Download one or all of the theme files
get Get a theme and config from shopify
help Help about any command
new New will create theme using Shopify Timber
open Open the preview for your store.
remove Remove theme file(s) from shopify
replace Overwrite theme file(s)
update Update Theme kit to the newest version.
upload Upload theme file(s) to shopify
version Print the version number of Theme Kit
watch Watch directory for changes and update remote theme

Related

Bigcommerce is it possible to pull all bigcommerce files into a local environment where I can test changes locally?

is it possible to push all files I have in bigcommerce into a github repo which I can clone and edit and test locally? And whenever I merge a new pull request to that repo, it automatically updates the website in production?
I believe this can be done with Github Actions, as they can be set up to allow you to make changes locally then push your changes to the main GitHub repository. The actions can be set to automatically upload and apply the theme files to your BigCommerce store.
Some other ref docs for you can be found here:
Github Marketplace
How to use Github actions
Stencil CLI
Commands

How do i modify BigCommerce Files from my my pc?

I am working on a BigCommerce website and i'm using the online editor to modify HTML files but i can't modify js files because they are read only files
How can I work on my pc and sync modifications with the website .???
if you are modifying theme files, and you are using a Stencil theme, then you can download the theme's files, edit them locally and add them back to the site.
See:
Installing Stencil
Theme Documentation

Custom Branding for application

I am having trouble with branding the application in cumulocity.
I tried to test branding by cloning the cockpit app to use our Branding.
If i see in the manage application window i am not able to customize the branding/logo. I don't see the option to customize the branding Although i removed the cumulocity branding plugin from the app now I only see the name of my application as the logo.
In the plugins window i saw only cumulocity branding, nothing for custom branding. Can you please correct me if i missed something?
Here is how I would do it. Clone or download the cumulocity-ui-plugin-examples from the cumulocity repository then:
Go to plugins folder
Find myBranding folder
Now go to the img folder and changes the logo-main.svg and logo.svg for your desire logos. Also, you can check the colors.less file in the variables folder and change the colors of your application UI.
Now go to the main folder (where you download the repository) and run c8y deploy:plugin myBranding. This command create a .zip file of the plugin.
Next, go the administration app in Cumulocity , find the app your cloned and click on edit, then go to the plugins tab. There you can find the list of the plugins that your app is using.
Find the Branding: Cumulocity plugin and click on remove like .
Next, in the same menu, click on add plugin.
Look on your computer for the .zip file you create on the 4 step and load it.
Click on save.
Open your app.
Note: If you haven't installed the c8y tool and assuming you have installed nodejs , just run npm i cumulocity-tools -g to get the tool. See this great documentation for more info.
You can find a documentation related to this in: branding guide.
Hope this helps!

Template edit option not found in back end after apply stencil theme : Bigcommerce Stencil

I have developed stencil theme and apply on live store.
After apply stencil theme, Not found template edit (edit html/css) option in back end like below URL:
https://support.bigcommerce.com/articles/Public/Accessing-and-Customizing-Template-Files
Can any body help me ?
In the link you provided, it denotes that those instructions for edit html/css options are only available in browser for blueprint themes at this time.
Stencil themes are uploaded as archive (.zip) files and do not interact with webdav in any way.
Support is still pending for downloading of themes, which would be required in this case since you are using a theme from the marketplace.
For info and updates, review: https://stencil.bigcommerce.com/docs/new-and-pending-features

BigCommerce Stencil Theme Upload

After upgrading to the latest version of Stencil CLI, my current theme no longer builds or runs locally (due to missing StencilEditor plugin).
I upgraded the base theme to the latest version of Stencil on GitHub. I am now receiving an error:
Your theme could not be added at this time. Please try again. (TR-1200)
The theme passes lint and builds correctly locally. Any suggestions?