Strapi SDK development

Hi everybody!

Here is a small update on the global progress of the SDK :wink:

  • The project has been well set up!
  • I had trouble into setting up the CLI in order to make it available thanks npx & yarn
  • I just finished the CLI part. I can generate Typescript types from the schema on your Strapi application. I just have to polish it a little bit :smiley:
  • After the code cleaning phase I’ll go to the type definition of the basic SDK feature !

See you soon for a new little update :heart:

One more thing

This is the usage of the CLI :

// Without params [default folder: ./models, default name: type.ts
npx strapi-sdk generate

// With params
npx strapi-sdk generate -d ./graphql -n myOtherName
or
npx strapi-sdk generate --dir ./graphql --name myOtherName
1 Like