List roles
Inspect the roles available to a project or branch from a terminal session.
Neon · Command
Neon CLI’s roles command group manages Postgres roles. It provides subcommands to create, delete, and list roles, and neonctl is an alias for neon.
The roles command group manages Postgres roles through the Neon CLI. It supports listing existing roles, creating a role, and deleting a selected role; neonctl is accepted as an alias for the documented neon executable.
neonctl roles <create|delete <role>|list>| Name | Type | Description |
|---|---|---|
role | string | Role to remove; required by the documented delete syntax. |
The page documents role-management subcommands but does not specify a single return value or output schema.
role.neon as the executable, but neonctl is an equivalent alias.neonctl roles list
neonctl roles create
neonctl roles delete <role>Use the alias in place of the documented neon executable to list, create, or delete roles.
Inspect the roles available to a project or branch from a terminal session.
Provision a Postgres role as part of a development or deployment workflow.
Remove an unwanted Postgres role by name.
roles?roles is the command group for managing Postgres roles. Its documented subcommands are create, delete <role>, and list.
Follow-up: How can the command be invoked when a script uses the older executable name? Use neonctl; the documentation states it is an alias for neon.
Use neonctl roles list to list roles, neonctl roles create to create one, and neonctl roles delete <role> to delete a named role.
Follow-up: Which operation needs a role argument? Deletion does, because its syntax includes <role>; listing and creation do not show one in the command reference.
The command reference also gives role as an alias for roles. Therefore, the command group can be addressed with either plural or singular naming.
Follow-up: What should be checked before relying on a shorthand in automation? Confirm the installed CLI version supports the documented alias and subcommand syntax.
roleneonneon roles createneon roles deleteneon roles list