Shopify CLI और Git Commands Guide in Hindi

Shopify CLI और Git Commands Guide in Hindi

Introduction

हेलो दोस्तों आज हम Shopify के कुछ important commands के बारे में जानेगे!. क्युकी Shopify development में काम करते time हमें कई तरह के CLI( Command Line Interface ) commands की जरुरत होती है!. ये commands हमारे लिए theme develop करने, app created करने, functions implement करने और Git ke साथ version control करने में बहुत helpfull होते है!. तो इस post में हमें Theme Development, App Development, Function App और Git और important commands के बारे में समझेंगे!.

Shopify General CLI Commands

ये commands Shopify CLI की basic functionalities के लिए इस्तेमाल होते है!.

  • shopify auth logout => Shopify account/store से logout करने के लिए!
  • shopify commands => सभी available Shopify CLI commands के list दिखने के लिए!.
  • shopify config autocorrect on/off/status => गलत type किये गए commands को auto-correct enable/disable या status check करने के लिए!.
  • shopify help => Help information और command reference दिखने के लिए!.
  • shopify search => shopify.dev की documentation में search करने के लिए!.
  • shopify upgrade => CLI को upgrade करने के लिए instructions देता है!.
  • shopify version => आपके CLI की current version दिखने के लिए!.

Shopify Theme Development Commands

Theme को develop और manage करने के लिए सबसे जरुरी commands

  • shopify theme check => Theme की coding standards validation के लिए!.
  • shopify theme console => Liquid REPL tool खोलने के लिए!.
  • shopify theme delete => Store से theme delete करने के लिए!.
  • shopify theme dev => Theme को development mode में store पर upload और live preview करने के लिए!.
  • shopify theme info => Theme और store environment की detail देखने के लिए!.
  • shopify theme init => Git Repositories से new theme start करने के लिए!.
  • shopify language-server => Liquid language Server protocol start करने के लिए!.
  • shopify theme list => Store की सभी themes list करने के लिए!.
  • shopify theme open => Remote theme का preview browser में open करने के लिए!.
  • shopify theme package => Theme को .zip file में package करने के लिए!.
  • shopify theme profile => Theme rendering performance profile देखने के लिए!.
  • shopify theme publish => किसी theme को live/published करने के लिए!.
  • shopify theme pull => Store से remote theme local system में download करने के लिए!.
  • shopify theme push => Local theme को store पर upload करने के लिए!.
  • shopify theme rename => Theme का name change करने के लिए!.
  • shopify theme share => Shareable theme create करने के लिए( unpublished, random name के साथ ).

Shopify App CLI Commands

Shopify Apps build और manage करने के लिए इस्तेमाल होने वाले important commands

  • shopify app init => New App project scaffold करने के लिए( scaffold यानि command run करने से हमें readyment shopfy तरफ से folder available होता है जिसमे हम अपना coding logic implement कर सकते है!.)
  • shopify app build => App build करने के लिए ( Theme App Extensions में theme check भी चलता है!. )
  • shopify app config link => Partner Dashboard की settings को project में pull करने के लिए!.
  • shopify app config use => App CLI के लिए default config set करने के लिए!.
  • shopify app dev => App को dev mode में run और preview करने के लिए!.
  • shopify app dev clean => Dev preview stop करने और app को revert करने के लिए!.
  • shopify app env pull => .env file generate/update करने के लिए!.
  • shopify app env show => Current environment variables देखने के लिए!.

Shopify Functions Commands

Shopify Functions का इस्तेमाल checkout, Discounts और core feature को customize करने के लिए किया जाता है!.

  • shopify app function build => Function को WebAssembly में compile करने के लिए!.
  • shopify app function run / replay => Function को local में execute/replay करने के लिए!.
  • shopify app function schema => GraphQL schema file generate करने के लिए!.
  • shopify app function typegen => GraphQL queries से types generate करने के लिए!.
  • shopify app generate extension => New extension generate करने के लिए (UI/Function).
  • shopify app import-extensions => Partner Dashboard से extension import करने के लिए!.
  • shopify app info => App details देखने के लिए ( store, scopes, CLI verson etc..)
  • shopify app logs sources => Logs sources List करने के लिए!.
  • shopify app logs => App के real-time logs stream करने के लिए!.
  • shopify app release => App का new version release करने के लिए!.
  • shopify app versions list => सभी released versions list करने के लिए!.
  • shopify app deploy => App और extension को deploy करने के लिए.
  • shopify app webhook trigger => Test webhook events manually trigger करने के लिए!.

Git के Important Commands

Git हर developer के लिए सबसे जरुरी tool है version control और collaboration के लिए!.

  • git init => किसी folder को Git repository में initialize( new repository create ) करने के लिए!.
  • git clone <repo-url> => Remote Repository को local system पर clone करने के लिए!.
  • git status => Repository की current status देखने के लिए!.
  • git add <file> => किसी specific file को stage करने के लिए!.
  • git add . => सभी changes को stage करने के लिए!।
  • git commit -m “message” => Changes को commit message के साथ save करने के लिए!.
  • git log => Commit history देखने के लिए!.
  • git diff => Commits या files के बीच changes देखने के लिए!.
  • git branch => सभी branches देखने के लिए!.
  • git checkout -b <branch> => New branch create और उस पर switch करने के लिए!.
  • git merge <branch> => किसी branch को merge करने के लिए!.
  • git pull => Remote repo से latest changes लेने के लिए!.
  • git push => Local changes को remote repo पर भेजने के लिए!.
  • git reset –hard => Working directory को किसी specific commit पर reset करने के लिए!.
  • git revert <commit> => किसी commit को undo करने के लिए!.
  • git stash / git stash pop => Temporary changes save और restore करने के लिए!.
  • git tag <tag-name> => किसी commit को tag करने के लिए ( release version के लिए ).
  • git config –global user.name / user.email => Git username और email globally set करने के लिए!.

General CLI Commands: Shopify CLI basics समझने के लिए।
Theme Commands:  Shopify themes को manage और customize करने के लिए।
App Commands : Shopify apps और extensions बनाने के लिए।
Functions Commands : Checkout और discounts जैसी core functionalities customize करने के लिए।
Git Commands : Code को सुरक्षित रखने और टीम में काम करने के लिए।

अगर आप एक Shopify developer हैं तो ये commands आपकी daily coding journey को आसान और तेज़ बना देंगे।

 

 

Leave a Comment

Your email address will not be published. Required fields are marked *