madonctl config

Display configuration

Synopsis

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.

Examples

  madonctl config dump -i INSTANCE -L USERNAME -P PASS > config.yaml
  madonctl whoami
  madonctl whoami --template '{{.access_token}}'

Options

  -h, --help   help for config

Options inherited from parent commands

      --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

SEE ALSO

Auto generated by spf13/cobra on 21-Mar-2018