CROP

Getting Started

How to install and set up CROP Linear Archive

Prerequisites

  • Node.js 20+
  • npm or bun
  • Linear API key

Installation

# Clone the repository
git clone git@github.com:CT-CROP/CROP-linear-archive.git
cd CROP-linear-archive

# Install dependencies
npm install

Configuration

  1. Get your Linear API key from https://linear.app/settings/api

  2. Create .env file:

cp .env.example .env
  1. Add your API key to .env:
LINEAR_API_KEY=lin_api_your_key_here
ARCHIVE_DAYS_OLD=14
ARCHIVE_STATUSES=Archive,Canceled

First Run

# Preview what will be archived (no changes)
npm run archive:dry-run

# Archive issues (no deletion)
npm run archive

# Archive and delete from Linear
npm run archive:delete

Next Steps

On this page