Skip to main content
Initializes adist for the current directory, creating a new project and indexing its files.

Syntax

adist init <projectName>

Arguments

projectName
string
required
Name for the project. Must be unique across all your adist projects.

Options

During initialization, you will be prompted:
summarize
boolean
Enable LLM summarization for the project. Requires ANTHROPIC_API_KEY environment variable.Note: Enabling summarization will incur API costs.

Behavior

  1. Creates a new project with the specified name associated with the current directory
  2. Checks for name conflicts with existing projects
  3. Prompts for optional LLM summarization
  4. Generates a unique project ID (timestamp-based)
  5. Sets the new project as the current active project
  6. Indexes all project files using both legacy and block-based indexing
  7. Optionally generates file summaries if enabled

Examples

Basic initialization

adist init my-project

With summarization enabled

When prompted, enter y to enable summarization:
adist init my-api
# Would you like to enable LLM summarization? (y/N): y

Environment Variables

ANTHROPIC_API_KEY
string
Required if you enable summarization during initialization.

Build docs developers (and LLMs) love