Skip to main content

create-app

Create an app within a project
1 min read

Create an app within a project. The app is created with default production and preview environments. The caller-defined slug is stable and must be unique within the project.

Usage#

Flags#

--projectstringrequired#
Project ID or slug.
--namestringrequired#
Human-readable name for this app. Use a descriptive name like 'Payments API' to identify its purpose.
--slugstringrequired#
App slug. Accepts a resource ID or slug format.
--gitJSON string#

Connect a GitHub repository with a required repository field and optional defaultBranch field.

Global Flags#

FlagTypeDescription
--root-keystringOverride root key ($UNKEY_ROOT_KEY)
--api-urlstringOverride API base URL (default: https://api.unkey.com)
--configstringPath to config file (default: ~/.unkey/config.toml)
--outputstringOutput format. Use json for raw JSON
--bodystringSend this JSON string as the request body. You cannot combine it with request-building flags.

Examples#

See the API reference.