Skip to content

Cloning a PyPortion Project

When you clone a PyPortion project from GitHub, the project's .pyportion.yml already lists the templates it uses — but those templates are not included in the repository. You need to download them locally before you can build portions.

Download All Templates

From inside the cloned project directory, run:

portion template download

Running portion template download without any arguments reads your project's .pyportion.yml and downloads every template listed there to your local machine. Template versions that are already installed are skipped automatically.

Build Portions

Once the templates are downloaded, you can scaffold code as usual:

portion build <portion-name>

Example:

portion build command

Typical Workflow After Cloning

git clone https://github.com/your-org/my-awesome-app cd my-awesome-app portion template download portion build command

Next Steps