Skip to content

Add support for Collections API - #134

Merged
const-cloudinary merged 2 commits into
masterfrom
collections-api
Nov 5, 2026
Merged

const-cloudinary merged 2 commits into
masterfrom
collections-api

Conversation

@const-cloudinary

Copy link
Copy Markdown
Member

Adds the collections command to run Collections API methods from pycloudinary 1.47.0.

cld collections create_collection "Summer campaign" -o description "Campaign assets"
cld collections add_collection_assets <collection_id> '["<asset_id>"]'
cld collections create_collection_public_page <collection_id>

Brief Summary of Changes

  • requirements.txt: cloudinary>=1.47.0 (first version with cloudinary.collections).
  • cloudinary_cli/core/collections.py: new collections command, same shape as provisioning. Supports -o, -O, -ls, --save, and -d, which opens https://cloudinary.com/documentation/collections_api.
  • cloudinary_cli/utils/utils.py: hide base64url_decode (imported by cloudinary.collections) from -ls.
  • README.md, DOCKER.md: document the command.

What does this PR address?

  • GitHub issue (Add reference - #XX)
  • Refactoring
  • New feature
  • Bug fix
  • Adds more tests

Are tests included?

  • Yes
  • No

Reviewer, please note:

  • The method names come straight from the SDK, so listing is cld collections collections.
  • Works with an API key and secret, or with an OAuth login (cld login).

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I ran the full test suite before pushing the changes and all the tests pass.

Unit tests (excluding the test_modules integration tests) pass locally against pycloudinary 1.47.0. The integration tests were not run locally. All 13 Collections API methods were also run against live clouds, with an API key and with OAuth.

🤖 Generated with Claude Code

const-cloudinary and others added 2 commits November 5, 2026 15:00
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Add the `collections` command to run Collections API methods, e.g.
`cld collections create_collection "Summer campaign"`.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@const-cloudinary
const-cloudinary merged commit 399faea into master Nov 5, 2026
8 checks passed
@const-cloudinary
const-cloudinary deleted the collections-api branch November 5, 2026 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant