# Create a context pointing at your GraphQL endpoint
csdk context create production --endpoint https://api.example.com/graphql
# Set the active context
csdk context use production
# Authenticate
csdk auth set-token <your-token>| Command | Description |
|---|---|
context |
Manage API contexts (endpoints) |
auth |
Manage authentication tokens |
config |
Manage config key-value store (per-context) |
org-get-managers-record |
orgGetManagersRecord CRUD operations |
org-get-subordinates-record |
orgGetSubordinatesRecord CRUD operations |
app-permission |
appPermission CRUD operations |
org-permission |
orgPermission CRUD operations |
app-level-requirement |
appLevelRequirement CRUD operations |
org-member |
orgMember CRUD operations |
app-permission-default |
appPermissionDefault CRUD operations |
org-permission-default |
orgPermissionDefault CRUD operations |
app-admin-grant |
appAdminGrant CRUD operations |
app-owner-grant |
appOwnerGrant CRUD operations |
org-admin-grant |
orgAdminGrant CRUD operations |
org-owner-grant |
orgOwnerGrant CRUD operations |
app-limit-default |
appLimitDefault CRUD operations |
org-limit-default |
orgLimitDefault CRUD operations |
org-chart-edge-grant |
orgChartEdgeGrant CRUD operations |
membership-type |
membershipType CRUD operations |
app-limit |
appLimit CRUD operations |
app-achievement |
appAchievement CRUD operations |
app-step |
appStep CRUD operations |
claimed-invite |
claimedInvite CRUD operations |
app-grant |
appGrant CRUD operations |
app-membership-default |
appMembershipDefault CRUD operations |
org-limit |
orgLimit CRUD operations |
org-claimed-invite |
orgClaimedInvite CRUD operations |
org-grant |
orgGrant CRUD operations |
org-chart-edge |
orgChartEdge CRUD operations |
org-membership-default |
orgMembershipDefault CRUD operations |
app-membership |
appMembership CRUD operations |
org-membership |
orgMembership CRUD operations |
invite |
invite CRUD operations |
app-level |
appLevel CRUD operations |
org-invite |
orgInvite CRUD operations |
app-permissions-get-padded-mask |
appPermissionsGetPaddedMask |
org-permissions-get-padded-mask |
orgPermissionsGetPaddedMask |
org-is-manager-of |
orgIsManagerOf |
app-permissions-get-mask |
appPermissionsGetMask |
org-permissions-get-mask |
orgPermissionsGetMask |
steps-achieved |
stepsAchieved |
app-permissions-get-mask-by-names |
appPermissionsGetMaskByNames |
org-permissions-get-mask-by-names |
orgPermissionsGetMaskByNames |
app-permissions-get-by-mask |
Reads and enables pagination through a set of AppPermission. |
org-permissions-get-by-mask |
Reads and enables pagination through a set of OrgPermission. |
steps-required |
Reads and enables pagination through a set of AppLevelRequirement. |
submit-invite-code |
submitInviteCode |
submit-org-invite-code |
submitOrgInviteCode |
Manage named API contexts (kubectl-style).
| Subcommand | Description |
|---|---|
create <name> --endpoint <url> |
Create a new context |
list |
List all contexts |
use <name> |
Set the active context |
current |
Show current context |
delete <name> |
Delete a context |
Configuration is stored at ~/.csdk/config/.
Manage authentication tokens per context.
| Subcommand | Description |
|---|---|
set-token <token> |
Store bearer token for current context |
status |
Show auth status across all contexts |
logout |
Remove credentials for current context |
Manage per-context key-value configuration variables.
| Subcommand | Description |
|---|---|
get <key> |
Get a config value |
set <key> <value> |
Set a config value |
list |
List all config values |
delete <key> |
Delete a config value |
Variables are scoped to the active context and stored at ~/.csdk/config/.
CRUD operations for OrgGetManagersRecord records.
| Subcommand | Description |
|---|---|
list |
List all orgGetManagersRecord records |
get |
Get a orgGetManagersRecord by id |
create |
Create a new orgGetManagersRecord |
update |
Update an existing orgGetManagersRecord |
delete |
Delete a orgGetManagersRecord |
Fields:
| Field | Type |
|---|---|
userId |
UUID |
depth |
Int |
Required create fields: userId, depth
CRUD operations for OrgGetSubordinatesRecord records.
| Subcommand | Description |
|---|---|
list |
List all orgGetSubordinatesRecord records |
get |
Get a orgGetSubordinatesRecord by id |
create |
Create a new orgGetSubordinatesRecord |
update |
Update an existing orgGetSubordinatesRecord |
delete |
Delete a orgGetSubordinatesRecord |
Fields:
| Field | Type |
|---|---|
userId |
UUID |
depth |
Int |
Required create fields: userId, depth
CRUD operations for AppPermission records.
| Subcommand | Description |
|---|---|
list |
List all appPermission records |
get |
Get a appPermission by id |
create |
Create a new appPermission |
update |
Update an existing appPermission |
delete |
Delete a appPermission |
Fields:
| Field | Type |
|---|---|
id |
UUID |
name |
String |
bitnum |
Int |
bitstr |
BitString |
description |
String |
Optional create fields (backend defaults): name, bitnum, bitstr, description
CRUD operations for OrgPermission records.
| Subcommand | Description |
|---|---|
list |
List all orgPermission records |
get |
Get a orgPermission by id |
create |
Create a new orgPermission |
update |
Update an existing orgPermission |
delete |
Delete a orgPermission |
Fields:
| Field | Type |
|---|---|
id |
UUID |
name |
String |
bitnum |
Int |
bitstr |
BitString |
description |
String |
Optional create fields (backend defaults): name, bitnum, bitstr, description
CRUD operations for AppLevelRequirement records.
| Subcommand | Description |
|---|---|
list |
List all appLevelRequirement records |
get |
Get a appLevelRequirement by id |
create |
Create a new appLevelRequirement |
update |
Update an existing appLevelRequirement |
delete |
Delete a appLevelRequirement |
Fields:
| Field | Type |
|---|---|
id |
UUID |
name |
String |
level |
String |
description |
String |
requiredCount |
Int |
priority |
Int |
createdAt |
Datetime |
updatedAt |
Datetime |
Required create fields: name, level
Optional create fields (backend defaults): description, requiredCount, priority
CRUD operations for OrgMember records.
| Subcommand | Description |
|---|---|
list |
List all orgMember records |
get |
Get a orgMember by id |
create |
Create a new orgMember |
update |
Update an existing orgMember |
delete |
Delete a orgMember |
Fields:
| Field | Type |
|---|---|
id |
UUID |
isAdmin |
Boolean |
actorId |
UUID |
entityId |
UUID |
Required create fields: actorId, entityId
Optional create fields (backend defaults): isAdmin
CRUD operations for AppPermissionDefault records.
| Subcommand | Description |
|---|---|
list |
List all appPermissionDefault records |
get |
Get a appPermissionDefault by id |
create |
Create a new appPermissionDefault |
update |
Update an existing appPermissionDefault |
delete |
Delete a appPermissionDefault |
Fields:
| Field | Type |
|---|---|
id |
UUID |
permissions |
BitString |
Optional create fields (backend defaults): permissions
CRUD operations for OrgPermissionDefault records.
| Subcommand | Description |
|---|---|
list |
List all orgPermissionDefault records |
get |
Get a orgPermissionDefault by id |
create |
Create a new orgPermissionDefault |
update |
Update an existing orgPermissionDefault |
delete |
Delete a orgPermissionDefault |
Fields:
| Field | Type |
|---|---|
id |
UUID |
permissions |
BitString |
entityId |
UUID |
Required create fields: entityId
Optional create fields (backend defaults): permissions
CRUD operations for AppAdminGrant records.
| Subcommand | Description |
|---|---|
list |
List all appAdminGrant records |
get |
Get a appAdminGrant by id |
create |
Create a new appAdminGrant |
update |
Update an existing appAdminGrant |
delete |
Delete a appAdminGrant |
Fields:
| Field | Type |
|---|---|
id |
UUID |
isGrant |
Boolean |
actorId |
UUID |
grantorId |
UUID |
createdAt |
Datetime |
updatedAt |
Datetime |
Required create fields: actorId
Optional create fields (backend defaults): isGrant, grantorId
CRUD operations for AppOwnerGrant records.
| Subcommand | Description |
|---|---|
list |
List all appOwnerGrant records |
get |
Get a appOwnerGrant by id |
create |
Create a new appOwnerGrant |
update |
Update an existing appOwnerGrant |
delete |
Delete a appOwnerGrant |
Fields:
| Field | Type |
|---|---|
id |
UUID |
isGrant |
Boolean |
actorId |
UUID |
grantorId |
UUID |
createdAt |
Datetime |
updatedAt |
Datetime |
Required create fields: actorId
Optional create fields (backend defaults): isGrant, grantorId
CRUD operations for OrgAdminGrant records.
| Subcommand | Description |
|---|---|
list |
List all orgAdminGrant records |
get |
Get a orgAdminGrant by id |
create |
Create a new orgAdminGrant |
update |
Update an existing orgAdminGrant |
delete |
Delete a orgAdminGrant |
Fields:
| Field | Type |
|---|---|
id |
UUID |
isGrant |
Boolean |
actorId |
UUID |
entityId |
UUID |
grantorId |
UUID |
createdAt |
Datetime |
updatedAt |
Datetime |
Required create fields: actorId, entityId
Optional create fields (backend defaults): isGrant, grantorId
CRUD operations for OrgOwnerGrant records.
| Subcommand | Description |
|---|---|
list |
List all orgOwnerGrant records |
get |
Get a orgOwnerGrant by id |
create |
Create a new orgOwnerGrant |
update |
Update an existing orgOwnerGrant |
delete |
Delete a orgOwnerGrant |
Fields:
| Field | Type |
|---|---|
id |
UUID |
isGrant |
Boolean |
actorId |
UUID |
entityId |
UUID |
grantorId |
UUID |
createdAt |
Datetime |
updatedAt |
Datetime |
Required create fields: actorId, entityId
Optional create fields (backend defaults): isGrant, grantorId
CRUD operations for AppLimitDefault records.
| Subcommand | Description |
|---|---|
list |
List all appLimitDefault records |
get |
Get a appLimitDefault by id |
create |
Create a new appLimitDefault |
update |
Update an existing appLimitDefault |
delete |
Delete a appLimitDefault |
Fields:
| Field | Type |
|---|---|
id |
UUID |
name |
String |
max |
Int |
Required create fields: name
Optional create fields (backend defaults): max
CRUD operations for OrgLimitDefault records.
| Subcommand | Description |
|---|---|
list |
List all orgLimitDefault records |
get |
Get a orgLimitDefault by id |
create |
Create a new orgLimitDefault |
update |
Update an existing orgLimitDefault |
delete |
Delete a orgLimitDefault |
Fields:
| Field | Type |
|---|---|
id |
UUID |
name |
String |
max |
Int |
Required create fields: name
Optional create fields (backend defaults): max
CRUD operations for OrgChartEdgeGrant records.
| Subcommand | Description |
|---|---|
list |
List all orgChartEdgeGrant records |
get |
Get a orgChartEdgeGrant by id |
create |
Create a new orgChartEdgeGrant |
update |
Update an existing orgChartEdgeGrant |
delete |
Delete a orgChartEdgeGrant |
Fields:
| Field | Type |
|---|---|
id |
UUID |
entityId |
UUID |
childId |
UUID |
parentId |
UUID |
grantorId |
UUID |
isGrant |
Boolean |
positionTitle |
String |
positionLevel |
Int |
createdAt |
Datetime |
Required create fields: entityId, childId
Optional create fields (backend defaults): parentId, grantorId, isGrant, positionTitle, positionLevel
CRUD operations for MembershipType records.
| Subcommand | Description |
|---|---|
list |
List all membershipType records |
get |
Get a membershipType by id |
create |
Create a new membershipType |
update |
Update an existing membershipType |
delete |
Delete a membershipType |
Fields:
| Field | Type |
|---|---|
id |
Int |
name |
String |
description |
String |
prefix |
String |
Required create fields: name, description, prefix
CRUD operations for AppLimit records.
| Subcommand | Description |
|---|---|
list |
List all appLimit records |
get |
Get a appLimit by id |
create |
Create a new appLimit |
update |
Update an existing appLimit |
delete |
Delete a appLimit |
Fields:
| Field | Type |
|---|---|
id |
UUID |
name |
String |
actorId |
UUID |
num |
Int |
max |
Int |
Required create fields: actorId
Optional create fields (backend defaults): name, num, max
CRUD operations for AppAchievement records.
| Subcommand | Description |
|---|---|
list |
List all appAchievement records |
get |
Get a appAchievement by id |
create |
Create a new appAchievement |
update |
Update an existing appAchievement |
delete |
Delete a appAchievement |
Fields:
| Field | Type |
|---|---|
id |
UUID |
actorId |
UUID |
name |
String |
count |
Int |
createdAt |
Datetime |
updatedAt |
Datetime |
Required create fields: name
Optional create fields (backend defaults): actorId, count
CRUD operations for AppStep records.
| Subcommand | Description |
|---|---|
list |
List all appStep records |
get |
Get a appStep by id |
create |
Create a new appStep |
update |
Update an existing appStep |
delete |
Delete a appStep |
Fields:
| Field | Type |
|---|---|
id |
UUID |
actorId |
UUID |
name |
String |
count |
Int |
createdAt |
Datetime |
updatedAt |
Datetime |
Required create fields: name
Optional create fields (backend defaults): actorId, count
CRUD operations for ClaimedInvite records.
| Subcommand | Description |
|---|---|
list |
List all claimedInvite records |
get |
Get a claimedInvite by id |
create |
Create a new claimedInvite |
update |
Update an existing claimedInvite |
delete |
Delete a claimedInvite |
Fields:
| Field | Type |
|---|---|
id |
UUID |
data |
JSON |
senderId |
UUID |
receiverId |
UUID |
createdAt |
Datetime |
updatedAt |
Datetime |
Optional create fields (backend defaults): data, senderId, receiverId
CRUD operations for AppGrant records.
| Subcommand | Description |
|---|---|
list |
List all appGrant records |
get |
Get a appGrant by id |
create |
Create a new appGrant |
update |
Update an existing appGrant |
delete |
Delete a appGrant |
Fields:
| Field | Type |
|---|---|
id |
UUID |
permissions |
BitString |
isGrant |
Boolean |
actorId |
UUID |
grantorId |
UUID |
createdAt |
Datetime |
updatedAt |
Datetime |
Required create fields: actorId
Optional create fields (backend defaults): permissions, isGrant, grantorId
CRUD operations for AppMembershipDefault records.
| Subcommand | Description |
|---|---|
list |
List all appMembershipDefault records |
get |
Get a appMembershipDefault by id |
create |
Create a new appMembershipDefault |
update |
Update an existing appMembershipDefault |
delete |
Delete a appMembershipDefault |
Fields:
| Field | Type |
|---|---|
id |
UUID |
createdAt |
Datetime |
updatedAt |
Datetime |
createdBy |
UUID |
updatedBy |
UUID |
isApproved |
Boolean |
isVerified |
Boolean |
Optional create fields (backend defaults): createdBy, updatedBy, isApproved, isVerified
CRUD operations for OrgLimit records.
| Subcommand | Description |
|---|---|
list |
List all orgLimit records |
get |
Get a orgLimit by id |
create |
Create a new orgLimit |
update |
Update an existing orgLimit |
delete |
Delete a orgLimit |
Fields:
| Field | Type |
|---|---|
id |
UUID |
name |
String |
actorId |
UUID |
num |
Int |
max |
Int |
entityId |
UUID |
Required create fields: actorId, entityId
Optional create fields (backend defaults): name, num, max
CRUD operations for OrgClaimedInvite records.
| Subcommand | Description |
|---|---|
list |
List all orgClaimedInvite records |
get |
Get a orgClaimedInvite by id |
create |
Create a new orgClaimedInvite |
update |
Update an existing orgClaimedInvite |
delete |
Delete a orgClaimedInvite |
Fields:
| Field | Type |
|---|---|
id |
UUID |
data |
JSON |
senderId |
UUID |
receiverId |
UUID |
createdAt |
Datetime |
updatedAt |
Datetime |
entityId |
UUID |
Required create fields: entityId
Optional create fields (backend defaults): data, senderId, receiverId
CRUD operations for OrgGrant records.
| Subcommand | Description |
|---|---|
list |
List all orgGrant records |
get |
Get a orgGrant by id |
create |
Create a new orgGrant |
update |
Update an existing orgGrant |
delete |
Delete a orgGrant |
Fields:
| Field | Type |
|---|---|
id |
UUID |
permissions |
BitString |
isGrant |
Boolean |
actorId |
UUID |
entityId |
UUID |
grantorId |
UUID |
createdAt |
Datetime |
updatedAt |
Datetime |
Required create fields: actorId, entityId
Optional create fields (backend defaults): permissions, isGrant, grantorId
CRUD operations for OrgChartEdge records.
| Subcommand | Description |
|---|---|
list |
List all orgChartEdge records |
get |
Get a orgChartEdge by id |
create |
Create a new orgChartEdge |
update |
Update an existing orgChartEdge |
delete |
Delete a orgChartEdge |
Fields:
| Field | Type |
|---|---|
id |
UUID |
createdAt |
Datetime |
updatedAt |
Datetime |
entityId |
UUID |
childId |
UUID |
parentId |
UUID |
positionTitle |
String |
positionLevel |
Int |
Required create fields: entityId, childId
Optional create fields (backend defaults): parentId, positionTitle, positionLevel
CRUD operations for OrgMembershipDefault records.
| Subcommand | Description |
|---|---|
list |
List all orgMembershipDefault records |
get |
Get a orgMembershipDefault by id |
create |
Create a new orgMembershipDefault |
update |
Update an existing orgMembershipDefault |
delete |
Delete a orgMembershipDefault |
Fields:
| Field | Type |
|---|---|
id |
UUID |
createdAt |
Datetime |
updatedAt |
Datetime |
createdBy |
UUID |
updatedBy |
UUID |
isApproved |
Boolean |
entityId |
UUID |
deleteMemberCascadeGroups |
Boolean |
createGroupsCascadeMembers |
Boolean |
Required create fields: entityId
Optional create fields (backend defaults): createdBy, updatedBy, isApproved, deleteMemberCascadeGroups, createGroupsCascadeMembers
CRUD operations for AppMembership records.
| Subcommand | Description |
|---|---|
list |
List all appMembership records |
get |
Get a appMembership by id |
create |
Create a new appMembership |
update |
Update an existing appMembership |
delete |
Delete a appMembership |
Fields:
| Field | Type |
|---|---|
id |
UUID |
createdAt |
Datetime |
updatedAt |
Datetime |
createdBy |
UUID |
updatedBy |
UUID |
isApproved |
Boolean |
isBanned |
Boolean |
isDisabled |
Boolean |
isVerified |
Boolean |
isActive |
Boolean |
isOwner |
Boolean |
isAdmin |
Boolean |
permissions |
BitString |
granted |
BitString |
actorId |
UUID |
profileId |
UUID |
Required create fields: actorId
Optional create fields (backend defaults): createdBy, updatedBy, isApproved, isBanned, isDisabled, isVerified, isActive, isOwner, isAdmin, permissions, granted, profileId
CRUD operations for OrgMembership records.
| Subcommand | Description |
|---|---|
list |
List all orgMembership records |
get |
Get a orgMembership by id |
create |
Create a new orgMembership |
update |
Update an existing orgMembership |
delete |
Delete a orgMembership |
Fields:
| Field | Type |
|---|---|
id |
UUID |
createdAt |
Datetime |
updatedAt |
Datetime |
createdBy |
UUID |
updatedBy |
UUID |
isApproved |
Boolean |
isBanned |
Boolean |
isDisabled |
Boolean |
isActive |
Boolean |
isOwner |
Boolean |
isAdmin |
Boolean |
permissions |
BitString |
granted |
BitString |
actorId |
UUID |
entityId |
UUID |
profileId |
UUID |
Required create fields: actorId, entityId
Optional create fields (backend defaults): createdBy, updatedBy, isApproved, isBanned, isDisabled, isActive, isOwner, isAdmin, permissions, granted, profileId
CRUD operations for Invite records.
| Subcommand | Description |
|---|---|
list |
List all invite records |
get |
Get a invite by id |
create |
Create a new invite |
update |
Update an existing invite |
delete |
Delete a invite |
Fields:
| Field | Type |
|---|---|
id |
UUID |
email |
|
senderId |
UUID |
inviteToken |
String |
inviteValid |
Boolean |
inviteLimit |
Int |
inviteCount |
Int |
multiple |
Boolean |
data |
JSON |
expiresAt |
Datetime |
createdAt |
Datetime |
updatedAt |
Datetime |
Optional create fields (backend defaults): email, senderId, inviteToken, inviteValid, inviteLimit, inviteCount, multiple, data, expiresAt
CRUD operations for AppLevel records.
| Subcommand | Description |
|---|---|
list |
List all appLevel records |
get |
Get a appLevel by id |
create |
Create a new appLevel |
update |
Update an existing appLevel |
delete |
Delete a appLevel |
Fields:
| Field | Type |
|---|---|
id |
UUID |
name |
String |
description |
String |
image |
Image |
ownerId |
UUID |
createdAt |
Datetime |
updatedAt |
Datetime |
Required create fields: name
Optional create fields (backend defaults): description, image, ownerId
CRUD operations for OrgInvite records.
| Subcommand | Description |
|---|---|
list |
List all orgInvite records |
get |
Get a orgInvite by id |
create |
Create a new orgInvite |
update |
Update an existing orgInvite |
delete |
Delete a orgInvite |
Fields:
| Field | Type |
|---|---|
id |
UUID |
email |
|
senderId |
UUID |
receiverId |
UUID |
inviteToken |
String |
inviteValid |
Boolean |
inviteLimit |
Int |
inviteCount |
Int |
multiple |
Boolean |
data |
JSON |
expiresAt |
Datetime |
createdAt |
Datetime |
updatedAt |
Datetime |
entityId |
UUID |
Required create fields: entityId
Optional create fields (backend defaults): email, senderId, receiverId, inviteToken, inviteValid, inviteLimit, inviteCount, multiple, data, expiresAt
appPermissionsGetPaddedMask
-
Type: query
-
Arguments:
Argument Type --maskBitString
orgPermissionsGetPaddedMask
-
Type: query
-
Arguments:
Argument Type --maskBitString
orgIsManagerOf
-
Type: query
-
Arguments:
Argument Type --pEntityIdUUID --pManagerIdUUID --pUserIdUUID --pMaxDepthInt
appPermissionsGetMask
-
Type: query
-
Arguments:
Argument Type --idsUUID
orgPermissionsGetMask
-
Type: query
-
Arguments:
Argument Type --idsUUID
stepsAchieved
-
Type: query
-
Arguments:
Argument Type --vlevelString --vroleIdUUID
appPermissionsGetMaskByNames
-
Type: query
-
Arguments:
Argument Type --namesString
orgPermissionsGetMaskByNames
-
Type: query
-
Arguments:
Argument Type --namesString
Reads and enables pagination through a set of AppPermission.
-
Type: query
-
Arguments:
Argument Type --maskBitString --firstInt --offsetInt --afterCursor
Reads and enables pagination through a set of OrgPermission.
-
Type: query
-
Arguments:
Argument Type --maskBitString --firstInt --offsetInt --afterCursor
Reads and enables pagination through a set of AppLevelRequirement.
-
Type: query
-
Arguments:
Argument Type --vlevelString --vroleIdUUID --firstInt --offsetInt --afterCursor
submitInviteCode
-
Type: mutation
-
Arguments:
Argument Type --input.clientMutationIdString --input.tokenString
submitOrgInviteCode
-
Type: mutation
-
Arguments:
Argument Type --input.clientMutationIdString --input.tokenString
All commands output JSON to stdout. Pipe to jq for formatting:
csdk car list | jq '.[]'
csdk car get --id <uuid> | jq '.'Use --no-tty to skip all interactive prompts (useful for scripts and CI):
csdk --no-tty car create --name "Sedan" --year 2024Built by the Constructive team.
AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED "AS IS", AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND.
No developer or entity involved in creating this software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the code, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value.