Available Global Flags
—debug
Enables debug-level logging for troubleshooting issues.Turns on debug level logging with detailed information about command execution.
Debug mode also enables caller information in logs to help identify where errors occur in the CLI source code.
—reset-provider
Clears the deployment provider configuration.Clears the set deployment provider. If not provided, the CLI will use the provider from
tenderly.yaml.- Switching between different framework providers
- The provider was incorrectly detected
- You want to force provider re-detection
—output
Controls the output format of command results.Specifies which output mode to use:
text or json.- Scripting and automation
- Parsing CLI output programmatically
- CI/CD pipeline integration
—global-config
Specifies a custom name for the global configuration file.Global configuration file name (without the extension). The file is stored in
~/.tenderly/.~/.tenderly/production-config.yaml instead of the default ~/.tenderly/config.yaml.
Use cases:
- Managing multiple Tenderly accounts
- Separating development and production credentials
- Team-specific configurations
—project-config
Specifies a custom name for the project configuration file.Project configuration file name (without the extension). The file is stored in your project directory.
tenderly-staging.yaml instead of the default tenderly.yaml.
Use cases:
- Multiple deployment environments (staging, production)
- Different project configurations for different branches
- Testing configurations without modifying the main file
—project-dir
Specifies the directory where your smart contract project resides.The directory in which your Truffle/Hardhat/etc project resides. Defaults to the current working directory.
Using
--project-dir is preferred over running cd commands when working with projects in different directories.Combining Flags
You can combine multiple global flags in a single command:Configuration Priority
The Tenderly CLI uses the following priority order for configuration:- Command-line flags (highest priority)
- Project configuration (
tenderly.yaml) - Global configuration (
~/.tenderly/config.yaml) - Default values (lowest priority)
Example: Configuration Priority
Example: Configuration Priority
Global Configuration File
The global configuration file is stored at~/.tenderly/config.yaml and contains:
The global configuration file is created automatically when you run
tenderly login. Never commit this file to version control as it contains authentication credentials.Examples
Debug a Failed Push
Debug a Failed Push
Push from a Different Directory
Push from a Different Directory
Use Staging Configuration
Use Staging Configuration
Switch Between Multiple Accounts
Switch Between Multiple Accounts
Environment Variables
While the CLI primarily uses configuration files and flags, you can also set some behavior through environment variables:Command-line flags always take precedence over environment variables.
Common Patterns
CI/CD Integration
Multiple Environment Management
See Also
- tenderly.yaml Configuration - Project configuration file reference
- Multiple Projects - Configure multiple projects
- Login - Authenticate with Tenderly
- Init - Initialize a project