Skip to content
Source

Get started

You have a project on your computer, and you want it on TanStack Source. At the end of this page, your code is on the forge and you have a pull request open.

You need:

  • Git.
  • Node.js 22 or later, for the src CLI.

1. Make an account

Open Sign up. Sign up with a password, or with GitHub or Google when the page shows them.

2. Install the CLI

src is the CLI of TanStack Source. It has the commands of gh.

On macOS, Linux, or Git Bash on Windows:

curl -fsSL https://gitflare.t-zlak97.workers.dev/install | sh

In Windows PowerShell:

irm https://gitflare.t-zlak97.workers.dev/install.ps1 | iex

Then open a new terminal. Install and set up the CLI has the details.

3. Log in

src auth login
src auth setup-git
  1. src auth login prints a one-time code. Press Enter to open the browser.
  2. Type the code, click Continue, then click Approve.
  3. src auth setup-git lets git push and git clone use the same login.

To make sure that the login works, run src auth status.

4. Make a repository and push

In the folder of your project, run:

src repo create my-app --private
git remote add origin https://gitflare.t-zlak97.workers.dev/<your-username>/my-app.git
git push -u origin main

src repo create prints the URL of the new repository. Use --public for a public repository.

Do you want to start in the browser? Open New repository, fill in the name, and click Create repository. The Code menu of the repository shows its clone URL.

The New repository form, with the owner alice, the name my-app, and the Create repository button

5. Open a pull request

git switch -c first-change
echo "Hello from TanStack Source" >> README.md
git commit -am "docs: say hello"
git push -u origin first-change
src pr create --fill

src pr create prints the URL of the pull request. Open it to see the change, comment on a line, and merge.

An open pull request with its description, its checks, and the Merge pull request button

Done

Your code is on the forge, and you have a pull request. src browse opens the repository in your browser.

Next, pick one: