Usage
crewship.toml configuration file in your project. This command auto-detects your project settings and creates a ready-to-use configuration.
Arguments
| Argument | Description |
|---|---|
directory | Project directory (defaults to current directory) |
What It Does
Theinit command:
- Detects your framework - Looks for
[tool.crewai]inpyproject.tomlto identify CrewAI projects - Finds your entrypoint - Searches for crew classes decorated with
@CrewBaseor named*Crew - Extracts Python version - Reads
requires-pythonfrompyproject.toml - Creates configuration - Generates a
crewship.tomlwith sensible defaults
Examples
Initialize current directory
Initialize a specific directory
Generated Configuration
The command creates acrewship.toml like this:
Entrypoint Detection
The command searches for your crew entrypoint in these locations:<project_name>/crew.py- Standard CrewAI structuresrc/<project_name>/crew.py- Source layout- Any top-level package with a
crew.pyfile
- Classes decorated with
@CrewBase - Classes with names ending in
Crew
After Initialization
Once you have acrewship.toml, you can:
- Edit the configuration - Customize entrypoint, profile, or build settings
- Set environment variables - Add API keys with
crewship env set - Deploy - Run
crewship deployto deploy your crew