Jaseci-Labs / jaseci

The Official Jaseci Code Repository
https://jaseci.org
156 stars 213 forks source link

Jac Cloud Command Line Interface for User Creation #1258

Open ChrisIsKing opened 2 months ago

ChrisIsKing commented 2 months ago

Instead of making an explicit API call to the endpoint after running jac serve file.jac. It would be handy if we had a function to bootstrap user registration. e.g

jac create-user --email test@user.com --password password

This command would create the user and return the token or notify if the username is already taken.

ChrisIsKing commented 1 month ago

This will only apply to the mongo config since there is no notion of a user in jac-cloud-mini

amadolid commented 1 month ago

question,

is it a trigger without running the server yet? if yes, we can support this however, I find it not that useful right now (might change later), because you eventually need to run the server to properly use the it

if no, do we still need to trigger it via CLI even it's already available via API?