configure command

The configure command is used to quickly configure apoctl.
Calling configure will
  • Create an ~/.apoctl folder
  • Generate an app credential
  • Write a configuration file pointing to that app credential
apoctl configure --namespace /me --token <token>
This will create:
$ ls ~/.apoctl default.creds default.yaml
You can also use --name to change the configuration name to something else. This way, you can manage multiple configuration file.
If you try to run configure but the configuration file, appcred file or appcred object exist, apoctl will return an error unless you pass --force.
By default, configure will try to apply the role @auth:role=namespace.administrator. You may not have these privileges. In that can you can set the flag --role to use a different role.

Recommended For You