Directus: 5. Retrieve credentials

This documentation is part of the Automate with the CLI guide. View the full guide here: Start Directus, retrieve its credentials, and change its configuration programmatically with the Stackhero CLI.

👋 Welcome to the Stackhero documentation!

Stackhero offers a Directus cloud service that is ready for production use in just 2 minutes:

  • Unlimited collections, items, users, roles, API requests, and data transfers
  • Custom domain name with built-in HTTPS for secure access (for example, https://cms.your-company.com)
  • Dedicated email server for unlimited transactional and notification emails
  • Integrated Redis cache for high performance
  • Consistent performance and strong security with private, dedicated infrastructure
  • One-click updates let you keep your system current with minimal effort

Focus on your project, not your setup: you can explore Stackhero's Directus cloud solution in just 5 minutes.

The service-configuration-get command returns the complete configuration for your service, including auto-generated passwords and connection details. The output is in JSON format, making it easy to use in scripts and automation.

stackhero service-configuration-get --service=svc-xxxxxx --format=json