Skip to content

NickChristensen/cliftin

Repository files navigation

cliftin

CLIftin: A read-only CLI for Liftin'

oclif Version Downloads/week

Configuration

cliftin reads your Liftin database directly. By default it looks for the Liftin app's SQLite file at:

$HOME/Library/Containers/com.nstrm.Bello/Data/Library/Application Support/Liftin/BelloDataModel.sqlite

To use a different path, set LIFTIN_DB_PATH in your environment or in a .env.local file at the project root:

LIFTIN_DB_PATH=/path/to/BelloDataModel.sqlite

Usage

$ npm install -g @nickchristensen/cliftin
$ cliftin COMMAND
running command...
$ cliftin --help [COMMAND]
USAGE
  $ cliftin COMMAND
...

Commands

cliftin exercises list

List exercises

USAGE
  $ cliftin exercises list [--json] [--equipment <value>] [--muscle <value>] [--name <value>] [--sort
    name|lastPerformed|timesPerformed]

FLAGS
  --equipment=<value>  Filter by equipment name
  --muscle=<value>     Filter by muscle group
  --name=<value>       Filter by name contains
  --sort=<option>      [default: name]
                       <options: name|lastPerformed|timesPerformed>

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  List exercises

See code: src/commands/exercises/list.ts

cliftin exercises show SELECTOR

Show one exercise detail and history

USAGE
  $ cliftin exercises show SELECTOR [--json] [--all | --limit <value>] [--from <value>] [--max-reps <value>]
    [--max-weight <value>] [--min-reps <value>] [--min-weight <value>] [--program <value>] [--routine <value>] [--to
    <value>]

ARGUMENTS
  SELECTOR  exercise id or name

FLAGS
  --all                 Return all matching history rows (no limit)
  --from=<value>        History start date YYYY-MM-DD
  --limit=<value>       History row limit (default: 100)
  --max-reps=<value>    History max top reps
  --max-weight=<value>  History max top weight
  --min-reps=<value>    History min top reps
  --min-weight=<value>  History min top weight
  --program=<value>     History filter by program id or name
  --routine=<value>     History filter by routine id or name
  --to=<value>          History end date YYYY-MM-DD

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Show one exercise detail and history

See code: src/commands/exercises/show.ts

cliftin help [COMMAND]

Display help for cliftin.

USAGE
  $ cliftin help [COMMAND...] [-n]

ARGUMENTS
  [COMMAND...]  Command to show help for.

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

DESCRIPTION
  Display help for cliftin.

See code: @oclif/plugin-help

cliftin programs list

List programs

USAGE
  $ cliftin programs list [--json]

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  List programs

See code: src/commands/programs/list.ts

cliftin programs show [SELECTOR]

Show one program hierarchy

USAGE
  $ cliftin programs show [SELECTOR] [--json]

ARGUMENTS
  [SELECTOR]  program id or name (default: active program)

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Show one program hierarchy

See code: src/commands/programs/show.ts

cliftin workouts list

List workouts

USAGE
  $ cliftin workouts list [--json] [--limit <value> | --all] [--on <value> | --from <value> | --to <value>]
    [--program <value>] [--routine <value>]

FLAGS
  --all              Return all matching workouts (no limit)
  --from=<value>     Start date YYYY-MM-DD
  --limit=<value>    Limit workouts (default: 25)
  --on=<value>       Single date YYYY-MM-DD
  --program=<value>  Filter by program id or name
  --routine=<value>  Filter by routine id or name
  --to=<value>       End date YYYY-MM-DD

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  List workouts

See code: src/commands/workouts/list.ts

cliftin workouts next

Show the up-next routine from the active program

USAGE
  $ cliftin workouts next [--json]

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Show the up-next routine from the active program

See code: src/commands/workouts/next.ts

cliftin workouts show [WORKOUTID]

Show one workout with exercises and sets

USAGE
  $ cliftin workouts show [WORKOUTID] [--json]

ARGUMENTS
  [WORKOUTID]  workout id (default: latest workout)

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Show one workout with exercises and sets

See code: src/commands/workouts/show.ts

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages