Skip to main content

Command Line

Palette's CLI allows uploading source maps to Palette. It also supports automatically setting up your project with Palette.

Usage

palette <cmd> [args]

Commands:
palette upload <dir> [opts] Upload source maps to Palette
palette setup Setup your project with palette

Options:
--version Show version number [boolean]
--help Show help [boolean]

Upload source maps

To upload source maps, specify the directory containing source maps. The asset key PALETTE_ASSET_KEY environment variable must be set to your asset key.

Get your asset key at https://palette.dev/[your-username]/[your-project]/settings

PALETTE_ASSET_KEY=a-123 npx @palette.dev/cli upload my/build/dir

Setting version

Use the --version flag to set the version of your build (see the versioning docs).

npx @palette.dev/cli upload my/build/dir --release --version v1.0.0

Mark version as a release

Use the --release flag to mark a version as a release (see the versioning docs).

npx @palette.dev/cli upload my/build/dir --release

Setup Script

Use Palette's setup script to automatically setup your project with Palette.

Only Next.js, Create React App, and vanilla react setups are supported at the moment.

npx @palette.dev/cli setup
© 2024 Redraw, Inc.