Skip to content

docs: add sub-organization authentication support to CLI and Go SDK#5326

Merged
akhilmhdh merged 2 commits intomainfrom
doc/cli-sub-org
Jan 30, 2026
Merged

docs: add sub-organization authentication support to CLI and Go SDK#5326
akhilmhdh merged 2 commits intomainfrom
doc/cli-sub-org

Conversation

@akhilmhdh
Copy link
Member

@akhilmhdh akhilmhdh commented Jan 30, 2026

Context

This PR is documentation update over the suborganization methods and flags added in golang sdk and cli.

Screenshots

Steps to verify the change


Type

  • Fix
  • Feature
  • Improvement
  • Breaking
  • Docs
  • Chore

Checklist

  • Title follows the conventional commit format: type(scope): short description (scope is optional, e.g. fix: prevent crash on sync or fix(api): handle null response).
  • Tested locally
  • Updated docs (if needed)
  • Read the contributing guide

@greptile-apps
Copy link
Contributor

greptile-apps bot commented Jan 30, 2026

Greptile Overview

Greptile Summary

This PR adds documentation for sub-organization authentication support across CLI and Go SDK. The changes introduce the --organization-slug flag for CLI login and the WithOrganizationSlug() method for the Go SDK, enabling authentication against sub-organizations.

  • Added clear documentation for --organization-slug flag in CLI with usage example
  • Added "Organization Authentication" section to Go SDK with code example
  • Minor formatting improvements throughout both files (indentation, line wrapping, whitespace)
  • Both documentation additions correctly note that authentication defaults to the organization where the machine identity was created if no slug is provided

The documentation is clear, accurate, and follows existing patterns in both files.

Confidence Score: 5/5

  • This PR is safe to merge with no risk - documentation-only changes
  • All changes are documentation-only, adding new feature documentation for sub-organization authentication. No code changes, no security implications, and formatting improvements enhance readability
  • No files require special attention

Important Files Changed

Filename Overview
docs/cli/commands/login.mdx Added --organization-slug flag documentation for sub-organization authentication with clear usage examples and notes
docs/sdks/languages/go.mdx Added Organization Authentication section documenting WithOrganizationSlug method with code example and formatting improvements

@maidul98
Copy link
Collaborator

maidul98 commented Jan 30, 2026

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@akhilmhdh akhilmhdh requested a review from varonix0 January 30, 2026 18:50
@akhilmhdh akhilmhdh merged commit 2cfeab4 into main Jan 30, 2026
7 checks passed
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.

3 participants