Directus: 5. Retrieve credentials
This documentation is part of the Full CLI Automation Workflow guide. You can view the complete guide here: Start Directus, retrieve its credentials, and modify its configuration programmatically using the Stackhero CLI.
👋 Welcome to the Stackhero documentation!
Stackhero provides a Directus cloud service that is production-ready in just 2 minutes:
- Unlimited collections, items, users, roles, API requests, and data transfers
- Custom domain name with integrated 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 enhanced security thanks to private, dedicated infrastructure
- One-click updates to keep your system up to date with minimal effort
Focus on your project, not on configuration: you can discover 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 straightforward to use in scripts and automation.
stackhero service-configuration-get --service=svc-xxxxxx --format=json