Code Monkey home page Code Monkey logo

nusync's Introduction

NuSync Build status

PowerShell module to copy the contents of one PowerShell NuGet repository to another

Usage

If you have PS 5.0 or above, you can install from PowerShell Gallery using

Install-Module NuSync

Otherwise you can download the module as a zip and re You must have already registered the source and destination repositories that you wish to copy to and from using Register-PSRepository. The names you specified when registering those repositories will be what you pass as -SourceRepository and -DestinationRepository.

Be warned that you must not have versions of modules in the destination repository newer than those you wish to sync from the source.
This module works best when run as the sole module publisher for the destination as it orders the version uploads such that the oldest version will be uploaded first, and the latest last (otherwise Publish-Module will complain about you rewriting your version history!).

You may wish to set $ProgressPreference="SilentlyContinue" when running this module because Publish-Module's output becomes somewhat overwhelming during the publishing phase.

Example

$SourceRepository = "DevGallery"
$DestinationRepository = "TestGallery"
$NugetApiKey = "xxxxxxx-xxx-xxx-xxx-xxxxxxxxxxxx"

Install-Module NuSync -Repository PSGallery
Import-Module NuSync
Sync-NSModule -SourceRepository $SourceRepository -DestinationRepository $DestinationRepository -NugetApiKey $NugetApiKey -Verbose

nusync's People

Contributors

markwragg avatar sam-martin avatar

Stargazers

 avatar

Watchers

 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.