Requirements
Runtime
- Bun >= 1.3.0 (recommended) - Node.js >= 20.0.0
TypeScript
TypeScript >= 5.0.0 (for type checking)
Install the Client
Choose your preferred package manager:Set Up Environment Variables
Add your API key to your environment:Get Your API Key
- Go to readonly.store
- Sign in or create an account
- Create a new project or open an existing one
- Copy the API key from your project dashboard (starts with
ro_)
Verify Installation
Run the sync command to verify everything is set up correctly:Directory Structure
After running sync, you’ll have:Next Steps
Quickstart
Follow the quickstart guide to sync your first files.
CLI Reference
Learn about all available commands.
Configuration
Customize cache and output directories.
Usage Guide
Learn how to import and use your files.
Troubleshooting
Command not found: readonly
Command not found: readonly
Make sure you’re using
bunx readonly or npx readonly to run the CLI. The package is installed locally, not
globally.Missing READONLY_API_KEY
Missing READONLY_API_KEY
Set the environment variable before running commands:
bash READONLY_API_KEY=ro_your_key bunx readonly sync Or add it to your .env file.Type errors when importing
Type errors when importing
Make sure you’ve run
bunx readonly sync at least once to generate the TypeScript types.