# Is the 'directus' command in the Docker image officially supported?

**URL:** <https://community.directus.com/t/is-the-directus-command-in-the-docker-image-officially-supported/2121>\
**Category:** Help\
**Tags:** updates\
**Created:** [April 1, 2026, 12:07pm UTC](https://community.directus.com/t/is-the-directus-command-in-the-docker-image-officially-supported/2121 "2026-04-01T12:07:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rob](https://avatars.discourse-cdn.com/v4/letter/r/838e76/32.png) [@rob](https://community.directus.com/u/rob)\
**Post date:** [April 1, 2026, 12:07pm UTC](https://community.directus.com/t/is-the-directus-command-in-the-docker-image-officially-supported/2121/1 "2026-04-01T12:07:48Z")

</div>

An AI bot suggested the **directus** command to get the current schema and apply it on a different server using these commands:

```auto
docker compose exec directus npx directus schema snapshot /directus/schema.yaml
docker compose exec directus npx directus schema apply /directus/schema.yaml

```

In the documentation I can’t find any reference to this command. But I did find an archived GitHub repo with a Directus CLI at [GitHub - directus/cli: Directus Client CLI · GitHub](https://github.com/directus/cli)

My question: is this command officially supported? I think we could use it to save and update server configurations between developers and test/production servers.

---

<div class="post-metadata">

**Author:** ![jonathanwagner](https://sea2.discourse-cdn.com/flex002/user_avatar/community.directus.com/jonathanwagner/32/47_2.png) [@jonathanwagner](https://community.directus.com/u/jonathanwagner)\
**Post date:** [April 1, 2026, 2:23pm UTC](https://community.directus.com/t/is-the-directus-command-in-the-docker-image-officially-supported/2121/2 "2026-04-01T14:23:26Z")

</div>

The cli is technically still supported, however, this functionality was added to the REST APIs a couple of years ago: [Schema | Directus Docs](https://directus.io/docs/api/schema#apply-schema-difference)

Recommend using the API’s.

---

<div class="post-metadata">

**Author:** ![jogchum](https://sea2.discourse-cdn.com/flex002/user_avatar/community.directus.com/jogchum/32/107_2.png) [@jogchum](https://community.directus.com/u/jogchum)\
**Post date:** [April 7, 2026, 2:01pm UTC](https://community.directus.com/t/is-the-directus-command-in-the-docker-image-officially-supported/2121/3 "2026-04-07T14:01:20Z")

</div>

The schema endpoint should indeed produce the same result as the CLI does.

Nice to know perhaps (hence my reply), instead of using `npx directus ..` from inside the official container you can also do `node cli.js <blabla>`. I think that should be a bit more efficient then the npx command.
