{"id":19924374,"url":"https://github.com/kontent-ai/migrations-boilerplate","last_synced_at":"2026-03-27T04:56:38.482Z","repository":{"id":36471368,"uuid":"227618745","full_name":"kontent-ai/migrations-boilerplate","owner":"kontent-ai","description":"Sample migration scripts for Kontent.ai CLI tool","archived":false,"fork":false,"pushed_at":"2024-08-27T06:48:41.000Z","size":373,"stargazers_count":4,"open_issues_count":4,"forks_count":5,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-04-07T13:11:15.657Z","etag":null,"topics":["boilerplate","content-management","hacktoberfest","javascript","kontent-ai","kontent-ai-sample","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kontent-ai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-12-12T13:53:55.000Z","updated_at":"2024-08-27T06:48:46.000Z","dependencies_parsed_at":"2024-08-26T15:09:49.058Z","dependency_job_id":null,"html_url":"https://github.com/kontent-ai/migrations-boilerplate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kontent-ai%2Fmigrations-boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kontent-ai%2Fmigrations-boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kontent-ai%2Fmigrations-boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kontent-ai%2Fmigrations-boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kontent-ai","download_url":"https://codeload.github.com/kontent-ai/migrations-boilerplate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252156907,"owners_count":21703371,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["boilerplate","content-management","hacktoberfest","javascript","kontent-ai","kontent-ai-sample","typescript"],"created_at":"2024-11-12T22:17:11.699Z","updated_at":"2026-03-27T04:56:33.455Z","avatar_url":"https://github.com/kontent-ai.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kontent.ai migrations examples\n\nThe Kontent.ai migrations boilerplate aims to provide a exemplary introduction in developing migrations using [Kontent.ai data-ops](https://github.com/kontent-ai/data-ops). Migrations allow you to perform any operation supported by the [Management API](https://kontent.ai/learn/reference/management-api-v2) through smaller executable scripts. This repository showcases various migration scenarios, including the creation of different entities. Each migration also includes a rollback function to reverse the changes made by the migration.\n\n\u003e [!NOTE]\n\u003e The migrations in this repository are written in `TypeScript` and must be transpiled before execution.\n\n## Quickstart\n\n1. Install required depencies \n    ```sh\n    npm ci\n    ```\n1. Set up mandatory parameters for data-ops migrations:\n    * Copy `exampleParams.json` and rename it to `migrationsParams.json`\n    * Fill in the missing parameters for your environment.\n1. Inspect the migrations in the `src` folder.\n1. Examine prepared scripts in `package.json`.\n1. Try out the scripts\n    - e.g. `npm run migrate:all` to run all of the migrations\n\u003e [!TIP]\n\u003e You can add additional parameters using `--`. For example, to rollback next 5 migrations, use `npm run migrate:next -- 5 -b`.\n\n\u003e [!TIP]\n\u003e You can view all parameters by using `npm run data-ops -- migrations \u003ccommand\u003e --help`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkontent-ai%2Fmigrations-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkontent-ai%2Fmigrations-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkontent-ai%2Fmigrations-boilerplate/lists"}