{"id":41464131,"url":"https://github.com/coinbase-samples/prime-cli","last_synced_at":"2026-01-23T16:18:27.902Z","repository":{"id":212188416,"uuid":"726201532","full_name":"coinbase-samples/prime-cli","owner":"coinbase-samples","description":"Command Line Interface (CLI) developed using the Prime SDK to facilitate comprehensive testing of all REST API endpoints","archived":false,"fork":false,"pushed_at":"2025-09-18T13:12:30.000Z","size":78,"stargazers_count":17,"open_issues_count":2,"forks_count":4,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-09-18T15:48:18.244Z","etag":null,"topics":["cli","coinbase","prime"],"latest_commit_sha":null,"homepage":"https://www.coinbase.com/prime","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/coinbase-samples.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","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":"2023-12-01T18:52:10.000Z","updated_at":"2025-09-18T13:11:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"5e3b956a-a4ca-4e14-98bf-2830c028711e","html_url":"https://github.com/coinbase-samples/prime-cli","commit_stats":null,"previous_names":["coinbase-samples/prime-cli"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/coinbase-samples/prime-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coinbase-samples%2Fprime-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coinbase-samples%2Fprime-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coinbase-samples%2Fprime-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coinbase-samples%2Fprime-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coinbase-samples","download_url":"https://codeload.github.com/coinbase-samples/prime-cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coinbase-samples%2Fprime-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28695529,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T15:57:05.722Z","status":"ssl_error","status_checked_at":"2026-01-23T15:56:27.656Z","response_time":59,"last_error":"SSL_read: 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":["cli","coinbase","prime"],"created_at":"2026-01-23T16:18:27.110Z","updated_at":"2026-01-23T16:18:27.887Z","avatar_url":"https://github.com/coinbase-samples.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Prime CLI\n\n## Overview\n\nThe Coinbase Prime command-line interface (CLI) to simplify programmatic interaction with [Coinbase Prime's](https://prime.coinbase.com/) [REST APIs](https://docs.cloud.coinbase.com/prime/reference).\n\n## License\n\nThe Prime CLI is free and open source and released under the [Apache License, Version 2.0](LICENSE.txt).\n\nThe application and code are only available for demonstration purposes.\n\n## Installation\n\nInstall the Prime CLI binary on your computer.\n\n### MacOS\n\nEnsure that you have [Homebrew](https://brew.sh/) installed.\n\nInstall the Coinbase Samples Homebrew tap:\n\n```\nbrew tap coinbase-samples/homebrew-tap\n```\n\nNext, install the Prime CLI Homebrew formula:\n\n```\nbrew install prime-cli\n```\n\n### Other Platforms\n\nTo install the Prime CLI on other platforms, clone this repository, build, and then add the binary to the [path](https://en.wikipedia.org/wiki/PATH_(variable)).\n\n```\ngit clone git@github.com:coinbase-samples/prime-cli.git\ncd prime-cli\ngo build -o primectl\n```\n\n## Configuration\n\nOnce you have the CLI installed, configure your environment.\n\nSet an environment variable in your shell called `PRIME_CREDENTIALS` with your API and portfolio information.\n\nCoinbase Prime API credentials can be created in the Prime web console under Settings -\u003e APIs. Entity ID can be retrieved by calling [Get Portfolio](https://docs.cloud.coinbase.com/prime/reference/primerestapi_getportfolio). If you are not configured yet to call this endpoint, you may proceed without including the `entityId` key and value for the time being, but certain endpoints such as List Invoices and List Assets require it.\n\n`PRIME_CREDENTIALS` should match the following format:\n```\nexport PRIME_CREDENTIALS='{\n\"accessKey\":\"ACCESSKEY_HERE\",\n\"passphrase\":\"PASSPHRASE_HERE\",\n\"signingKey\":\"SIGNINGKEY_HERE\",\n\"portfolioId\":\"PORTFOLIOID_HERE\",\n\"svcAccountId\":\"SVCACCOUNTID_HERE\",\n\"entityId\":\"ENTITYID_HERE\"\n}'\n```\n\nYou may also pass an environment variable called `primeCliTimeout` which will override the default request timeout of 7 seconds. This value should be an integer in seconds.\n\n## Usage\n\nBuild the application binary and specify an output name, e.g. `primectl`:\n\n```\ngo build -o primectl\n```\n\nTo ensure your project's dependencies are up-to-date, run:\n```\ngo mod tidy\n```\n\nTo verify that your application is installed correctly and accessible from any location, run the following command. It will include all available requests:\n\n```\n./primectl\n```\n\nFinally, to run commands for each endpoint, use the following format to test each endpoint. Please note that many endpoints require flags, which are detailed with the `--help` flag.\n\n```\n./primectl portfolios list\n```\n\n```\n./primectl orders create --help\n```\n\n```\n./primectl orders create-preview -b 0.001 -i ETH-USD -s BUY -t MARKET\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoinbase-samples%2Fprime-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoinbase-samples%2Fprime-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoinbase-samples%2Fprime-cli/lists"}