Github Sync
  • GitHub Sync
  • Usage
  • Actions
  • Options
Powered by GitBook

© Cogniwave 2025

On this page
  • Getting gh-sync
  • either install it globally
  • Arguments
  • Options

Was this helpful?

Export as PDF

Usage

Using gh-sync

Getting gh-sync

either install it globally

bun add -g @cogniwave/gh-sync
yarn global add @cogniwave/gh-sync
pnpm add -g @cogniwave/gh-sync
npm i -g @cogniwave/gh-sync
  1. just execute it directly

bunx @cogniwave/gh-sync <origin> <destination> [options]
yarn dlx @cogniwave/gh-sync <origin> <destination> [options]
pnpm dlx @cogniwave/gh-sync <origin> <destination> [options]
npx @cogniwave/gh-sync <origin> <destination> [options]

Arguments

gh-sync has 2 arguments. They're both required and string

Name
Description

source

The repo to get the configurations from. Should be just the owner and repo itself, e.g.: {owner}/{repository}

destination

The repo to update. Should be just the owner and repo itself, e.g.: {owner}/{repository}

Example:

gh-sync myorg/arepo myuser/somerepo

Options

Name
Description

-V, --version

Prints the version number

-h, --help

display help for command

--verbose (default: false)

Runs gh-sync in verbose mode

--token

Auth token to allow gh-sync to do it's thing. Use this if the token is the same for both origin and destination repositories

--token-origin

Auth token of the origin repository, to allow gh-sync to do it's thing

--token-destination

Auth token of the destination repository,to allow gh-sync to do it's thing

You can read more about the options in Options

PreviousGitHub SyncNextActions

Last updated 1 month ago

Was this helpful?

Page cover image