{"id":35030602,"url":"https://github.com/nilp0inter/dehucli","last_synced_at":"2026-05-24T14:34:26.647Z","repository":{"id":279944645,"uuid":"940528345","full_name":"nilp0inter/dehucli","owner":"nilp0inter","description":"A DEHú (LEMA) client for the command line","archived":false,"fork":false,"pushed_at":"2025-09-23T09:08:09.000Z","size":45,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-27T21:41:44.855Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Clojure","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/nilp0inter.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":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-02-28T10:34:50.000Z","updated_at":"2025-02-28T14:58:42.000Z","dependencies_parsed_at":"2025-02-28T17:23:14.020Z","dependency_job_id":"b9323c1d-7d17-43b8-9e9c-7c0a44cfa0e2","html_url":"https://github.com/nilp0inter/dehucli","commit_stats":null,"previous_names":["nilp0inter/dehucli"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nilp0inter/dehucli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilp0inter%2Fdehucli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilp0inter%2Fdehucli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilp0inter%2Fdehucli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilp0inter%2Fdehucli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nilp0inter","download_url":"https://codeload.github.com/nilp0inter/dehucli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilp0inter%2Fdehucli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33438514,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-24T13:13:05.286Z","status":"ssl_error","status_checked_at":"2026-05-24T13:13:03.728Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2025-12-27T06:58:37.047Z","updated_at":"2026-05-24T14:34:26.642Z","avatar_url":"https://github.com/nilp0inter.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DEHú CLI\n\nA command line client for the Spanish DEHú service (LEMA). This client allows for interacting with the digital notifications and communications system of the Spanish administration.\n\n## Overview\n\nThe DEHú (Dirección Electrónica Habilitada única) is the Spanish administration's system for digital notifications. This CLI tool provides a way to:\n\n- List pending notifications\n- Access notification content\n- Download notification annexes\n- Get notification receipts\n- List and access already processed notifications\n\n## Requirements\n\n- Java 11 or higher\n- X.509 certificate for authentication (required by DEHú)\n\n## Installation\n\nThe project uses Clojure CLI tools and deps.edn for dependencies.\n\n```bash\n# Clone the repository\ngit clone https://github.com/nilp0inter/dehucli.git\ncd dehucli\n\n# Run directly with Clojure\nclj -M:run --help\n```\n\n## Usage\n\nBasic usage pattern:\n\n```bash\nclj -M:run [options] command [args]\n```\n\n### Options\n\n- `-u, --username NIF` - NIF (Spanish Tax ID) for authentication\n- `-c, --certificate PATH` - Path to X.509 certificate file\n- `-k, --key PATH` - Path to private key file\n- `-e, --environment ENV` - Environment: 'se' for testing, 'pro' for production (default: se)\n- `-h, --help` - Show help\n\n### Commands\n\n- `localiza` - List pending notifications\n- `peticion-acceso ID` - Access a notification content\n- `consulta-anexos ID REF` - Get an annex by reference\n- `consulta-acuse ID CSV` - Get receipt PDF\n- `localiza-realizadas` - List processed notifications\n- `consulta-realizadas ID` - Get processed notification content\n\n### Examples\n\n```bash\n# List pending notifications\nclj -M:run -u 12345678A -c mycert.pem -k mykey.pem localiza\n\n# Access a notification\nclj -M:run -u 12345678A -c mycert.pem -k mykey.pem peticion-acceso 1234567890abcdef\n\n# Get an annex document\nclj -M:run -u 12345678A -c mycert.pem -k mykey.pem consulta-anexos 1234567890abcdef YmFzZTY0cmVmZXJlbmNl\n\n# Get a receipt PDF\nclj -M:run -u 12345678A -c mycert.pem -k mykey.pem consulta-acuse 1234567890abcdef DEHU-1234567890abcdef\n```\n\n## Building an Executable JAR\n\nTo build a standalone JAR file:\n\n```bash\nclj -X:uberjar\n```\n\nThis will create a file called `dehucli.jar` that can be run with:\n\n```bash\njava -jar dehucli.jar [options] command [args]\n```\n\n## Development\n\nThis project uses devenv with Clojure enabled.\n\n### Running in Development Mode\n\n```bash\nclj -M:run [options] command [args]\n```\n\n### Project Structure\n\n- `src/dehucli/core.clj` - Main CLI entry point\n- `src/dehucli/api.clj` - DEHú API client\n- `src/dehucli/security.clj` - Certificate and security handling\n- `src/dehucli/PasswordCallback.clj` - WS-Security callback handler\n\n## License\n\nThis project is licensed under the terms of the LICENSE file included in the repository.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnilp0inter%2Fdehucli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnilp0inter%2Fdehucli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnilp0inter%2Fdehucli/lists"}