Skip to content

Commit e4d8871

Browse files
author
Remote release bot
committed
release v0.0.2
1 parent 9c0cb42 commit e4d8871

5 files changed

Lines changed: 31 additions & 29 deletions

File tree

.claude-plugin/marketplace.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"name": "remote-cli",
99
"source": "./plugins/remote-cli",
1010
"description": "Tools and skills for interacting with the Remote.com partner API from the command line.",
11-
"version": "v0.0.1"
11+
"version": "v0.0.2"
1212
}
1313
]
1414
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,6 @@ After installing, the `remote-cli` skill is available in Claude Code and knows h
5656

5757
## Version
5858

59-
Current release: **v0.0.1**
59+
Current release: **v0.0.2**
6060

6161
See the [Releases page](https://github.com/remoteoss/remote-cli/releases) for history.

plugins/remote-cli/.claude-plugin/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "remote-cli",
3-
"version": "v0.0.1",
3+
"version": "v0.0.2",
44
"description": "Skill that drives the `remotecli` binary against the Remote.com partner API.",
55
"author": {
66
"name": "Remote"

plugins/remote-cli/skills/remote-cli/SKILL.md

Lines changed: 26 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
22
name: remote-cli
3-
description: Use when the user asks you to perform any Remote.com HR action — create or list time off, manage expenses (approve/decline/download receipts), list or create employments, download payslips, submit terminations — via the ./remote CLI tool in this project. Also triggers when asked to look up leave balance, employment status, or company info through the CLI.
3+
description: Use when the user asks you to perform any Remote.com HR action — create or list time off, manage expenses (approve/decline/download receipts), list or create employments, download payslips, submit terminations — via the remotecli CLI tool in this project. Also triggers when asked to look up leave balance, employment status, or company info through the CLI.
44
---
55

66
# Using the Remote CLI
77

88
## Overview
99

10-
`./remote` is the built binary for this project. Build it with `go build -o remote .` if the binary is missing or stale after code changes.
10+
`remotecli` is the built binary for this project. Build it with `make build` if the binary is missing or stale after code changes.
1111

1212
Requires three environment variables:
1313
```bash
@@ -18,8 +18,8 @@ export REMOTE_CLIENT_SECRET=<your_client_secret>
1818

1919
An **active company** must be selected before most commands:
2020
```bash
21-
./remote companies list # see what's saved
22-
./remote use # interactively pick the active one
21+
remotecli companies list # see what's saved
22+
remotecli use # interactively pick the active one
2323
```
2424

2525
## Non-Interactive Usage
@@ -32,34 +32,36 @@ Every command that normally prompts can be driven entirely with flags — always
3232
|---------|-------------|-----------|
3333
| `login` | Authenticate via browser (PKCE) ||
3434
| `use` | Pick active company (interactive) ||
35-
| `me` | Show current identity | |
35+
| `me` | Show current identity | `--company-token` |
3636
| `companies list` | List saved companies | `--pretty` |
37-
| `companies create` | Create a company | |
37+
| `companies create` | Create a company | `--integration-token` |
3838
| `employments list` | List employments | `--status`, `--email`, `--all` |
3939
| `employments create` | Onboard a new employee | `--country` |
4040
| `employments show <id>` | Get a single employment ||
41-
| `expenses list` | List expenses | `--employment-id`, `--pretty` |
42-
| `expenses create` | Submit an expense | `--employment-id`, `--amount`, `--currency`, `--expense-date` |
41+
| `expenses list` | List expenses | `--all`, `--pretty` |
42+
| `expenses create` | Submit an expense | `--employment-id`, `--amount`, `--currency`, `--expense-date`, `--title`, `--tax-amount` |
4343
| `expenses approve` | Approve a pending expense | `--expense-id` |
4444
| `expenses decline` | Decline a pending expense | `--expense-id`, `--reason` |
45-
| `expenses download-receipt` | Download a receipt file | `--expense-id`, `--out-file` |
45+
| `expenses download-receipt` | Download a receipt file | `--expense-id`, `--receipt-id`, `--out-file` |
4646
| `payslips list` | List payslips | `--employment-id`, `--start-date`, `--end-date` |
47-
| `payslips download` | Download a payslip PDF | `--payslip-id`, `--out-file` |
48-
| `time-off policies` | List leave policies | `--employment-id` |
49-
| `time-off balance` | Show leave balance | `--employment-id` |
50-
| `time-off create` | Create approved time off | `--employment-id`, `--timeoff-type`, `--start-date`, `--end-date` |
51-
| `time-off list` | List time off records | `--employment-id`, `--status` |
47+
| `payslips download` | Download a payslip PDF | `--id`, `--out-file` |
48+
| `time-off policies` | List leave policies details | `--employment-id` |
49+
| `time-off balance` | Show leave balance summary | `--employment-id` |
50+
| `time-off create` | Create time off (approved if manager, requested if employee) | `--employment-id`, `--timeoff-type`, `--start-date`, `--end-date` |
51+
| `time-off list` | List time off records | `--employment-id`, `--status`, `--timeoff-type` |
5252
| `time-off approve` | Approve a requested time off | `--timeoff-id` |
53-
| `time-off cancel` | Cancel approved time off | `--timeoff-id`, `--reason` |
53+
| `time-off cancel` | Cancel an approved time off | `--timeoff-id`, `--reason` |
5454
| `time-off decline` | Decline a requested time off | `--timeoff-id`, `--reason` |
5555
| `terminations list` | List terminations | `--employment-id`, `--type` |
5656
| `terminations create` | Submit a termination request | `--employment-id` |
57+
| `cache clear` | Flush cached responses (all or by prefix) | `--resource` |
58+
| `cache path` | Print the cache file path ||
5759

5860
## Common Workflows
5961

6062
**Create time off for an employee:**
6163
```bash
62-
./remote time-off create \
64+
remotecli time-off create \
6365
--employment-id emp_abc123 \
6466
--timeoff-type time_off \
6567
--start-date 2026-05-09 \
@@ -69,31 +71,31 @@ Common types: `time_off`, `sick_leave`, `paid_time_off`, `public_holiday`, `unpa
6971

7072
**List active employments:**
7173
```bash
72-
./remote employments list --status active --pretty
74+
remotecli employments list --status active --pretty
7375
```
7476

7577
**Approve a pending expense:**
7678
```bash
77-
./remote expenses approve --expense-id exp_xyz789
79+
remotecli expenses approve --expense-id exp_xyz789
7880
```
7981

8082
**Download the latest payslip for an employment:**
8183
```bash
82-
./remote payslips list --employment-id emp_abc123 --pretty
83-
./remote payslips download --payslip-id <id> --out-file ./payslip.pdf
84+
remotecli payslips list --employment-id emp_abc123 --pretty
85+
remotecli payslips download --id <id> --out-file ./payslip.pdf
8486
```
8587

8688
**Check an employee's leave balance:**
8789
```bash
88-
./remote time-off balance --employment-id emp_abc123 --pretty
90+
remotecli time-off balance --employment-id emp_abc123 --pretty
8991
```
9092

9193
## Output Control
9294

9395
```bash
94-
./remote <cmd> # JSON output (default)
95-
./remote <cmd> --pretty # human-readable table
96-
./remote <cmd> --all # fetch all pages (list commands; default page-size: 100)
96+
remotecli <cmd> # JSON output (default)
97+
remotecli <cmd> --pretty # human-readable table
98+
remotecli <cmd> --all # fetch all pages (list commands; default page-size: 20)
9799
```
98100

99101
## Role Restrictions

plugins/remote-cli/skills/remote-cli/references/commands.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,10 +230,10 @@ List payslips. Behaviour differs by token type:
230230
Download a payslip as PDF.
231231

232232
```bash
233-
./remote payslips download [--payslip-id <id>] [--out-file <path>] [--company-token <token>]
233+
./remote payslips download [--id <id>] [--out-file <path>] [--company-token <token>]
234234
```
235235

236-
Omitting `--payslip-id` opens an interactive picker. Default output path is the server filename or `./payslip-<id>.pdf`.
236+
Omitting `--id` opens an interactive picker. Default output path is the server filename or `./payslip-<id>.pdf`.
237237

238238
---
239239

0 commit comments

Comments
 (0)