noor

Help › For the person who runs the server

Command-line tool and AI agents

schoolstack-cli runs the same actions as the web pages, as a chosen user. While the site runs, it sends each change to the running server through /var/lib/schoolstack/school.sock (only root and the schoolstack account can use it, so run the tool with sudo), so nothing needs to stop; when the site is stopped, it changes the data files itself.

Every action is listed in the reference.

Example: To make a class for a new teacher without signing in, the owner runs sudo schoolstack-cli --data /var/lib/schoolstack/school.json exec --as tom@school.org class.create '{"name":"Physics"}'; Tom sees "Physics" on his Classes page straight away.

Related: Server options · Where the data lives