Getting started

Quickstart

Get started with Corigin by creating and pushing to a repository in just a few commands.

  1. 1

    Download the Corigin CLI

    npm install -g @corigin/cli
  2. 2

    Then, authenticate the CLI through the browser.

    corigin login
  3. 3

    Create and initialize a repository

    corigin init is a convenience command that will create a new git repository, create a new Corigin repository, and add the Corigin remote to your local repository.

    mkdir corigin-example
    cd corigin-example
    corigin init
  4. 4

    Create a new file and commit

    echo "Hello, Corigin!" > hello.txt
    git add hello.txt
    git commit -m "Add hello.txt"
  5. 5

    Push to Corigin

    git push
  6. 6

    Test by cloning the repository in a new directory

    REPO_URL=$(git remote get-url origin)
    cd ..
    git clone $REPO_URL corigin-example-clone