# Tideways CLI

Commandline interface (CLI) to trace PHP programs executed through the PHP-CLI
or via cURL/WGET.

Passes an environment variable `TIDEWAYS_SESSION` to every invoked script
with a special case for cURL and WGET to directly append HTTP Headers.

## Installation

Put the qprofile file into your $PATH to install the Tideways CLI.

## Configuration

The Tideways CLI is configured with credentials from your User account.
To configure the CLI go to https://app.tideways.io/user/cli-import-settings
and follow the instructions.

## Usage

The following example commands show how to use the CLI.

Collect a profile for a PHP commandline script:

    tideways run [myorg/myapp] php script.php arg1

Collect a profile for an API call using curl:

    tideways run [myorg/myapp] curl http://myapp/api/endpoint
