admin

Command-line tools for managing Nylas applications and other organization-level resources. Nylas is a platform that lets software connect to email, calendars, and contacts.

In plain words
What is it for?
Use them to list applications, inspect their details, create new applications, change branding or callback URLs, and delete applications.
Why use it?
They provide one place to view, create, update, and delete applications instead of managing each resource manually. API key authentication is required.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/nylas/cli/admin
Clone the repo
git clone --depth 1 https://github.com/nylas/cli
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,223 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.02223
Opus 5 $0.00000 $0.01111
Sonnet 5 $0.00000 $0.00445
Haiku 4.5 $0.00000 $0.00222

Measured yesterday against content hash 45d3e4ea09b5, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

admin scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

docs/commands/admin.md · 308 lines

How it starts

The opening of the file, as written. The whole thing — 308 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Admin Commands

Administrative commands for managing Nylas platform resources at an organizational level. These commands require API key authentication.

Applications

Manage Nylas applications in your organization.

# List applications
nylas admin applications list
nylas admin apps list              # Alias
nylas admin app list --json        # Output as JSON

# Show application details
nylas admin applications show <app-id>
nylas admin app show <app-id> --json

# Create application
nylas admin applications create --name "My App" --region us
nylas admin app create --name "My App" --region eu \
  --branding-name "MyApp" \
  --website-url "https://myapp.com" \
  --callback-uris "https://myapp.com/oauth/callback,https://myapp.com/oauth/redirect"

# Update application
nylas admin applications update <app-id> --name "Updated Name"
nylas admin app update <app-id> --branding-name "NewBrand" --website-url "https://new.com"

# Delete application
nylas admin applications delete <app-id>
nylas admin app delete <app-id> --yes  # Skip confirmation

Example: List applications

$ nylas admin applications list

Found 2 application(s):

APP ID              REGION    ENVIRONMENT
myapp-prod-123      us        production
myapp-dev-456       us        development

Example: Show application details

$ nylas admin applications show myapp-prod-123

Application Details
  ID: app_abc123
  Application ID: myapp-prod-123
  Organization ID: org_xyz789
  Region: us
  Environment: production

Branding:
  Name: MyApp
  Website: https://myapp.com

Callback URIs (2):
  1. https://myapp.com/oauth/callback
  2. https://myapp.com/oauth/redirect

Callback URIs

Manage OAuth callback URIs for your Nylas application. These are the redirect endpoints used during OAuth authentication flows.

# List callback URIs
nylas admin callback-uris list
nylas admin cb list                # Alias
nylas admin callbacks list --json  # Output as JSON

# Show callback URI details
nylas admin callback-uris show <uri-id>
nylas admin cb show <uri-id> --json

# Create callback URI
nylas admin callback-uris create --url http://localhost:9007/callback
nylas admin cb create --url https://myapp.com/oauth/callback --platform web

# Update callback URI
nylas admin callback-uris update <uri-id> --url https://myapp.com/new-callback
nylas admin cb update <uri-id> --platform ios

# Delete callback URI
nylas admin callback-uris delete <uri-id>
nylas admin cb delete <uri-id> --yes  # Skip confirmation

Read the full file on GitHub · 308 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 308 lines · 0 tokens per session scan A 45d3e4ea09b5

Subscribe to this mod's changes

admin is a command published in the GitHub repository nylas/cli (68 stars, last pushed 13d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,223 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.