-
Notifications
You must be signed in to change notification settings - Fork 2
CLI Reference
NightEye edited this page Sep 8, 2026
·
2 revisions
uncage [url] [options]Or run directly without installing:
npx @nightteye/uncage [url] [options]If you omit the URL, the web UI opens instead.
| Argument | Required | Description |
|---|---|---|
url |
No | The target URL to clone. If not provided, the web UI launches. |
| Flag | Default | Description |
|---|---|---|
-o, --output <dir> |
Site hostname | Name of the output folder inside output/. |
| Flag | Default | Description |
|---|---|---|
--max-pages <number> |
50 | Maximum number of pages to crawl. |
--max-depth <number> |
Unlimited | Maximum link depth from the seed page. 0 means only the seed page. |
--timeout <ms> |
30000 | How long to wait for each page to load, in milliseconds. |
--ignore-robots |
Off | Ignore robots.txt rules. Only use this on sites you own. |
--priority-only |
Off | Only crawl pages with a sitemap priority of 0.5 or higher. |
| Flag | Default | Description |
|---|---|---|
--no-headless |
Off | Show the browser window while crawling. Useful for debugging. |
--safe-mode |
Off | Disable JavaScript execution. Faster, but cannot render single-page apps. |
| Flag | Default | Description |
|---|---|---|
--skip-deps |
Off | Skip recursive JavaScript module dependency resolution. |
--allow-url <pattern> |
None | Allow asset URLs matching this glob pattern. Can be used multiple times. |
--block-url <pattern> |
None | Block asset URLs matching this glob pattern. Can be used multiple times. |
--max-memory <mb> |
0 (unlimited) | Maximum memory in MB for page buffers. |
| Flag | Default | Description |
|---|---|---|
--no-purge |
Off | Skip PurgeCSS. Keeps all CSS classes, even unused ones. Turn this on if dynamic styles look broken. |
--keep-analytics |
Off | Keep third-party analytics and tracking scripts in the export. |
| Flag | Default | Description |
|---|---|---|
--ui |
Off | Open the web UI even when a URL is provided. |
--port <number> |
8787 | Port for the web UI server. |
Clone a single page:
uncage https://example.com --max-depth 0Clone an entire site with a custom output folder:
uncage https://example.com -o my-siteClone with the browser visible (for debugging):
uncage https://example.com --no-headlessClone without CSS purging (if the export looks broken):
uncage https://example.com --no-purgeLaunch the web UI on a different port:
uncage --port 9000