Code Monkey home page Code Monkey logo

sfdx-git-deploy's Introduction

sfdx-git-deploy

sfdx plugin to deploy latest changes to sandbox

The idea behind this is to be able to get the files that changed comparing a base branch and deploy to a specified sandbox.

The local working copy must be tracked in a git repo.

So, let's say we are working on a dev sandbox in a feature branch called XYZ. We should be in the root of the project in branch XYZ and we enter this in the command line:

sfdx git:code:deploy -b master -u devOrgPersonal -d config/deploy

This would use git diff to compare what changed in branch XYZ against master branch, if there is any changed files it will put them in the specified path (in this case config/deploy) and the use sfdx force:source:deploy to the specified sandbox.

On top of this, it will do a check with git ls-files to get any new untracked file and put them in the same folder. Useful for cases that there is a new file but hasn't been pushed to the repo yet.

To install:

sfdx plugins:install sfdx-git-deploy

sfdx-git-deploy's People

Contributors

dependabot[bot] avatar fedegiust avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

sfdx-git-deploy's Issues

New enhancements

  • When having no apex classes or triggers, try to deploy without running tests
  • Generate destructiveChanges.xml
  • Generate package.xml

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.