Git Product home page Git Product logo

recharge-themekit's Introduction

recharge-themekit

Log into recharge apps

Go into cookies, get session cookie.

Paste it into env

paste url into env, should be of the form https://dyode-boilerplate-sp.admin.rechargeapps.com

Install

npm install https://github.com/Michael-Gibbons/recharge-themekit.git

Environment variables

This cli requires 2 environment variables. RECHARGE_APP_URL, which is just the url you go to when going to the recharge app from your platform's admin. And RECHARGE_SESSION_TOKEN which is manually retrieved from the session cookie while on the RECHARGE_APP_URL.

The session cookie is inaccessible from javascript since it is a http only cookie. So you just need to copy it manually from your browser.

RECHARGE_APP_URL=https://dyode-boilerplate-sp.admin.rechargeapps.com
RECHARGE_SESSION_TOKEN='xxxxxxxxxxxxxxxxxxxxxxxxx'

Commands

  • auth Opens a browser tab to the RECHARGE_APP_URL defined in your .env file to retrieve a new session token
  • clone Duplicates a selected theme.
  • delete Deletes a selected theme. (Except the published one)
  • new Create a new theme using the Novum v5 template
  • open Opens a selected recharge theme in a new tab.
  • package Zips your theme directory and places it in the project's root directory.
  • publish Publishes a selected theme.
  • pull Replaces your local theme files with a selected theme's remote theme files.
  • push Replaces a selected theme's remote theme files with your local theme files.
  • watch Watch a directory and upload all file changes to recharge
  • help [command] display help for command

Command usage

npx rc-theme [command]

recharge-themekit's People

Contributors

michael-gibbons avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.