Skip to content
Explore the docs
Build your market/Launch a repository

Launch a repository.

Turn your public GitHub repository into a market. Start in your terminal, choose the token’s details in your browser, and approve the launch with your wallet.

You’ll need a local checkout of a repository you control, Git, and the GitHub CLI. Sign in to GitHub with gh auth login, then install the Code Markets command-line tool and run it from your project’s directory:

npm install --global @codemarkets/markets
cd my-project
markets launch

The command opens your browser. If you need to sign in, it takes you through sign-in automatically before continuing. Check that the code shown in the browser matches the one in your terminal, then choose the wallet you want to use for the launch.

Choose your market’s details

The launch form shows the repository from your checkout. This is where you decide how its token will appear and which asset it will trade against.

  1. Choose a network and pairing token. The network is where your market trades. The pairing token is the asset in its liquidity pool alongside your repository token. Select both in the launch form.
  2. Name your token. Review its name and ticker, then upload a PNG, JPEG, or WebP image up to 3 MB. Crop the image in the form so it is easy to recognize in the market directory.
  3. Introduce the project. Add a description, team information, and links to help people understand what you’re building. These details are optional, but they give readers a useful starting point when they open your market.

Review and approve the launch

Once the token’s details are ready, read the launch preview. It shows the creator allocation, who receives it, and when those tokens become available. It also shows the fees and their recipients. These are the terms of your market, so review them before choosing Continue launch.

Follow the prompts to verify your GitHub account and control of the repository. If you’ve already registered them with this wallet, you can use those existing registrations. The identity guide explains what the two keys represent and how they relate to your wallet.

Approve the requested wallet actions to finish the launch. Keep the terminal open while it waits for confirmation; it tells you when the market is live.

Open your live market

Now open Markets on Code Markets and search for your repository or ticker. Check the project information and token details, then share the market page. Visitors can read about the project, explore its trading activity, and buy or sell its token from that page.

As people trade, the market earns fees. The repository’s share is available to its key holder in Wallet → Earnings. For a walkthrough of collecting royalties and managing your balance, see Use the platform.

Check progress or continue later

You can check a launch from your project’s directory at any time:

markets status --watch

If you close the browser or terminal before the launch finishes, run markets launch again and choose Resume. Your saved token details, network, and pairing remain in place, so you can pick up where you left off.

Preview before launching

To check that you’re ready or look over a launch plan first, use:

markets doctor
markets launch --dry-run

markets doctor checks what you need to launch. --dry-run shows the plan without registering keys or submitting transactions. You can also sign in ahead of time with markets auth login.

Choose settings from the terminal

If you already know the network, pairing, and image you want, you can supply them in the command. Sign in with markets auth login first. This example selects Base (chain ID 8453), pairs the market with AAPLc, and uses an image from your project:

markets launch --chain 8453 --numeraire AAPLc --image ./token.png --non-interactive

Choose a pairing listed in the launch form. --non-interactive skips terminal questions; you still need to approve any wallet requests. For the full list of options, run markets launch --help.