> ## Documentation Index
> Fetch the complete documentation index at: https://docs.solanamobile.com/llms.txt
> Use this file to discover all available pages before exploring further.

# solana-mobile create

> Create a new Solana Mobile project from a template.

export const FooterDisclaimer = () => {
  return <p className="not-prose mt-16 text-center text-xs text-gray-500 dark:text-gray-400">
      Code samples on this page are subject to the{" "}
      <a className="underline underline-offset-2" href="https://www.apache.org/licenses/LICENSE-2.0">
        Apache 2.0 license
      </a>
      .
    </p>;
};

Scaffold a new Solana Mobile project. Run it without arguments for interactive prompts, or pass a project name and template to skip them:

<CodeGroup>
  ```bash npm theme={null}
  npx solana-mobile@latest create my-app
  ```

  ```bash pnpm theme={null}
  pnpm dlx solana-mobile@latest create my-app
  ```

  ```bash bun theme={null}
  bunx solana-mobile@latest create my-app
  ```
</CodeGroup>

After scaffolding, the CLI initializes git, installs dependencies, and runs the template's init script. Skip any of these with the `--skip-*` flags below.

## Templates

List the available templates and their descriptions:

<CodeGroup>
  ```bash npm theme={null}
  npx solana-mobile@latest create --list-templates
  ```

  ```bash pnpm theme={null}
  pnpm dlx solana-mobile@latest create --list-templates
  ```

  ```bash bun theme={null}
  bunx solana-mobile@latest create --list-templates
  ```
</CodeGroup>

Pick one with `--template`:

<CodeGroup>
  ```bash npm theme={null}
  npx solana-mobile@latest create my-app --template expo-kit-minimal
  ```

  ```bash pnpm theme={null}
  pnpm dlx solana-mobile@latest create my-app --template expo-kit-minimal
  ```

  ```bash bun theme={null}
  bunx solana-mobile@latest create my-app --template expo-kit-minimal
  ```
</CodeGroup>

Options declared by the selected template are passed through as boolean long flags, e.g. `create my-app --minimal --reset-project`.

## Options

| Option                                     | Description                                           |
| ------------------------------------------ | ----------------------------------------------------- |
| `-d, --dry-run`                            | Show what would happen without writing files          |
| `--list-template-ids`                      | List available template ids as a JSON array           |
| `--list-templates`                         | List available templates                              |
| `--list-versions`                          | Verify your versions of Anchor, AVM, Rust, and Solana |
| `--minimal`                                | Use the minimal template                              |
| `--pm, --package-manager <packageManager>` | Package manager to use                                |
| `--skip-git`                               | Skip git initialization                               |
| `--skip-init`                              | Skip running the init script                          |
| `--skip-install`                           | Skip installing dependencies                          |
| `-t, --template <templateName>`            | Use a template                                        |
| `-v, --verbose`                            | Verbose output                                        |

<FooterDisclaimer />
