{"id":14991009,"url":"https://github.com/contentful/contentful-cli","last_synced_at":"2025-05-14T13:06:16.852Z","repository":{"id":28803052,"uuid":"102004714","full_name":"contentful/contentful-cli","owner":"contentful","description":"The official Contentful command line interface. Use Contentful features straight from the command line!","archived":false,"fork":false,"pushed_at":"2025-05-06T01:53:08.000Z","size":173939,"stargazers_count":333,"open_issues_count":50,"forks_count":64,"subscribers_count":73,"default_branch":"main","last_synced_at":"2025-05-10T08:34:40.486Z","etag":null,"topics":["api","cli","contentful","json"],"latest_commit_sha":null,"homepage":"https://www.contentful.com/developers/docs/tutorials/cli/","language":"JavaScript","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/contentful.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":"audit-resolve.json","citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-08-31T13:40:39.000Z","updated_at":"2025-05-05T20:25:16.000Z","dependencies_parsed_at":"2023-09-25T03:59:08.050Z","dependency_job_id":"42b89876-60ec-4153-8554-7c595f62beca","html_url":"https://github.com/contentful/contentful-cli","commit_stats":{"total_commits":2011,"total_committers":81,"mean_commits":24.82716049382716,"dds":"0.49378418697165594","last_synced_commit":"f3176d6a0d5ba5622da6cccd7da3d5c37901be08"},"previous_names":[],"tags_count":857,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/contentful%2Fcontentful-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/contentful%2Fcontentful-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/contentful%2Fcontentful-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/contentful%2Fcontentful-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/contentful","download_url":"https://codeload.github.com/contentful/contentful-cli/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253492579,"owners_count":21916963,"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":["api","cli","contentful","json"],"created_at":"2024-09-24T14:21:17.366Z","updated_at":"2025-05-14T13:06:16.796Z","avatar_url":"https://github.com/contentful.png","language":"JavaScript","readme":"# Contentful CLI\n\n\u003e [Contentful's](https://www.contentful.com) command line interface tool. Use Contentful features straight from your CLI.\n\n[![npm](https://img.shields.io/npm/v/contentful-cli.svg)](https://www.npmjs.com/package/contentful-cli)\n[![Contentful](https://circleci.com/gh/contentful/contentful-cli.svg?style=shield)](https://circleci.com/gh/contentful/contentful-cli)\n\n[Contentful](https://www.contentful.com) provides a content infrastructure for digital teams to power content in websites, apps, and devices. Unlike a CMS, Contentful was built to integrate with the modern software stack. It offers a central hub for structured content, powerful management and delivery APIs, and a customizable web app that enable developers and content creators to ship digital products faster.\n\n## :rocket: Features\n\n- Get started with Contentful with the `init` command.\n- Manage spaces - list, create, delete,...\n- Export your space to a JSON file.\n- Import your space from a JSON file.\n- Execute migration scripts written in the [Contentful Migration DSL](https://github.com/contentful/contentful-migration/blob/main/README.md#reference-documentation)\n- Generate migration scripts for the [Contentful Migration DSL](https://github.com/contentful/contentful-migration/blob/main/README.md#reference-documentation) from existing spaces.\n- Seed your space with example data.\n- Manage installation of [extensions](https://github.com/contentful/extensions) in a space.\n- Securely login and logout with our [OAuth service](https://www.contentful.com/developers/docs/references/authentication/).\n- Find all available commands in the [docs section](https://github.com/contentful/contentful-cli/tree/main/docs).\n\n## :cloud: Installation\n\nMake sure you have [Node LTS](https://nodejs.org/en/) installed\n\nThen using [npm](https://npmjs.org) or [yarn](https://yarnpkg.com):\n\n```sh\nnpm install -g contentful-cli\n# Or\nyarn global add contentful-cli\n```\n\nPlease note that for the non standalone versions you need Node LTS to use the CLI.\n\n## :hand: Usage\n\nUse the `--help` parameter to display the help section for CLI tool or combined with a specific command to get the help section for that command.\n\n```sh\ncontentful --help\n# Or\ncontentful space --help\n```\n\n## :books: Documentation\n\nMore detailed documentation for every command can be found in the [docs section](https://github.com/contentful/contentful-cli/tree/main/docs).\n\n## Using the CLI tool with a proxy\n\nYou can save the proxy configuration in your `.contentfulrc.json` via:\n\n```sh\ncontentful config add --proxy user:auth@host:port\n```\n\nWe also respect the `http(s)_proxy` environment variables:\n\n```sh\nhttps_proxy=user:auth@host:port contentful\n```\n\nWhen multiple proxy configurations exists, precedence is taken in this form:\n\n1. `http_proxy` takes precedence over `.contentfulrc.json`\n2. `https_proxy` takes precedence over `.contentfulrc.json`\n3. `https_proxy` takes precedence over `http_proxy`\n\n## Configuring the CLI for EU usage\n\nYou can override the host configuration in your `.contentfulrc.json` via:\n\n```sh\ncontentful config add --host api.eu.contentful.com --host-delivery cdn.eu.contentful.com\n```\n\nThen any subsequent command will use the EU hosts. E.g. `contentful login` will log you in to your EU Contentful instance.\n\n## :rescue_worker_helmet: Troubleshooting\n\n- Unable to connect to Contentful through your Proxy? Try settings `rawProxy: true` in your `.contentfulrc.json` via:\n\n```sh\ncontentful config add --raw-proxy\n```\n\n## :hammer_and_wrench: Development\n\n1. Install dependencies\n   ```sh\n   npm i\n   ```\n2. To avoid development version colliding with your already installed Contentful CLI, change the command name in `package.json`\n   ```diff\n     \"bin\": {\n   -     \"contentful\": \"bin/contentful.js\"\n   +     \"ctfl\": \"bin/contentful.js\"\n     }\n   ```\n3. Link your local version, and happy hacking :tada:\n   ```sh\n   npm link\n   ```\n\n\n\n## :question: Support\n\nIf you have a problem with this tool, please file an [issue](https://github.com/contentful/contentful-cli/issues/new) here on Github.\n\nIf you have other problems with Contentful not related to this library, you can contact [Customer Support](https://support.contentful.com).\n\n## :writing_hand: Contributing\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md)\n\n## :scroll: License\n\nMIT\n","funding_links":[],"categories":["CMS and Content"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcontentful%2Fcontentful-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcontentful%2Fcontentful-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcontentful%2Fcontentful-cli/lists"}