Documentation navigation

Generate repositories with the Djass CLI

Use the djass command to create a project on hosted Djass and receive the generated repository in your local workspace. The CLI covers every Projects API v1 operation and returns JSON that AI agents can consume directly.

Install the CLI

Install the latest checksum-verified release directly from Djass:

curl -fsSL https://djass.dev/downloads/cli/install.sh | sh

Set DJASS_INSTALL_DIR to choose a directory other than ~/.local/bin. Windows archives and manual downloads are available under https://djass.dev/downloads/cli/latest/.

Copy your Agent API key from Account settings, then add it to your shell environment:

export DJASS_API_KEY="replace-with-your-key"

Treat this value as a secret. The CLI uses https://djass.dev/api/v1 by default and never prints the key.

Generate a repository

Run one command to create, wait for, download, and extract a project:

djass generate \
  --name "Acme CRM" \
  --slug acme_crm \
  --set use_qdrant=y \
  --set use_mcp=y \
  --set use_reviewgate=y \
  --set use_posthog=y \
  --output ./acme_crm

The output directory must be new or empty. The CLI refuses path traversal, symbolic links, and other unsafe entries in downloaded ZIP files, and it does not overwrite an existing repository.

Successful output is JSON:

{
  "output": "/workspace/acme_crm",
  "project_id": 123,
  "size_bytes": 48291,
  "status": "ready"
}

Discover current options

Fetch the live generator catalog before choosing feature flags:

djass options

Pass any supported option with repeatable --set key=value flags. This keeps the CLI aligned when Djass adds generator options without requiring a new CLI release.

use_reviewgate=y adds the ReviewGate pull-request workflow. After generation, add OPENROUTER_API_KEY as a GitHub Actions repository secret before relying on the review check.

use_qdrant=y adds authenticated Qdrant client configuration to the generated repository. You still provide the Qdrant service and define its collections, vector indexing, and query workflows.

For complete or generated request bodies, save the same JSON accepted by POST /projects and pass it directly:

djass generate --payload project.json --output ./acme_crm

--name, --slug, and --set values override fields from the payload file.

Use individual API operations

Each Projects API v1 operation has a direct command:

djass projects create --name "Acme CRM" --slug acme_crm --set use_mcp=y
djass projects list --status ready --limit 20
djass projects get 123
djass projects status 123
djass projects download 123 --output acme_crm.zip

Use these commands when an agent needs control over polling, artifact placement, or a later download. Read Projects API v1 for the response and error contracts.

Configure staging or local Djass

Set a different API base URL when testing another deployment:

export DJASS_BASE_URL="https://staging.example.com/api/v1"

The CLI permits plain HTTP only for localhost and 127.0.0.1, preventing an API key from being sent to a remote server without transport encryption.