CLI Reference
Organization Commands
CLI commands for managing organizations
Organization Commands
The organization command group manages organizations. Organizations are the top-level grouping of users in NextPay.
organization list
List all organizations you belong to.
nextpay --env dev organization listorganization get
Get details of a specific organization.
# Get a specific organization
nextpay --env dev organization get org_abc123
# Get the current active organization (no ID needed)
nextpay --env dev organization get| Argument | Required | Description |
|---|---|---|
id | No | Organization ID. Defaults to the current active organization. |
organization use
Set the default organization for subsequent commands, so you do not need to pass --org every time.
nextpay --env dev organization use org_abc123| Argument | Required | Description |
|---|---|---|
id | Yes | Organization ID to set as default. |
organization settings get
Get the current organization settings.
nextpay --env dev organization settings getorganization settings update
Update organization settings such as the display name or URL slug.
nextpay --env dev organization settings update --name "New Company Name"
nextpay --env dev organization settings update --slug "new-slug"
nextpay --env dev organization settings update --name "New Name" --slug "new-slug"| Flag | Required | Description |
|---|---|---|
--name | No | New organization display name. |
--slug | No | New organization URL slug. |
At least one of --name or --slug must be provided.