felixjung / contentful-utils Goto Github PK
View Code? Open in Web Editor NEWA CLI tool helping you manage content types on Contentful.
License: MIT License
A CLI tool helping you manage content types on Contentful.
License: MIT License
Now that we have such a nice Ava setup, we should start writing tests.
Sometimes you might want to copy/duplicate an existing content type (across spaces).
Dealing with all that async Contentful code is messy. Would be cool to use is as grounds for experimenting with async/await.
When selectively migrating spaces (i.e. not just cloning a space), it would be beneficial to selectively copy content types, and individual fields from one space to another. We should also be able to do so in a forceful manor.
lint:watch
unit:watch
As @stefanjudis pointed out, the README could use some love. One thing that bothers me is that global command options are missing in the help output for sub-commands.
Hey hey,
cool stuff, you're doing here. I spotted a mistake in the readme though.
https://github.com/felixjung/contentful-utils#deleting-fields
Looks like a copy and paste mistake. :)
I would fix it myself but I'm not sure how the command works ( https://github.com/felixjung/contentful-utils#delete-fields-options doesn't explain well enough I guess)
Thanks and keep it going.
I do remember config files not working as expected with yargs. Should be fixed. Than you can have a folder of space config files and reuse them.
Clean up some things.
contentful-export is using listr to create nice tasks lists while running a command. Would totally be an option here.
We could have a command to duplicate a field under a different name. This is currently not available in the UI.
Should allow to copy all entries of a content type from one space to another.
Would be handy to be able to delete all entities of a given type at once.
❯ contentful-utils delete-fields\
--space space:space-id:token\
--target starship\
--force\
-- length
info Deleting fields length from Content Type(s) starship.
info Deleting fields length from Starship.
~
❯
Sometimes to update the configuration of a field, for example the validation. If other content types are using the "same" field, it would be useful to copy the potentially improved configuration over, provided it is compatible.
Somehow publishing after overwriting fields does not work.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.