Skip to content

d-sektionen/informerad

Repository files navigation

InformeraD

InformeraD genom email.

Work in progress.

oclif Version Downloads/week License

Usage

$ npm install -g @d-sektionen/informerad
$ informerad COMMAND
running command...
$ informerad (-v|--version|version)
@d-sektionen/informerad/1.0.0 linux-x64 node-v12.17.0
$ informerad --help [COMMAND]
USAGE
  $ informerad COMMAND
...

Commands

informerad help [COMMAND]

display help for informerad

USAGE
  $ informerad help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

informerad send

Generates and sends an email.

USAGE
  $ informerad send

OPTIONS
  -h, --help                               show CLI help
  -l, --layout=newsletter|announcement     [default: newsletter] the email layout template
  -p, --preview=open|open-linux|copy|none  type of preview, will prompt if omitted
  -r, --recipients=recipients              path to json file of recipients
  -t, --title=title                        the email title, aka subject, will prompt if omitted
  --content=content                        path to folder of mail content
  --django_backend                         retrieve recipients from the D-sektionen Django backend
  --export_recipients=export_recipients    path to json file which recipients are exported to.
  --schedule                               get prompted to schedule sending
  --test                                   enable mailgun test mode

See code: src/commands/send.ts

informerad setting SETTING VALUE

Command for configuring the different settings of InformeraD.

USAGE
  $ informerad setting SETTING VALUE

ARGUMENTS
  SETTING  mgkey: Mailgun private key.
           djangotoken: Django backend access token.
           wpkey: (Outdated) Wordpress access token.
           wpuser: (Outdated) Wordpress username for the sender.

  VALUE    The string value of the setting

OPTIONS
  -h, --help  show CLI help

See code: src/commands/setting.ts