{"id":50681738,"url":"https://github.com/megamanics/replacor","last_synced_at":"2026-06-08T19:32:29.882Z","repository":{"id":59190868,"uuid":"502158680","full_name":"megamanics/replacor","owner":"megamanics","description":"Search \u0026 Replace CLI for Confluence Pages","archived":false,"fork":false,"pushed_at":"2023-10-24T19:45:16.000Z","size":252,"stargazers_count":1,"open_issues_count":9,"forks_count":3,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-30T16:27:58.960Z","etag":null,"topics":["atlassian-confluence","cli","confluence","nodejs","rest-api"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/megamanics.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null}},"created_at":"2022-06-10T19:29:11.000Z","updated_at":"2025-09-23T09:40:29.000Z","dependencies_parsed_at":"2023-02-08T13:30:32.136Z","dependency_job_id":null,"html_url":"https://github.com/megamanics/replacor","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/megamanics/replacor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/megamanics%2Freplacor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/megamanics%2Freplacor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/megamanics%2Freplacor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/megamanics%2Freplacor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/megamanics","download_url":"https://codeload.github.com/megamanics/replacor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/megamanics%2Freplacor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34078019,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-08T02:00:07.615Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["atlassian-confluence","cli","confluence","nodejs","rest-api"],"created_at":"2026-06-08T19:32:26.205Z","updated_at":"2026-06-08T19:32:29.872Z","avatar_url":"https://github.com/megamanics.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![CodeQL](https://github.com/megamanics/replacor/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/megamanics/replacor/actions/workflows/codeql-analysis.yml)\n[![ESLint analysis](https://github.com/megamanics/replacor/actions/workflows/eslint.yml/badge.svg)](https://github.com/megamanics/replacor/actions/workflows/eslint.yml)\n\n[![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/megamanics/replacor/badge)](https://api.securityscorecards.dev/projects/github.com/megamanics/replacor)\n\n# Pre-Reqs for this\n\n* [Install node.js](https://nodejs.org/en/)\n* [API Token with scope read:content-details:confluence,write:content:confluence](https://id.atlassian.com/manage/api-tokens)\n\n\n\n# Setup\n```\ngh repo clone megamanics/replacor\ncd replacor\nnpm install\n```\n\n# Search CLI\n```\n./search.js -h                                                                                                                                                           \nUsage: search.js [options]\n\nCLI to search Confluence Pages\n\nOptions:\n  -V, --version             output the version number\n  -q, --query \u003cquery\u003e       CQL query to search for, eg: text~gitlab\n  -u, --user  \u003cuser\u003e        user eg: your_email@domain.com\n  -t, --token \u003ctoken\u003e       your_user_api_token with scope read:content-details:confluence,write:content:confluence\n  -d, --domain \u003cdomainurl\u003e  eg: https://\u003cdomain_name\u003e.atlassian.net\n  -h, --help                display help for command\n```\n\nexample of an execution\n```\n./search.js -u $CONFLUENCE_USER -t $CONFLUENCE_TOKEN -d $CONFLUENCE_DOMAIN -q text~bitbucket.com                                                                       \n```\n\n# Search \u0026 Replace CLI\n```\n./replace.js -h                                                                                                                                   \nUsage: replace.js [options]\n\nCLI to replace strings in Confluence Pages\n\nOptions:\n  -V, --version              output the version number\n  -q, --query \u003cquery\u003e        CQL query used to search pages, eg: text~gitlab\n  -s, --search  \u003cstring\u003e     string to replace eg: gitlab\n  -r, --replace  \u003cstring\u003e    replacement string eg: gitlab -\u003e github\n  -u, --user  \u003cuser\u003e         user eg: your_email@domain.com\n  -t, --token \u003ctoken\u003e        your_user_api_token with scope read:content-details:confluence,write:content:confluence\n  -d, --domain \u003cdomainurl\u003e   eg: https://\u003cdomain_name\u003e.atlassian.net\n  -l, --loglevel \u003cloglevel\u003e  loglevel, eg: debug, info, warn, error, fatal\n  -c, --convertbburl         convert bitbucket url format to github url format\n  --dryrun                   dry run only\n  -h, --help                 display help for command\n  ```\n  \n  example of an execution\n```\n./replace.js -u $CONFLUENCE_USER -t $CONFLUENCE_TOKEN -d $CONFLUENCE_DOMAIN -q text~searchexpression -s \u003ctext2replace\u003e -r \u003creplacement-text\u003e --convertbburl --dryrun                                                         \n```\n\n### Advanced Search Strings\n\n### To restrict search within a space \n```\nspace = DEV and text~gitlab\n```\n\n# Reference\nhttps://developer.atlassian.com/server/confluence/advanced-searching-using-cql\nhttps://developer.atlassian.com/server/confluence/performing-text-searches-using-cql\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmegamanics%2Freplacor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmegamanics%2Freplacor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmegamanics%2Freplacor/lists"}