# The tool that sets up and looks after your project. Your AI runs it for you.

bit CLI creates your bit Fabric project, gets it running on any computer, makes its keys and secrets for going live, and checks that a change won't break the app your users already have. Your project's skills tell your AI agent when to run each command, so you rarely type one yourself.

The page: https://bitfabric.co/en-US/cli

## What it does for you

### Start

Your project, on any computer, running.

- **Creates your project** (`bit new`): Makes your project on your computer with all it needs: the developer tools, the first build, git, and your app running, open in your browser.
- **Gets it ready on any computer** (`bit setup`): Readies a project that already exists, a teammate's or yours on another computer. Given its repository's address, it clones it first.
- **Starts your app** (`bit run`): Starts the website and its server, or the Android, iOS, macOS or Windows app, with an Android emulator made ready when no phone is connected.

### Go live

Ready for your server and the app stores.

- **Makes your keys** (`bit keys`): Creates the keys and certificates your app signs and encrypts with, the Android app's signing key, and the iOS app's signing without a Mac.
- **Fills in your pipeline's secrets** (`bit pipeline`): Reads what your GitHub Actions workflows need, makes the keys it can, asks you for the rest and stores them as GitHub secrets. It also locks the repository down.
- **Keeps installed apps working** (`bit api check`): Tells you whether a change to your server breaks an app version your users still have installed, before it goes live.

### Keep building

Your app grows, and stays current.

- **Changes your database safely** (`bit migration add`): Adds a migration when your app's data changes, so the database on your server follows when the new version goes live.
- **Translates your app** (`bit translate`): Fills in the missing translations of your app's texts with the AI model you choose, and keeps the ones you have.
- **Brings in what's new** (`bit diff`): Shows what changed in the starting point your project was made from, so your AI brings each improvement in and keeps your own changes.

## You ask in your words. Your AI runs the command.

- Set up our project on this computer. → `bit setup https://github.com/you/your-app`: Done. Your app is running, and open in your browser.
- Products need a rating, from 1 to 5. → `bit migration add AddProductRating`: Added: the rating, its database change and its tests.

- **Your AI knows when**: Your project's instructions and skills tell your AI agent which command a task needs. You ask in your own words, and it runs the right one.
- **A stuck step says what's next**: When a step fails, bit CLI says what it was doing and the exact command that finishes it, and the steps after it still run. Your AI picks up from there.
- **Always the right version**: In your project, bit CLI runs the version that fits it and keeps itself up to date, so neither you nor your AI has to.

## Every command

One line each, in the order bit --help lists them. bit <command> --help shows a command's options.

| Command | What it does |
|---|---|
| `bit new` | Creates a project and gets it ready to run: the tools it needs, the build, git, its database and your editor. |
| `bit setup` | Gets a project that exists ready on this computer, cloning it first when given its repository's address. It also adds an app later, such as Android. |
| `bit run` | Builds and starts the project: the website and its server, or the Android, iOS, macOS or Windows app. |
| `bit diff` | Shows what changed in the project's starting point between two versions, as one commit your AI brings into your project. |
| `bit doctor` | Checks this computer for the tools a project needs, and installs what's missing with --fix. |
| `bit trust` | Marks a project's folder as trusted for VS Code, Claude Code, Copilot CLI, Codex and Gemini CLI. |
| `bit clean` | Deletes the project's build outputs and downloaded packages, so the next build starts fresh. |
| `bit rename` | Renames the project everywhere its name appears: files, folders, code, the database and the app's id. |
| `bit remove` | Deletes a folder for good, after stopping the apps that keep its files in use. |
| `bit migration` | Adds and removes the database's migrations, and bundles them for the database on your server. |
| `bit api` | Checks that the server's api still works for the app versions your users run, and keeps each release's api. |
| `bit translate` | Fills in the missing translations of the app's texts with an AI model, and checks that none is missing. |
| `bit decode` | Reads an error report of a minified app back into the names its code has. |
| `bit keys` | Creates the keys and certificates the project signs and encrypts with: web push, the server's certificate, and the Android and iOS apps' signing. |
| `bit pipeline` | Fills in the secrets the GitHub Actions workflows use, and locks the repository down. |
| `bit aot-profile` | Writes the profile that makes the web app fast while its download stays small. |
| `bit telemetry` | Shows what bit CLI reports to the bit platform team, and changes it. |
| `bit update` | Updates bit CLI to the newest version. bit new and a project's commands do it by themselves. |
| `bit license` | Shows the project's license, and the link that gets it one, free. |
| `bit about` | Shows where this build of bit CLI comes from, and how to verify it. |

[Every option, in bit CLI's own guide](https://github.com/bitfoundation/bitfabric/blob/main/src/Cli/README.md)

## Install it

You rarely need to: the one line Get started gives you installs bit CLI along with everything else. To install it on its own:

### Windows

Paste it into PowerShell or Command Prompt. It installs Microsoft's free developer tools and bit CLI for your user, without administrator rights.

```
powershell -c "irm https://bitfabric.co/install.ps1 | iex"
```

### macOS and Linux

Paste it into a terminal. It installs the same for your user, without sudo.

```
curl -fsSL https://bitfabric.co/install.sh | bash
```

### With the .NET SDK already there

Version 10 or later. bit CLI installs from nuget.org as a tool for your user.

```
dotnet tool install --global Bit.Cli --prerelease
```

- [Bit.Cli on nuget.org](https://www.nuget.org/packages/Bit.Cli)
- [Its source on GitHub](https://github.com/bitfoundation/bitfabric/tree/main/src/Cli)

## Check what you run

- **The source is public**: bit CLI's source is on GitHub, in bit Fabric's own repository, under the FCL-1.0-MIT license. Read what a command does before you run it.
- **Built, signed and attested**: GitHub Actions builds every release from that source, signs it and records an attestation on GitHub. bit about shows the build you run and the line that verifies it:
- **What it reports, and what never**: Whether each step worked, how long it took and its errors, so failed runs get fixed. Never your project's names, paths, files, prompts or keys. This turns it off:

```
gh attestation verify <bit.dll> --repo bitfoundation/bitfabric
bit telemetry off
```

[FCL-1.0-MIT](https://github.com/bitfoundation/bitfabric/blob/main/LICENSE.md)

## Questions

### Do I need to learn these commands?

No. Your AI agent runs them while it works, guided by your project's instructions and skills, and tells you what it did. This page is for when you're curious, or want to run one yourself.

### Which computers does it run on?

Windows, macOS and Linux. What you can run while you build depends on the computer: Windows runs the web, Android and Windows apps, macOS the web, Android, iOS and macOS apps, and Linux the web and Android apps. Your project's pipeline builds every app for release, whichever you use.

### What does it change on my computer?

What your project needs and you agree to: it lists the tools it would install, and installs the ones you tick. It keeps its own files in a .bitplatform folder in your user's folder. Where a step needs administrator rights, your computer asks you once.

### Is this the bit CLI from bit platform?

Yes. Its source moved from the bit platform repository to bit Fabric's own, bitfoundation/bitfabric on GitHub. The package is still Bit.Cli on nuget.org, and the command is still bit.

## Start with something you'll keep

Answer a few questions and paste one line, and your AI starts on your idea, not on what every app needs.

[Get started](https://bitfabric.co/en-US/new)
