sdk-for-cli icon indicating copy to clipboard operation
sdk-for-cli copied to clipboard

Added a deploy option to preserve attribs order

Open BigPapoo opened this issue 1 year ago • 0 comments

What does this PR do?

I added a deploy collection option for keeping the attributes ordered as they appear in the appwrite.json file.

Test Plan

Install modules :

npm install

Test the help :

node ./index.js deploy collection --help

Prepare an appwrite.json file :

node ./index.js login
node ./index.js init project
node ./index.js init collection

[OPTIONAL] Test the randomness of the current attributes creation (pick a collection in the list and check the attributes order):

node ./index.js deploy collection

Test the new attributes creation (pick a collection in the list and check that the attributes order is kept as original one):

node ./index.js deploy collection --preserve

Related PRs and Issues

None

Have you read the Contributing Guidelines on issues?

YES

BigPapoo avatar Jan 07 '24 00:01 BigPapoo