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.
project list
Section titled “project list”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 "").
project create
Section titled “project create”pakyas project create --name <NAME> [--description <TEXT>] [--set-default]| Flag | Description |
|---|---|
--name <NAME> | Project name. Required in scripts. |
--description <TEXT> | Optional description. Never prompted for when --name is given. |
--set-default | Make 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 infraWithout --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.
# Create and switch to itpakyas project create --name "Infra" --set-default
# Create without changing the default, then create a check in itpakyas project create --name "Staging" --description "Staging jobs"pakyas check create staging-sync --every 15m --project staging
# Capture the new project's IDpakyas project create --name "Batch" --format json | jq -r '.id'project default
Section titled “project default”Sets the default project. Alias: project switch.
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:
pakyas project default infrapakyas project default "Data Pipelines"pakyas project switch 7c9e6679-7425-40de-944b-e07fc1f90ae7With --format json|ndjson|yaml, the selected project is printed as an object.
Using a Project for One Command
Section titled “Using a Project for One Command”The global --project flag (or PAKYAS_PROJECT) overrides the default for a single command without changing it. It accepts an ID, slug, or name:
pakyas check list --project infrapakyas check create disk-cleanup --every 1d --project infraPAKYAS_PROJECT=staging pakyas check listSwitching organizations with pakyas org switch resets the default project to the first project of the new organization.
See Also
Section titled “See Also”- check - Create and manage checks
- org - Switch organizations
- CLI Configuration - Precedence and environment variables