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

# Set up the Basic CLI (optional)

> Using the CLI or code editor LLMs to manage projects.

## Install the CLI

<Steps>
  <Step title="Install the CLI">
    First, install the CLI using your terminal.

    ```bash theme={null}
    npm i -g @basictech/cli
    ```
  </Step>

  <Step title="Login to Basic using the CLI">
    Run `basic login` to create your basic admin account. You will be redirected to a web page to login.

    ```bash theme={null}
    basic login
    ```
  </Step>
</Steps>

# Create / integrate a project

<Steps>
  <Step title="Initialize the Basic CLI">
    Navigate to your project directory and run `basic init` to create your project.

    ```bash theme={null}
    cd project-name
    ```

    ```bash theme={null}
    basic init
    ```

    You will be prompted to choose between creating a new project or integrating an existing project.

    <img src="https://mintcdn.com/basic/UWQOKUigUDPICQhb/images/basic-init.png?fit=max&auto=format&n=UWQOKUigUDPICQhb&q=85&s=c8fdc8db85d014d43e96a2410216c1af" width="569" height="137" data-path="images/basic-init.png" />
  </Step>

  <Step title="Create or integrate a project">
    Choose your tech stack and project name.

    <CardGroup>
      <Card title="Create a project">
        <img src="https://mintcdn.com/basic/UWQOKUigUDPICQhb/images/basic-create-project-cli.png?fit=max&auto=format&n=UWQOKUigUDPICQhb&q=85&s=dba1ec251a9ea9af361cff982a9cc069" width="544" height="305" data-path="images/basic-create-project-cli.png" />
      </Card>

      <Card title="Integrate an existing project">
        <img src="https://mintcdn.com/basic/UWQOKUigUDPICQhb/images/basic-integrate-project-cli.png?fit=max&auto=format&n=UWQOKUigUDPICQhb&q=85&s=c98196b98cb427398022847803e65c3c" width="584" height="401" data-path="images/basic-integrate-project-cli.png" />
      </Card>
    </CardGroup>
  </Step>
</Steps>

That's it! You now have a new project created. You'll even notice a new `basic.config.ts` / `basic.config.js` file in your project directory with your project ID included!

If you run `basic init` in a codebase with an existing `basic.config.ts` file (e.g., created using via [create-lofi-app](/basic-react/create-lofi-app)), you'll notice that the project\_id in your `basic.config.ts` file gets automatically updated.

# Other CLI commands

<Card>
  **View all commands**

  ```bash theme={null}
  basic help
  ```
</Card>

Other commands include:

* `basic account` - Show account information
* `basic logout` - logout from your basic account
* `basic status` - Show login status
* `basic projects` - list your projects
* `basic version` - Show CLI version
* `basic update` - Update CLI to the latest version
* `basic debug` - Show Basic config directory location
