Skip to content

project Command

Projects group checks inside an organization. The default project is where pakyas check create puts new checks; other check commands search the whole organization.

Terminal window
pakyas project list
+------------+------------+--------------------------------------+-------------------+---------+
| NAME | SLUG | ID | DESCRIPTION | DEFAULT |
+------------+------------+--------------------------------------+-------------------+---------+
| Production | production | 7c9e6679-7425-40de-944b-e07fc1f90ae7 | Production checks | * |
| Infra | infra | 9b2f4c1a-5e8d-4f6b-a7c3-1d2e3f4a5b6c | | |
+------------+------------+--------------------------------------+-------------------+---------+

With --format json|ndjson|yaml, each row has name, slug, id, description, and default ("*" for the default project, otherwise "").

Terminal window
pakyas project create --name <NAME> [--description <TEXT>] [--set-default]
FlagDescription
--name <NAME>Project name. Required in scripts.
--description <TEXT>Optional description. Never prompted for when --name is given.
--set-defaultMake the new project the default

The new project becomes the default only when you pass --set-default or when no default project is set yet. Otherwise the CLI keeps your current default and tells you how to use the new one:

✓ Created project: Infra (slug: infra)
ℹ Use it with --project infra, or make it the default: pakyas project default infra

Without --name, the command prompts for the name and description when run in a terminal. In scripts (no terminal), it fails with --name is required when not running interactively.

With --format json|ndjson|yaml, the created project is printed as an object with id, org_id, name, slug, and description.

Terminal window
# Create and switch to it
pakyas project create --name "Infra" --set-default
# Create without changing the default, then create a check in it
pakyas project create --name "Staging" --description "Staging jobs"
pakyas check create staging-sync --every 15m --project staging
# Capture the new project's ID
pakyas project create --name "Batch" --format json | jq -r '.id'

Sets the default project. Alias: project switch.

Terminal window
pakyas project default <NAME|ID|SLUG>

The argument is matched against project IDs first, then slugs, then names (case-insensitive). Quote names that contain spaces:

Terminal window
pakyas project default infra
pakyas project default "Data Pipelines"
pakyas project switch 7c9e6679-7425-40de-944b-e07fc1f90ae7

With --format json|ndjson|yaml, the selected project is printed as an object.

The global --project flag (or PAKYAS_PROJECT) overrides the default for a single command without changing it. It accepts an ID, slug, or name:

Terminal window
pakyas check list --project infra
pakyas check create disk-cleanup --every 1d --project infra
PAKYAS_PROJECT=staging pakyas check list

Switching organizations with pakyas org switch resets the default project to the first project of the new organization.