Display configuration
Display configuration
Display current configuration. You can use this command to generate an initial configuration file (see the examples below).
This command is disabled if the safe_mode setting is set to true in the configuration file.
madonctl config dump -i INSTANCE -L USERNAME -P PASS > config.yaml
madonctl whoami
madonctl whoami --template '{{.access_token}}'
-h, --help help for config
--color string Color mode (auto|on|off; for output=template)
--config string config file (default is $HOME/.config/madonctl/madonctl.yaml)
-i, --instance string Mastodon instance
-L, --login string Instance user login
-o, --output string Output format (plain|json|yaml|template|theme)
-P, --password string Instance user password
--template string Go template (for output=template)
--template-file string Go template file (for output=template)
--theme string Theme name (for output=theme)
-t, --token string User token
-v, --verbose Verbose mode