@nickchristensen/cliftin
v2.0.0
Published
CLIftin: A read-only CLI for Liftin'
Downloads
590
Readme
cliftin
CLIftin: A read-only CLI for Liftin'
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.sqliteTo 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.sqliteUsage
$ npm install -g @nickchristensen/cliftin
$ cliftin COMMAND
running command...
$ cliftin --help [COMMAND]
USAGE
$ cliftin COMMAND
...Commands
cliftin exercises listcliftin exercises show SELECTORcliftin help [COMMAND]cliftin programs listcliftin programs show [SELECTOR]cliftin workouts listcliftin workouts nextcliftin workouts show [WORKOUTID]
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 exercisesSee 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 historySee 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 programsSee 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 hierarchySee 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 workoutsSee 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 programSee 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 setsSee code: src/commands/workouts/show.ts
