home / skills / michalvavra / agents / asncli
/skills/asncli
This skill helps you manage Asana projects and tasks from the command line with quick, accurate commands and parseable output.
npx playbooks add skill michalvavra/agents --skill asncliReview the files below or copy the command above to add this skill to your agents.
---
name: asncli
description: CLI for Asana. Manage projects and tasks.
compatibility: Requires asn CLI (github.com/michalvavra/asncli). Run `asn auth login` to authenticate.
---
# asncli
CLI for Asana via [michalvavra/asncli](https://github.com/michalvavra/asncli).
## Examples
```bash
asn auth login
asn auth status
asn config set-workspace
asn projects list [--workspace=GID] [--archived] [--limit=N]
asn projects get <gid>
asn custom-fields list [--workspace=GID] [--limit=N]
asn tasks list --project=GID [--limit=N]
asn tasks list --assignee=me [--workspace=GID] [--completed-since=RFC3339]
asn tasks get <gid>
asn tasks create --name="Task name" [--project=GID] [--assignee=me] [--notes="..."] [--due-on=YYYY-MM-DD]
asn tasks update <gid> [--name="..."] [--notes="..."] [--assignee=GID] [--due-on=YYYY-MM-DD] [--completed]
asn tasks search [--text=STRING] [--assignee-any=GID,...] [--projects-any=GID,...] [--due-on-before=YYYY-MM-DD] [--completed] [--sort-by=due_date] [--limit=N]
```
Use `--json` for parseable output, `--help` on any command for options.
This skill provides a command-line interface to Asana for managing workspaces, projects, custom fields, and tasks. It exposes common Asana operations—authentication, listing and retrieving projects, creating and updating tasks—designed for scripting and terminal workflows. Output can be made machine-parseable with JSON for automation.
The CLI wraps Asana API calls into simple commands like auth, projects, custom-fields, and tasks. Commands support flags for workspace and project selection, filtering (assignee, due dates, completed state), and produce human-readable or JSON output. Use --help on any command to see options and --json to get parseable results for pipelines.
How do I get machine-readable output?
Add the --json flag to most commands to receive JSON suitable for parsing.
Can I avoid passing workspace for every command?
Yes. Run asn config set-workspace to set a default workspace for subsequent commands.