Create new user without using the GUI

Hey all,

I am looking into ways to do test migrations and other types of testing, specifically using docker. I have been able to create the initial admin user and reset its password inside of the container, however, I do not know where to go at this point to create a new user.

My first option seems to be using the API. However, this requires an access token. I haven’t been able to find how to get an access token for the admin user from the CLI. Keep in mind that I can run any type
of PHP script as root if necessary, but I haven’t spent the time to try to dig into how PHP scripts can be run against Kanboard from the CLI.

My other option would be to access Kanboard directly from the CLI in order to run scripts against the running service, or modify the database directly. However, none of these are ideal, and I still don’t know how to run PHP scripts from the CLI. So, I have a couple of options here:

  1. Can I create a new user from the CLI/custom PHP script?
  2. Can I create and get an access token for the admin user from the CLI/custom PHP script?
  3. Is there another way that I haven’t thought of to create a user without using the WebGUI?

Thanks for your time.

– Andrew