Skip to content

blazer82/analytodon-cli

Repository files navigation

Analytodon CLI

CLI for Analytodon.

Commands

analytodon-cli aggregate dailyaccountstats

Aggregate daily account stats for all accounts

USAGE
  $ analytodon-cli aggregate dailyaccountstats [-c <value>] [-d <value>] [-z <value>]

FLAGS
  -c, --connectionString=<value>  [default: mongodb://localhost:27017] MongoDB connection string
  -d, --database=<value>          [default: analytodon] Source database name
  -z, --timezone=<value>          Process accounts with this timezone

DESCRIPTION
  Aggregate daily account stats for all accounts

EXAMPLES
  $ analytodon-cli aggregate dailyaccountstats

See code: src/commands/aggregate/dailyaccountstats.ts

analytodon-cli aggregate dailytootstats

Aggregate daily toot stats for all accounts

USAGE
  $ analytodon-cli aggregate dailytootstats [-c <value>] [-d <value>] [-z <value>]

FLAGS
  -c, --connectionString=<value>  [default: mongodb://localhost:27017] MongoDB connection string
  -d, --database=<value>          [default: analytodon] Source database name
  -z, --timezone=<value>          Process accounts with this timezone

DESCRIPTION
  Aggregate daily toot stats for all accounts

EXAMPLES
  $ analytodon-cli aggregate dailytootstats

See code: src/commands/aggregate/dailytootstats.ts

analytodon-cli auth requesttoken

Aid with requesting OAuth token manually

USAGE
  $ analytodon-cli auth requesttoken -i <value> [-c <value>] [-s <value>] [-o <value>]

FLAGS
  -c, --clientID=<value>      OAuth client ID
  -i, --serverURL=<value>     (required) Mastodon instance URL
  -o, --code=<value>          OAuth code
  -s, --clientSecret=<value>  OAuth client secret

DESCRIPTION
  Aid with requesting OAuth token manually

EXAMPLES
  $ analytodon-cli auth requesttoken

See code: src/commands/auth/requesttoken.ts

analytodon-cli cleanup accountdata

Clean up orphaned account data.

USAGE
  $ analytodon-cli cleanup accountdata [-c <value>] [-d <value>] [-x]

FLAGS
  -c, --connectionString=<value>  [default: mongodb://localhost:27017] MongoDB connection string
  -d, --database=<value>          [default: analytodon] Source database name
  -x, --dryRun                    Dry run, no actual changes made

DESCRIPTION
  Clean up orphaned account data.

EXAMPLES
  $ analytodon-cli cleanup accountdata

See code: src/commands/cleanup/accountdata.ts

analytodon-cli cleanup accounts

Clean up accounts.

USAGE
  $ analytodon-cli cleanup accounts [-c <value>] [-d <value>] [-x]

FLAGS
  -c, --connectionString=<value>  [default: mongodb://localhost:27017] MongoDB connection string
  -d, --database=<value>          [default: analytodon] Source database name
  -x, --dryRun                    Dry run, no actual changes made

DESCRIPTION
  Clean up accounts.

EXAMPLES
  $ analytodon-cli cleanup accounts

See code: src/commands/cleanup/accounts.ts

analytodon-cli cleanup oldaccounts

Delete users with old accounts

USAGE
  $ analytodon-cli cleanup oldaccounts [-c <value>] [-d <value>] [-h <value>] [-x]

FLAGS
  -c, --connectionString=<value>  [default: mongodb://localhost:27017] MongoDB connection string
  -d, --database=<value>          [default: analytodon] Source database name
  -h, --host=<value>              [default: https://app.analytodon.com] App host URL
  -x, --dryRun                    Dry run, no actual changes made

DESCRIPTION
  Delete users with old accounts

EXAMPLES
  $ analytodon-cli cleanup oldaccounts

See code: src/commands/cleanup/oldaccounts.ts

analytodon-cli cleanup tootstats

Clean up old tootstats.

USAGE
  $ analytodon-cli cleanup tootstats [-c <value>] [-d <value>] [-r <value>] [-x]

FLAGS
  -c, --connectionString=<value>  [default: mongodb://localhost:27017] MongoDB connection string
  -d, --database=<value>          [default: analytodon] Source database name
  -r, --days=<value>              [default: 30] Retain tootstats for this number of days back
  -x, --dryRun                    Dry run, no actual changes made

DESCRIPTION
  Clean up old tootstats.

EXAMPLES
  $ analytodon-cli cleanup tootstats

See code: src/commands/cleanup/tootstats.ts

analytodon-cli cleanup usercredentials

Clean up user credentials.

USAGE
  $ analytodon-cli cleanup usercredentials [-c <value>] [-d <value>] [-x]

FLAGS
  -c, --connectionString=<value>  [default: mongodb://localhost:27017] MongoDB connection string
  -d, --database=<value>          [default: analytodon] Source database name
  -x, --dryRun                    Dry run, no actual changes made

DESCRIPTION
  Clean up user credentials.

EXAMPLES
  $ analytodon-cli cleanup usercredentials

See code: src/commands/cleanup/usercredentials.ts

analytodon-cli cleanup users

Clean up users that haven't completed setup.

USAGE
  $ analytodon-cli cleanup users [-c <value>] [-d <value>] [-x]

FLAGS
  -c, --connectionString=<value>  [default: mongodb://localhost:27017] MongoDB connection string
  -d, --database=<value>          [default: analytodon] Source database name
  -x, --dryRun                    Dry run, no actual changes made

DESCRIPTION
  Clean up users that haven't completed setup.

EXAMPLES
  $ analytodon-cli cleanup users

See code: src/commands/cleanup/users.ts

analytodon-cli fetch accountstats

Gather account stats for all accounts

USAGE
  $ analytodon-cli fetch accountstats [-c <value>] [-d <value>] [-z <value>]

FLAGS
  -c, --connectionString=<value>  [default: mongodb://localhost:27017] MongoDB connection string
  -d, --database=<value>          [default: analytodon] Source database name
  -z, --timezone=<value>          Process accounts with this timezone

DESCRIPTION
  Gather account stats for all accounts

EXAMPLES
  $ analytodon-cli fetch accountstats

See code: src/commands/fetch/accountstats.ts

analytodon-cli fetch initialstats

Gather initial stats for all accounts (only 1 per call)

USAGE
  $ analytodon-cli fetch initialstats [-c <value>] [-d <value>] [-a <value>] [-h <value>] [-t <value>]

FLAGS
  -a, --account=<value>           Only process specific account
  -c, --connectionString=<value>  [default: mongodb://localhost:27017] MongoDB connection string
  -d, --database=<value>          [default: analytodon] Source database name
  -h, --host=<value>              [default: https://app.analytodon.com] App host URL
  -t, --authorization=<value>     [default: no-key] Authorization header

DESCRIPTION
  Gather initial stats for all accounts (only 1 per call)

EXAMPLES
  $ analytodon-cli fetch initialstats

See code: src/commands/fetch/initialstats.ts

analytodon-cli fetch tootstats

Gather toot stats for all accounts

USAGE
  $ analytodon-cli fetch tootstats [-c <value>] [-d <value>] [-a] [-z <value>] [-m <value>]

FLAGS
  -a, --all                       Fetch all (legacy, always on)
  -c, --connectionString=<value>  [default: mongodb://localhost:27017] MongoDB connection string
  -d, --database=<value>          [default: analytodon] Source database name
  -m, --account=<value>           Only process this account (disables timezone filter!)
  -z, --timezone=<value>          Process accounts with this timezone

DESCRIPTION
  Gather toot stats for all accounts

EXAMPLES
  $ analytodon-cli fetch tootstats

See code: src/commands/fetch/tootstats.ts

analytodon-cli hello PERSON

Say hello

USAGE
  $ analytodon-cli hello PERSON -f <value>

ARGUMENTS
  PERSON  Person to say hello to

FLAGS
  -f, --from=<value>  (required) Who is saying hello

DESCRIPTION
  Say hello

EXAMPLES
  $ oex hello friend --from oclif
  hello friend from oclif!

See code: src/commands/hello/index.ts

analytodon-cli hello world

Say hello world

USAGE
  $ analytodon-cli hello world

DESCRIPTION
  Say hello world

EXAMPLES
  $ analytodon-cli hello world
  hello world! (./src/commands/hello/world.ts)

See code: src/commands/hello/world.ts

analytodon-cli help [COMMANDS]

Display help for analytodon-cli.

USAGE
  $ analytodon-cli help [COMMANDS] [-n]

ARGUMENTS
  COMMANDS  Command to show help for.

FLAGS
  -n, --nested-commands  Include all nested commands in the output.

DESCRIPTION
  Display help for analytodon-cli.

See code: @oclif/plugin-help

analytodon-cli mail oldaccounts

Send deletion reminder email to users with old accounts

USAGE
  $ analytodon-cli mail oldaccounts [-c <value>] [-d <value>] [-h <value>] [-t <value>] [-u <value>] [-x]

FLAGS
  -c, --connectionString=<value>  [default: mongodb://localhost:27017] MongoDB connection string
  -d, --database=<value>          [default: analytodon] Source database name
  -h, --host=<value>              [default: https://app.analytodon.com] App host URL
  -t, --authorization=<value>     [default: no-key] Authorization header
  -u, --user=<value>              Only process specific user
  -x, --dryRun                    Dry run, no actual changes made

DESCRIPTION
  Send deletion reminder email to users with old accounts

EXAMPLES
  $ analytodon-cli mail oldaccounts

See code: src/commands/mail/oldaccounts.ts

analytodon-cli mail weeklystats

Send weekly stats email to users

USAGE
  $ analytodon-cli mail weeklystats [-c <value>] [-d <value>] [-h <value>] [-t <value>] [-u <value>] [-z <value>]

FLAGS
  -c, --connectionString=<value>  [default: mongodb://localhost:27017] MongoDB connection string
  -d, --database=<value>          [default: analytodon] Source database name
  -h, --host=<value>              [default: https://app.analytodon.com] App host URL
  -t, --authorization=<value>     [default: no-key] Authorization header
  -u, --user=<value>              Only process specific user
  -z, --timezone=<value>          Process accounts with this timezone

DESCRIPTION
  Send weekly stats email to users

EXAMPLES
  $ analytodon-cli mail weeklystats

See code: src/commands/mail/weeklystats.ts

analytodon-cli plugins

List installed plugins.

USAGE
  $ analytodon-cli plugins [--core]

FLAGS
  --core  Show core plugins.

DESCRIPTION
  List installed plugins.

EXAMPLES
  $ analytodon-cli plugins

See code: @oclif/plugin-plugins

analytodon-cli plugins:install PLUGIN...

Installs a plugin into the CLI.

USAGE
  $ analytodon-cli plugins:install PLUGIN...

ARGUMENTS
  PLUGIN  Plugin to install.

FLAGS
  -f, --force    Run yarn install with force flag.
  -h, --help     Show CLI help.
  -v, --verbose

DESCRIPTION
  Installs a plugin into the CLI.
  Can be installed from npm or a git url.

  Installation of a user-installed plugin will override a core plugin.

  e.g. If you have a core plugin that has a 'hello' command, installing a user-installed plugin with a 'hello' command
  will override the core plugin implementation. This is useful if a user needs to update core plugin functionality in
  the CLI without the need to patch and update the whole CLI.


ALIASES
  $ analytodon-cli plugins add

EXAMPLES
  $ analytodon-cli plugins:install myplugin

  $ analytodon-cli plugins:install https://github.com/someuser/someplugin

  $ analytodon-cli plugins:install someuser/someplugin

analytodon-cli plugins:inspect PLUGIN...

Displays installation properties of a plugin.

USAGE
  $ analytodon-cli plugins:inspect PLUGIN...

ARGUMENTS
  PLUGIN  [default: .] Plugin to inspect.

FLAGS
  -h, --help     Show CLI help.
  -v, --verbose

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Displays installation properties of a plugin.

EXAMPLES
  $ analytodon-cli plugins:inspect myplugin

See code: @oclif/plugin-plugins

analytodon-cli plugins:install PLUGIN...

Installs a plugin into the CLI.

USAGE
  $ analytodon-cli plugins:install PLUGIN...

ARGUMENTS
  PLUGIN  Plugin to install.

FLAGS
  -f, --force    Run yarn install with force flag.
  -h, --help     Show CLI help.
  -v, --verbose

DESCRIPTION
  Installs a plugin into the CLI.
  Can be installed from npm or a git url.

  Installation of a user-installed plugin will override a core plugin.

  e.g. If you have a core plugin that has a 'hello' command, installing a user-installed plugin with a 'hello' command
  will override the core plugin implementation. This is useful if a user needs to update core plugin functionality in
  the CLI without the need to patch and update the whole CLI.


ALIASES
  $ analytodon-cli plugins add

EXAMPLES
  $ analytodon-cli plugins:install myplugin

  $ analytodon-cli plugins:install https://github.com/someuser/someplugin

  $ analytodon-cli plugins:install someuser/someplugin

See code: @oclif/plugin-plugins

analytodon-cli plugins:link PLUGIN

Links a plugin into the CLI for development.

USAGE
  $ analytodon-cli plugins:link PLUGIN

ARGUMENTS
  PATH  [default: .] path to plugin

FLAGS
  -h, --help     Show CLI help.
  -v, --verbose

DESCRIPTION
  Links a plugin into the CLI for development.
  Installation of a linked plugin will override a user-installed or core plugin.

  e.g. If you have a user-installed or core plugin that has a 'hello' command, installing a linked plugin with a 'hello'
  command will override the user-installed or core plugin implementation. This is useful for development work.


EXAMPLES
  $ analytodon-cli plugins:link myplugin

See code: @oclif/plugin-plugins

analytodon-cli plugins:uninstall PLUGIN...

Removes a plugin from the CLI.

USAGE
  $ analytodon-cli plugins:uninstall PLUGIN...

ARGUMENTS
  PLUGIN  plugin to uninstall

FLAGS
  -h, --help     Show CLI help.
  -v, --verbose

DESCRIPTION
  Removes a plugin from the CLI.

ALIASES
  $ analytodon-cli plugins unlink
  $ analytodon-cli plugins remove

analytodon-cli plugins:uninstall PLUGIN...

Removes a plugin from the CLI.

USAGE
  $ analytodon-cli plugins:uninstall PLUGIN...

ARGUMENTS
  PLUGIN  plugin to uninstall

FLAGS
  -h, --help     Show CLI help.
  -v, --verbose

DESCRIPTION
  Removes a plugin from the CLI.

ALIASES
  $ analytodon-cli plugins unlink
  $ analytodon-cli plugins remove

See code: @oclif/plugin-plugins

analytodon-cli plugins:uninstall PLUGIN...

Removes a plugin from the CLI.

USAGE
  $ analytodon-cli plugins:uninstall PLUGIN...

ARGUMENTS
  PLUGIN  plugin to uninstall

FLAGS
  -h, --help     Show CLI help.
  -v, --verbose

DESCRIPTION
  Removes a plugin from the CLI.

ALIASES
  $ analytodon-cli plugins unlink
  $ analytodon-cli plugins remove

analytodon-cli plugins update

Update installed plugins.

USAGE
  $ analytodon-cli plugins update [-h] [-v]

FLAGS
  -h, --help     Show CLI help.
  -v, --verbose

DESCRIPTION
  Update installed plugins.

See code: @oclif/plugin-plugins

analytodon-cli tools rebuilddailytootstats

Aggregate daily toot stats for all accounts

USAGE
  $ analytodon-cli tools rebuilddailytootstats [-c <value>] [-d <value>] [-m <value>] [-e <value>] [-a]

FLAGS
  -a, --all                       Rebuild daily toot stats for all accounts
  -c, --connectionString=<value>  [default: mongodb://localhost:27017] MongoDB connection string
  -d, --database=<value>          [default: analytodon] Source database name
  -e, --entry=<value>             Rebuild a specific entry only
  -m, --account=<value>           Rebuild daily toot stats for this account

DESCRIPTION
  Aggregate daily toot stats for all accounts

EXAMPLES
  $ analytodon-cli tools rebuilddailytootstats

See code: src/commands/tools/rebuilddailytootstats.ts