Zid Docs
Merchant APIApp APIThemes
Merchant APIApp APIThemes
Help Center
Slack
  1. Themes CLI
  • 🚨 Important Update: Zid Themes
  • Landing Page Development
  • Getting Started with Zid Themes
    • Introduction to Theme Development
    • Manage your Themes
    • Building Themes in Zid
    • Theme File Structure
    • Twig Syntax and Features
    • Zid Theme Packager
  • Templates
    • Layout
    • Home Page
    • Products
    • Cart
    • Store Language and Currency
  • Settings Schema
    • Text
    • Number
    • Text-Area
    • Select
    • Radio Buttons
    • Checkbox
    • Range
    • Color
    • Image
    • Product
    • Category
    • List
    • Fieldset
  • Code Snippets
    • Apple Pay Quick Checkout
    • Custom CSS Injection
    • Displaying the Store's Business Center Logo
    • Customizing Copyright Text
    • Store's Main Navigation Menu
    • Customer Wishlist
    • Products
      • Products Badges
      • Product Ratings
      • Remaining Product Stock
      • Sold Items Count
      • Product Filtration by Attributes
      • Grouped Products
      • Product Questions & Answers
      • Product Restock Notfication
    • SEO
      • Images alt text
      • Themes SEO Marketing Tags
    • Marketing
      • Metafields
      • Gift Feature
      • Loyalty Program
  • Zid Themes Library: API Integration
    • Products
    • Product Categories
    • Cart
    • Blog
    • Customer
    • Store Settings
  • Data Reference
    • Locals
    • Store
    • Cart
    • Product
    • Products List
    • Category
    • Categories List
    • Session
    • FAQs
    • Customer
    • Blogs
    • Page
    • Main Menu
    • Main Navigation Menu
    • Request
    • Orders
    • Addresses
    • Store Payment Methods
    • Store Shipping Methods
    • Store Banks
    • Asset URL
    • Header Meta Tags
    • Loyalty pogram Wallet
  • Themes CLI
    • CLI Authentication
    • Theme Create
    • Theme Package
    • Theme Update
    • Themes List
    • Theme Preview
  1. Themes CLI

CLI Authentication

Authenticate your CLI tool with your Zid partner account.

Description#

The login command initiates the authentication process, enabling you to connect your CLI tool with your Zid partner account. Authentication is required to access most zid-theme commands.

Usage#

Authentication Process#

1.
Run the Command:
2.
Local Server Initialization:
A local Express server starts on port 4444.
3.
Browser Redirect:
Your default web browser automatically opens, directing you to the Zid Partner Dashboard.
4.
Log in:
Use your Zid partner account credentials to log in.
5.
Redirect & Completion:
After successful login, the dashboard redirects you back to the local server.
6.
Token Storage:
The CLI tool securely stores your authentication tokens locally.

Important Notes#

An active internet connection is required.
Ensure port 4444 is available on your machine. If it's in use by another application, the authentication flow may not work.
Your login session is stored locally and securely. You won’t need to log in again unless:
Your session expires.
You manually log out.

Example Workflow#

1.
Output:
Starting authentication process...
Opening Zid Partner Dashboard in your default browser...
Waiting for authentication...
2.
Final Output:
Successfully authenticated! You can now use zid-theme commands.

Troubleshooting#

If you encounter issues during the login process, try the following:
ProblemSolution
Internet connection issuesEnsure you have a stable internet connection.
Port 4444 is unavailableCheck if port 4444 is free or stop other applications using the port.
Browser does not open automaticallyOpen your browser and manually navigate to: http://localhost:4444.
Persistent login issuesClear your browser cache and cookies, then retry.

Security#

Your authentication tokens are stored securely on your local machine.
To protect your account information:
Always use the official zid-theme CLI tool.
Keep your system secure.

Learn More#

For more information on theme development and deployment, refer to the Zid Theme Development Documentation.
Modified at 2025-01-23 10:48:54
Previous
Themes CLI
Next
Theme Create
Built with