users
User management is an admin-only operation. These commands let you create and manage accounts on the Slasha instance.
slasha users list
List all user accounts. Output columns: ID, EMAIL, ROLE, CREATED AT.
slasha users listslasha users create
Create a new user account. The CLI will prompt for a password interactively unless--password-stdin is passed or the SLASHA_PASSWORD environment variable is set (useful in scripts and CI).
# interactive password prompt
slasha users create --email alice@example.com --role admin
# create a user with access to specific apps
slasha users create --email bob@example.com --role user --apps app1,app2
# password from stdin (useful in CI)
echo "s3cr3t" | slasha users create --email alice@example.com --role admin --password-stdin
# password from environment variable
SLASHA_PASSWORD=s3cr3t slasha users create --email alice@example.com --role admin--email <EMAIL>— email address for the new user (required)--role <ROLE>— role for the new user, must beadminoruser(required)--apps <SLUGS>— comma-separated list of app slugs this user can access (only applies touserrole)--password-stdin— read the password from stdin instead of prompting
slasha users update
Update a user's email, role, password, or app access. Pass the user ID and any fields to change.
slasha users update <ID> --email newemail@example.com
slasha users update <ID> --role user
slasha users update <ID> --apps my-api,my-web
slasha users update <ID> --password<ID>— user ID (fromslasha users list)--email <EMAIL>— new email address (optional)--role <ROLE>— new role,adminoruser(optional)--apps <SLUGS>— comma-separated list of app slugs this user can access (optional)--password— triggers an interactive prompt to set a new password for the user (optional)
Admin Safeguard: Slasha prevents you from demoting the last remaining
admin user to ensure you don't lock yourself out.slasha users delete
Delete a user account. Prompts for confirmation unless -y is passed.
slasha users delete <ID>
slasha users delete <ID> -y<ID>— user ID (fromslasha users list)-y/--yes— skip the confirmation prompt
Admin Safeguard: Slasha prevents you from deleting the last remaining
admin user.