Access Control and the CLI
When access control has been enabled, you may initially find yourself without a user account for the UI. Cluster templates can be used to combine the initial configuration of your replication groups, registrations of client application, and a core set of user accounts, but you can also use the CLI to do this.
Axon Server by default generates a token, and stores it in a file named “./security/.token”. This default location is known by the CLI, so if you run in the working directory of Axon Server, it will check for that file and automatically use the token. If you have overridden the location or provided your own file with a token, for example to ensure that all nodes use the same token, then you must use the "`-t` <token>" option to provide it to the CLI.