Usage
Description
Packages your crew and deploys it to Crewship, or builds a local Docker image for testing. Remote deploy (default):- Packages your project into a tarball
- Initializes a deployment (or uses existing one based on project name)
- Creates a new version
- Uploads the build context to Crewship
--local):
- Builds a Docker image locally using the base Crewship image
- Optionally runs the container
Options
| Option | Description |
|---|---|
[path] | Project directory (defaults to current directory) |
--local, -l | Build Docker image locally instead of deploying |
--run, -r | Run the container after building (with --local) |
--port, -p | Port to expose when running (default: 8000) |
Examples
Deploy to Crewship
Deploy a specific directory
Build and test locally
Build and run locally
Run on a custom port
Output
Remote Deploy
A successful remote deployment shows:Local Deploy
A successful local build shows:Requirements
Your project must have:crewship.tomlin the project root with a[deployment]section- A valid
entrypointpointing to your crew’s kickoff function pyproject.tomlfor dependencies (installed viauv pip install -e .)
Minimal crewship.toml
crewship.toml
With profile
crewship.toml
Build Process
For local builds, Crewship generates a Dockerfile based on your configuration:You don’t need to write a Dockerfile. Crewship generates one based on your
crewship.toml.Excluding Files
By default, the following files and directories are excluded from the build:.git,.gitignore.env,.env.*.venv,venv__pycache__,*.pyc,*.pyo.pytest_cache,.mypy_cache,.ruff_cachenode_modules.DS_Store,Thumbs.db*.egg-info,dist,build.idea,.vscode*.logDockerfile,.dockerignore
crewship.toml:
crewship.toml
Troubleshooting
”crewship.toml not found”
Make sure you’re in the project root directory and have acrewship.toml file. Run crewship init to create one.
”Not logged in”
Runcrewship login to authenticate before deploying to Crewship.
”Missing deployment.framework” or “Missing deployment.entrypoint”
Yourcrewship.toml must have a [deployment] section with both framework and entrypoint:
“No organizations found”
Create an organization in the Console before deploying.”Session expired”
Your login session has expired. Runcrewship login again.
Local build: “Base image not found”
For local builds, the CLI will attempt to build the base image automatically. If this fails, ensure Docker is running and you have access to thepackages/runner-crewai directory.