Kodexa CLI
Project Management
Managing projects using the Kodexa CLI
The Kodexa CLI provides commands for managing projects, including exporting and importing projects between environments. This page explains how to manage projects using the CLI.
Exporting Projects
The export-project
command allows you to export a project and its associated resources to a local zip file:
For example:
This will create a zip file containing all the project resources, including:
- Project metadata
- Associated assistants
- Document stores
- Data stores
- Models
- Other related components
Importing Projects
The import-project
command allows you to import a project from a previously exported zip file:
For example:
This will:
- Create the project in the target environment
- Import all associated components
- Maintain relationships between components
- Set up necessary permissions
Bootstrapping Projects
The bootstrap
command allows you to create a new project with default settings:
This creates a new project with basic metadata and example implementation.
Examples
Export a project to a file
Import a project from a file
Bootstrap a new project
Best Practices
- Use project exports for backups before making significant changes
- Use project exports/imports to migrate between development and production environments
- Name exported files with version information for better tracking
- Review imported projects after import to ensure all components were correctly created