API version: 0.3.0

---

# Commands

List of all CLI commands, organized by group.

## Backup

Commands for creating, listing, fetching, and loading backups. Backups can be used to snapshot the current state of the
database or to restore a previously saved state, including from external sources.

- [`php bin/console backup:convert`](/command/backup-convert.md)

- [`php bin/console backup:create`](/command/backup-create.md)

- [`php bin/console backup:fetch`](/command/backup-fetch.md)

- [`php bin/console backup:list`](/command/backup-list.md)

- [`php bin/console backup:load`](/command/backup-load.md)

## Cache

Commands for managing the application cache. Use these commands to invalidate cached data, such as ETag caches, when you
need to force the API to recompute responses.

- [`php bin/console cache:clear:etag`](/command/cache-clear-etag.md)

## Cron

Background maintenance tasks. Every API container instance already runs these automatically every
few minutes (see [Background tasks](/reference/configuration.md#background-tasks)) - use these
commands to run a task on demand instead, e.g. to clean up expired resumable uploads immediately
rather than waiting for the next automatic run.

- [`php bin/console cron:calculate-embeddings`](/command/cron-calculate-embeddings.md)

- [`php bin/console cron:delete-expired-uploads`](/command/cron-delete-expired-uploads.md)

- [`php bin/console cron:expire-tokens`](/command/cron-expire-tokens.md)

- [`php bin/console cron:finalize-uploads`](/command/cron-finalize-uploads.md)

- [`php bin/console cron:reindex-files`](/command/cron-reindex-files.md)

- [`php bin/console cron:update-ownership`](/command/cron-update-ownership.md)

## Database

Low-level database management commands. These commands operate directly on the underlying database and should be used
with caution, as they can result in permanent data loss.

- [`php bin/console database:drop`](/command/database-drop.md)

- [`php bin/console index:ensure`](/command/index-ensure.md)

- [`php bin/console mphf:build`](/command/mphf-build.md)

## Migration

Commands for the [migrations](/reference/schemas/migrations.md) of schemas: they create migrations and run them, the same
as the migration endpoints of the API.

- [`php bin/console migration:generate`](/command/migration-generate.md)

- [`php bin/console migration:listen`](/command/migration-listen.md)

- [`php bin/console migration:run`](/command/migration-run.md)

## Schema

Commands for the [schemas](/reference/schemas.md) of node labels and relation types.

- [`php bin/console schema:sync`](/command/schema-sync.md)

## System

General system and maintenance commands. Use these commands to check the health of the running instance and diagnose
connectivity issues with dependent services.

- [`php bin/console healthcheck`](/command/healthcheck.md)

## Token

Commands for managing authentication tokens. Use these commands to create new tokens or revoke existing ones directly
from the CLI, without requiring an active HTTP session.

- [`php bin/console token:create`](/command/token-create.md)

- [`php bin/console token:revoke`](/command/token-revoke.md)

## User

Commands for managing user accounts. Use these commands to create new users and set up initial credentials from the
command line.

- [`php bin/console user:create`](/command/user-create.md)

- [`php bin/console user:role:add`](/command/user-role-add.md)

- [`php bin/console user:role:list`](/command/user-role-list.md)

- [`php bin/console user:role:remove`](/command/user-role-remove.md)

---

Home: [Ember Nexus API docs](/index.md)

Full site map: [llms.txt](/llms.txt)

Previous: [Endpoints](/reference/endpoints.md)

Next: [OpenAPI schemas](/reference/openapi-schemas.md)
