Skip to content

Organization management

View as Markdown

This page documents the following commands. Global flags that apply to every command are listed under daytona.

CommandDescription
daytona auditOrganization audit logs
daytona billingOrganization billing: usage, invoices, plans, and payment settings
daytona inviteOrganization invitations: create, list, revoke, show, accept, decline
daytona keyProject API keys: mint, list, revoke
daytona memberOrganization members: list, change roles, remove
daytona orgOrganizations: list, select, create, rename, delete, leave, limits
daytona org-keyOrganization API keys: mint, list, revoke
daytona projectProjects in the selected organization: list, select, create, rename, delete, budget
daytona registryProject registries: set, list, get, delete
daytona roleInspect the organization role catalog
daytona secretProject secrets: set, list, get, delete
daytona service-accountService accounts: create, list, get, update, delete

Organization audit logs

Commands

CommandDescription
daytona audit listList audit log entries

List audit log entries

Terminal window
daytona audit list [flags]

Flags

LongShortTypeDefaultDescription
--actionstringfilter by action
--action-not-instringexclude comma-separated actions (not_in)
--actorstringfilter by actor user id or key id
--allboolfollow every page until exhausted
--cursorstringopaque continuation token
--end-atstringexclusive RFC3339 end of the time range
--limitint100max rows to return
--start-atstringinclusive RFC3339 start of the time range
--statusintfilter by HTTP status
--target-idstringfilter by target id
--target-typestringfilter by target type

Organization billing: usage, invoices, plans, and payment settings

Commands

CommandDescription
daytona billing automatic-top-upManage automatic top-up
daytona billing balance-notificationManage low-balance notifications
daytona billing balancesList billing balances
daytona billing chargesList billing charges
daytona billing contactBilling contact subcommands
daytona billing couponCoupon subcommands
daytona billing invoiceInvoice subcommands
daytona billing invoicesList billing invoices
daytona billing payment-method-sessionCreate a payment-method setup session
daytona billing payment-methodsList payment methods
daytona billing planBilling plan subcommands
daytona billing portal-sessionCreate a billing portal session
daytona billing profileRead billing profile
daytona billing top-upCreate a manual top-up session
daytona billing usageRead current priced usage
daytona billing usage-periodsList priced usage periods
daytona billing walletRead billing wallet

Manage automatic top-up

Commands

CommandDescription
daytona billing automatic-top-up deleteDelete automatic top-up
daytona billing automatic-top-up getRead billing get
daytona billing automatic-top-up setSet automatic top-up

Delete automatic top-up

Requires write:billing.

Terminal window
daytona billing automatic-top-up delete

Read billing get

Requires read:billing.

Terminal window
daytona billing automatic-top-up get

Set automatic top-up

Set automatic top-up using integer-cent thresholds. Requires write:billing.

Terminal window
daytona billing automatic-top-up set [flags]

Flags

LongShortTypeDefaultDescription
--target-centsintbalance in cents targeted by a top-up
--threshold-centsintbalance in cents that triggers a top-up

Manage low-balance notifications

Commands

CommandDescription
daytona billing balance-notification deleteDelete the low-balance notification
daytona billing balance-notification getRead billing get
daytona billing balance-notification setSet the low-balance notification

daytona billing balance-notification delete

Section titled “daytona billing balance-notification delete”

Delete the low-balance notification

Requires write:billing.

Terminal window
daytona billing balance-notification delete

Read billing get

Requires read:billing.

Terminal window
daytona billing balance-notification get

Set the low-balance notification

Set the low-balance notification using an integer-cent threshold. Requires write:billing.

Terminal window
daytona billing balance-notification set [flags]

Flags

LongShortTypeDefaultDescription
--threshold-centsintnotification threshold in integer cents

List billing balances

List itemized billing balances. Requires read:billing.

Terminal window
daytona billing balances [flags]

Flags

LongShortTypeDefaultDescription
--allboolfollow every page until exhausted
--cursorstringopaque continuation token
--limitint25max rows to return

List billing charges

List charge history. Requires read:billing.

Terminal window
daytona billing charges [flags]

Flags

LongShortTypeDefaultDescription
--allboolfollow every page until exhausted
--cursorstringopaque continuation token
--limitint25max rows to return

Billing contact subcommands

Commands

CommandDescription
daytona billing contact getRead billing get
daytona billing contact setSet or clear the billing contact

Read billing get

Requires read:billing.

Terminal window
daytona billing contact get

Set or clear the billing contact

Set or clear the billing contact email. Requires write:billing.

Terminal window
daytona billing contact set [flags]

Flags

LongShortTypeDefaultDescription
--clearboolrestore the default billing contact
--emailstringbilling contact email

Coupon subcommands

Commands

CommandDescription
daytona billing coupon redeemRedeem a billing coupon

Redeem a billing coupon

Requires write:billing.

Terminal window
daytona billing coupon redeem <code>

Invoice subcommands

Commands

CommandDescription
daytona billing invoice payment-sessionCreate a payment session for one invoice
daytona billing invoice pdfDownload one invoice PDF

Create a payment session for one invoice

Create a hosted payment session for one invoice. Requires write:billing.

Terminal window
daytona billing invoice payment-session <id>

Download one invoice PDF

Requires read:billing.

Terminal window
daytona billing invoice pdf <id> [flags]

Flags

LongShortTypeDefaultDescription
--outstringwrite the PDF to a file instead of stdout

List billing invoices

List invoice history. Requires read:billing.

Terminal window
daytona billing invoices [flags]

Flags

LongShortTypeDefaultDescription
--allboolfollow every page until exhausted
--cursorstringopaque continuation token
--limitint25max rows to return
--unpaidboolreturn only unpaid invoices

Create a payment-method setup session

Requires write:billing.

Terminal window
daytona billing payment-method-session [flags]

Flags

LongShortTypeDefaultDescription
--openboolopen the minted URL in your browser

List payment methods

List saved payment methods. Requires read:billing.

Terminal window
daytona billing payment-methods [flags]

Flags

LongShortTypeDefaultDescription
--allboolfollow every page until exhausted
--cursorstringopaque continuation token
--limitint20max rows to return

Billing plan subcommands

Commands

CommandDescription
daytona billing plan getRead billing get
daytona billing plan listRead billing list
daytona billing plan setSet the billing plan

Read billing get

Requires read:billing.

Terminal window
daytona billing plan get

Read billing list

Requires read:billing.

Terminal window
daytona billing plan list

Set the billing plan

Set the organization’s billing plan. Requires write:billing.

Terminal window
daytona billing plan set <starter|team|enterprise>

Create a billing portal session

Requires write:billing.

Terminal window
daytona billing portal-session [flags]

Flags

LongShortTypeDefaultDescription
--openboolopen the minted URL in your browser

Read billing profile

Requires read:billing.

Terminal window
daytona billing profile

Create a manual top-up session

Create a manual top-up checkout session. Amounts are integer cents. Requires write:billing.

Terminal window
daytona billing top-up [amount-cents] [flags]

Flags

LongShortTypeDefaultDescription
--amount-centsinttop-up amount in integer cents

Read current priced usage

Read the open billing usage period. Requires read:billing.

Terminal window
daytona billing usage

List priced usage periods

List current and past priced usage periods. Requires read:billing.

Terminal window
daytona billing usage-periods [flags]

Flags

LongShortTypeDefaultDescription
--allboolfollow every page until exhausted
--cursorstringopaque continuation token
--limitint12max rows to return

Read billing wallet

Requires read:billing.

Terminal window
daytona billing wallet

Organization invitations: create, list, revoke, show, accept, decline

Terminal window
daytona invite

Commands

CommandDescription
daytona invite acceptAccept an invitation by its token or invitation link
daytona invite createInvite someone to the selected organization
daytona invite declineDecline an invitation by its token or invitation link
daytona invite listList invitations for the selected organization
daytona invite revokeRevoke one pending or declined invitation
daytona invite showShow the invitation behind a token or invitation link

Accept an invitation by its token or invitation link

Terminal window
daytona invite accept <token|link>

Invite someone to the selected organization

Invite someone to the selected organization by email. The invitee receives a link to accept the invitation; when the deployment sends no email, the link is printed instead.

Terminal window
daytona invite create <email> [flags]

Flags

LongShortTypeDefaultDescription
--rolestringcomma-separated role slugs

Decline an invitation by its token or invitation link

Terminal window
daytona invite decline <token|link>

List invitations for the selected organization

Terminal window
daytona invite list

Revoke one pending or declined invitation

Terminal window
daytona invite revoke <id>

Show the invitation behind a token or invitation link

Show who invited you to which organization, with which roles, and until when — before accepting or declining. Takes the dtni_ token or the full link from the invitation email.

Terminal window
daytona invite show <token|link>

Project API keys: mint, list, revoke

Commands

CommandDescription
daytona key listList project API keys
daytona key mintMint a project API key
daytona key revokeRevoke a project API key

List project API keys

Terminal window
daytona key list

Mint a project API key

Terminal window
daytona key mint [flags]

Flags

LongShortTypeDefaultDescription
--expiresstringexpiry as a duration or RFC3339 timestamp
--namestringkey name
--permissionstringcomma-separated project permissions
--service-accountstringservice account id or name to mint this key for

Revoke a project API key

Terminal window
daytona key revoke <id>

Organization members: list, change roles, remove

Commands

CommandDescription
daytona member listList members of the selected organization
daytona member removeRemove a member from the selected organization
daytona member updateReplace a member’s roles

List members of the selected organization

Terminal window
daytona member list

Examples

Terminal window
daytona member list
daytona member list --org org-123

Remove a member from the selected organization

Terminal window
daytona member remove <user> [flags]

Examples

Terminal window
daytona member remove user-123 --yes
daytona member remove user@example.com --preview

Flags

LongShortTypeDefaultDescription
--previewboolshow revoked API-key and preview-grant counts without removing the member

Replace a member’s roles

Terminal window
daytona member update <user> [flags]

Examples

Terminal window
daytona member update user-123 --role admin
daytona member update user@example.com --role developer,auditor --dry-run

Flags

LongShortTypeDefaultDescription
--dry-runboolpreview the revocation count without committing the role change
--rolestringcomma-separated role slugs

Organizations: list, select, create, rename, delete, leave, limits

Commands

CommandDescription
daytona org createCreate an organization
daytona org deleteDelete an organization (personal orgs cannot be deleted)
daytona org getShow one organization (default: the selected one)
daytona org leaveLeave an organization (revokes the API keys you minted in it)
daytona org limitsShow the organization’s sandbox limits and current usage (default: the selected one)
daytona org listList the organizations you belong to
daytona org updateRename an organization
daytona org useSelect the organization for following commands

Create an organization

Terminal window
daytona org create <name>

Delete an organization (personal orgs cannot be deleted)

Terminal window
daytona org delete <id|name>

Show one organization (default: the selected one)

Terminal window
daytona org get [id|name]

Leave an organization (revokes the API keys you minted in it)

The CLI also forgets cached project keys and platform tokens for that organization. If it cannot list the org’s projects during cleanup, it forgets the remembered project for that org and warns that other cached credentials may remain; run daytona logout to clear them all.

Terminal window
daytona org leave [id|name]

Show the organization’s sandbox limits and current usage (default: the selected one)

Show the effective sandbox limits of an organization — each with its source (assigned on the organization, the platform default, or unlimited) — and the current usage they are checked against. A sandbox create, start, resume, fork or image build refused by one of them exits 6 with “LIMIT_EXCEEDED” naming the limit, the current count and the maximum. Requires read:organization.

Terminal window
daytona org limits [id|name]

List the organizations you belong to

Terminal window
daytona org list

Rename an organization

Terminal window
daytona org update <id|name> --name <new> [flags]

Flags

LongShortTypeDefaultDescription
--namestringnew name

Select the organization for following commands

Selects an organization and restores the project you last used in it (or its default project). Accepts an id or an unambiguous name; with no argument shows a picker at a terminal.

Terminal window
daytona org use [id|name]

Organization API keys: mint, list, revoke

Commands

CommandDescription
daytona org-key listList organization API keys
daytona org-key mintMint an organization API key
daytona org-key revokeRevoke an organization API key

List organization API keys

Terminal window
daytona org-key list

Mint an organization API key

Terminal window
daytona org-key mint [flags]

Flags

LongShortTypeDefaultDescription
--expiresstringexpiry as a duration or RFC3339 timestamp
--namestringkey name
--permissionstringcomma-separated organization permissions

Revoke an organization API key

Terminal window
daytona org-key revoke <id>

Projects in the selected organization: list, select, create, rename, delete, budget

Commands

CommandDescription
daytona project budgetA project’s monthly spend budget: get, set, remove
daytona project createCreate a project in the selected organization
daytona project deleteDelete a project (refused while it still holds resources)
daytona project getShow one project (default: the selected one)
daytona project listList the projects you can reach in the selected organization
daytona project memberProject membership: list, add, remove
daytona project service-accountProject service-account membership: list, add, remove
daytona project updateRename a project
daytona project useSelect the project for following commands (remembered per organization)

A project’s monthly spend budget: get, set, remove

A project’s monthly spend budget caps its spend in each calendar month (UTC), at list price and before credits. When spend reaches the budget, new sandboxes in the project can’t start, and after the organization’s grace period running persistent sandboxes are stopped and running ephemeral sandboxes are deleted. Spend is evaluated periodically and can lag usage by several minutes.

Commands

CommandDescription
daytona project budget getShow the project’s monthly budget and this month’s spend (default: the selected project)
daytona project budget removeRemove the project’s monthly budget (default: the selected project)
daytona project budget setSet or replace the project’s monthly budget (default: the selected project)

Show the project’s monthly budget and this month’s spend (default: the selected project)

Terminal window
daytona project budget get [id|name]

Remove the project’s monthly budget (default: the selected project)

Terminal window
daytona project budget remove [id|name]

Set or replace the project’s monthly budget (default: the selected project)

Terminal window
daytona project budget set [id|name] --monthly-usd <amount> [flags]

Examples

Terminal window
daytona project budget set --monthly-usd 500
daytona project budget set ml-training --monthly-usd 1250.50

Flags

LongShortTypeDefaultDescription
--monthly-usdstringmonthly budget in US dollars, at least 1.00 and at most two decimals (e.g. 500 or 499.99)

Create a project in the selected organization

Terminal window
daytona project create <name>

Delete a project (refused while it still holds resources)

Terminal window
daytona project delete <id|name>

Show one project (default: the selected one)

Terminal window
daytona project get [id|name]

List the projects you can reach in the selected organization

Terminal window
daytona project list

Project membership: list, add, remove

Commands

CommandDescription
daytona project member addAdd one or more members to the selected project
daytona project member listList members who can access the selected project
daytona project member removeRemove one member from the selected project

Add one or more members to the selected project

Terminal window
daytona project member add <user> [flags]

Flags

LongShortTypeDefaultDescription
--bulkstringcomma-separated user ids/emails/names to add in one request

List members who can access the selected project

Terminal window
daytona project member list

Remove one member from the selected project

Terminal window
daytona project member remove <user>

Project service-account membership: list, add, remove

Commands

CommandDescription
daytona project service-account addSeat a service account in the selected project
daytona project service-account listList service accounts seated in the selected project
daytona project service-account removeUnseat a service account from the selected project

Seat a service account in the selected project

Terminal window
daytona project service-account add <service-account>

List service accounts seated in the selected project

Terminal window
daytona project service-account list

Unseat a service account from the selected project

Terminal window
daytona project service-account remove <service-account>

Rename a project

Terminal window
daytona project update <id|name> --name <new> [flags]

Flags

LongShortTypeDefaultDescription
--namestringnew name

Select the project for following commands (remembered per organization)

Terminal window
daytona project use [id|name]

Project registries: set, list, get, delete

Commands

CommandDescription
daytona registry deleteDelete a registry credential
daytona registry getShow one registry credential’s metadata
daytona registry listList project registries (metadata only)
daytona registry setCreate or update a registry credential

Delete a registry credential

Terminal window
daytona registry delete <host>

Show one registry credential’s metadata

Terminal window
daytona registry get <host>

List project registries (metadata only)

Terminal window
daytona registry list [flags]

Flags

LongShortTypeDefaultDescription
--allboolfollow every page until exhausted
--cursorstringopaque continuation token
--limitint100max rows to return

Create or update a registry credential

Terminal window
daytona registry set <host> [flags]

Flags

LongShortTypeDefaultDescription
--descriptionstringregistry description (set to an empty string to clear it)
--kindstringbasicregistry auth kind (basic, ghcr, gcr, ecr, ecr_role; ecr_role takes the IAM role ARN as —username and no password)
--passwordstringregistry password or token on the command line — visible via the process list and shell history; prefer —password-stdin
--password-stdinboolread the password from stdin
--usernamestringregistry username

Inspect the organization role catalog

Commands

CommandDescription
daytona role listList available roles

List available roles

Terminal window
daytona role list

Project secrets: set, list, get, delete

Commands

CommandDescription
daytona secret deleteDelete a project secret
daytona secret getShow one project’s secret metadata
daytona secret listList project secrets (metadata only)
daytona secret setCreate or update a project secret

Delete a project secret

Terminal window
daytona secret delete <name>

Show one project’s secret metadata

Terminal window
daytona secret get <name>

List project secrets (metadata only)

Terminal window
daytona secret list [flags]

Flags

LongShortTypeDefaultDescription
--allboolfollow every page until exhausted
--cursorstringopaque continuation token
--limitint100max rows to return

Create or update a project secret

Terminal window
daytona secret set <name> [flags]

Flags

LongShortTypeDefaultDescription
--allowed-domainstringshosts where this secret’s value may be sent (exact or *.wildcard), or ’*’ for any verified host; ’*’ lets the value reach any HTTPS host including one a compromised sandbox controls
--descriptionstringsecret description (set to an empty string to clear it)
--from-filestringread the secret value from a file; strips exactly one trailing newline (or CRLF)
--stdinboolread the secret value from stdin; strips exactly one trailing newline (or CRLF)
--valuestringsecret value on the command line — visible to other local users via the process list and shell history; prefer —stdin or —from-file

Service accounts: create, list, get, update, delete

Commands

CommandDescription
daytona service-account createCreate a service account
daytona service-account deleteArchive a service account and revoke its live keys
daytona service-account getShow one service account
daytona service-account listList service accounts in the selected organization
daytona service-account updateUpdate a service account’s name and/or roles

Create a service account

Terminal window
daytona service-account create <name> [flags]

Flags

LongShortTypeDefaultDescription
--rolestringcomma-separated role slugs

Archive a service account and revoke its live keys

Terminal window
daytona service-account delete <id>

Show one service account

Terminal window
daytona service-account get <id>

List service accounts in the selected organization

Terminal window
daytona service-account list

Update a service account’s name and/or roles

Terminal window
daytona service-account update <id> [flags]

Flags

LongShortTypeDefaultDescription
--namestringnew service-account name
--rolestringcomma-separated role slugs