CLI for submitting FreeAgent timeslips
Project description
freeagent-cli
A small CLI for submitting FreeAgent timeslips without clicking through the web UI.
freeagent-cli time submit --project acme --hours 1h30m --comment "fixed the thing"
Install
uv tool install freeagent-cli
One-time setup
You'll need to register your own OAuth app with FreeAgent. It takes about two minutes and keeps your data and rate limits separate from everyone else's.
-
Go to https://dev.freeagent.com/apps and create a new app.
-
Set the redirect URI to:
http://localhost:7878/callback -
Note the OAuth identifier and OAuth secret.
-
Save them locally:
freeagent-cli auth init --client-id <id> --client-secret <secret>Add
--sandboxif you want to test against the FreeAgent sandbox first. -
Authorise the app in your browser:
freeagent-cli auth loginA browser tab opens, you approve, and the CLI captures the refresh token. The refresh token lasts ~20 years; access tokens auto-refresh on every command.
Credentials are stored at ~/Library/Application Support/freeagent-cli/config.json (macOS) or the equivalent platform config directory, with file mode 0600.
Usage
freeagent-cli --help # canonical flow
freeagent-cli projects list # projects + tasks in one call
freeagent-cli time submit --project <name> --hours 1h30m [--task <name>] [--comment "..."] [--dry-run]
--hoursaccepts1.5,90m,1h30m, or1:30.--project/--taskmatch by case-insensitive name substring, numeric id, or full URL.--taskis optional when the project has a single task; otherwise the error message lists the choices.--datedefaults to today (ISOYYYY-MM-DDto override).--dry-runresolves the project/task/date and prints the would-be submission without sending it.
License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file freeagent_cli-0.1.0.tar.gz.
File metadata
- Download URL: freeagent_cli-0.1.0.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.13 {"installer":{"name":"uv","version":"0.11.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9907f21bbffbb578129f035d5a3d42014ea342355aa1f9a740626be8595c6e11
|
|
| MD5 |
de7d8acf9dddb1fd379a5e67c7c46ed5
|
|
| BLAKE2b-256 |
aff333649910ac416fd70d30050d6cf4de0fefd9bc12300ffe14a0022c5657eb
|
File details
Details for the file freeagent_cli-0.1.0-py3-none-any.whl.
File metadata
- Download URL: freeagent_cli-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.13 {"installer":{"name":"uv","version":"0.11.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae32414a71e7866e9f065b994e9748dcccf86da80f716a0ad724640e456091dc
|
|
| MD5 |
f22ccb9b5878ee5d779e2474f8c05fbb
|
|
| BLAKE2b-256 |
8cfb036d771fbec5eb9d2c21ef6c5a1a8973df83376318c6166f0a956dbcb517
|