sdk-for-cli
sdk-for-cli copied to clipboard
Added a deploy option to preserve attribs order
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