{"id":15245091,"url":"https://github.com/moonwalker/gontentful","last_synced_at":"2026-01-02T23:07:39.218Z","repository":{"id":29999715,"uuid":"104724044","full_name":"moonwalker/gontentful","owner":"moonwalker","description":"Contentful client library for Go with a command line interface","archived":false,"fork":false,"pushed_at":"2024-04-11T10:16:25.000Z","size":40202,"stargazers_count":0,"open_issues_count":3,"forks_count":1,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-04-12T16:58:19.354Z","etag":null,"topics":["contentful","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","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/moonwalker.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":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2017-09-25T08:35:21.000Z","updated_at":"2024-04-15T08:38:38.410Z","dependencies_parsed_at":"2024-02-14T15:49:59.282Z","dependency_job_id":"da30a6a2-dba8-4b9c-b329-815b43521796","html_url":"https://github.com/moonwalker/gontentful","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/moonwalker%2Fgontentful","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moonwalker%2Fgontentful/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moonwalker%2Fgontentful/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moonwalker%2Fgontentful/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moonwalker","download_url":"https://codeload.github.com/moonwalker/gontentful/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243837150,"owners_count":20355839,"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":["contentful","golang"],"created_at":"2024-09-29T13:06:38.595Z","updated_at":"2026-01-02T23:07:39.199Z","avatar_url":"https://github.com/moonwalker.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gontentful\n\nContentful client library for Go with a command line interface for schema export and data sync.\n\n## Library\n\n### Install\n\n```sh\n$ go get -u github.com/moonwalker/gontentful\n```\n\n### Usage\n\nCreate client:\n\n```sh\nimport (\n\t\"github.com/moonwalker/gontentful\"\n)\n\nclient := gontentful.NewClient(\u0026gontentful.ClientOptions{\n\tCdnURL:        \"cdn.contentful.com\",\n\tSpaceID:       \u003cspaceid\u003e,\n\tEnvironmentID: \u003cenvironmentid\u003e,\n\tCdnToken:      \u003ccdntoken\u003e,\n})\n\n// get entries\nquery := url.Values{}\nquery.Set(\"content_type\", \"foo\")\nquery.Set(\"locale\", \"en\")\nentries, err := client.Entries.GetEntries(query)\n\n// get entry\nentry, err := client.Entries.GetSingle(\u003centryid\u003e)\n```\n\n## CLI\n\n### Install\n\n```sh\n$ go get -u github.com/moonwalker/gontentful/cmd/gfl\n```\n\n### Usage\n\nSchema export:\n\n```sh\n# generate postgres schema and print to stdout\n$ gfl schema pg --space \u003cspaceid\u003e --token \u003ctoken\u003e\n\n# generate postgres schema and execute on the specified database\n$ gfl schema pg --space \u003cspaceid\u003e --token \u003ctoken\u003e --url postgres://user:pass@host:port/db\n\n# generate graphql schema and print to stdout\n$ gfl schema gql --space \u003cspaceid\u003e --token \u003ctoken\u003e\n```\n\nData sync:\n\n```sh\n# sync data to postgres (init sync first then incremental)\n$ gfl sync pg --space \u003cspaceid\u003e --token \u003ctoken\u003e --url postgres://user:pass@host:port/db\n\n# sync data to postgres (init sync always start from scratch)\n$ gfl sync pg --init --space \u003cspaceid\u003e --token \u003ctoken\u003e --url postgres://user:pass@host:port/db\n```\n\n## Dependencies\n\nUsing Go modules:\n\n```sh\n$ go mod vendor\n```\n\n## License\n\nLicensed under the [MIT License](LICENSE)\n\n### Acknowledgements\n\nUtilize code from [contentful-go](https://github.com/contentful-labs/contentful-go)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoonwalker%2Fgontentful","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoonwalker%2Fgontentful","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoonwalker%2Fgontentful/lists"}