---
category: [Administration & Integrations, Platform and Product Extensions, Platform and Product Extensions/Integration, Administration & Integrations/Custom Integrations & Apps, Platform and Product Extensions/Workday Extend]
keyword: Extend
nav: wcp_docs
parent_url: /wcp_docs/
title: >- 
  Reference: Legacy WCP CLI Commands for Extend Apps
layout: subsection
---

<a id="section_rmf_fng_14b"></a>
<b>Note:</b> The legacy WCP CLI is no longer maintained. We recommend that you use the Workday Developer CLI (WDCLI) instead.

You can continue to use the legacy WCP CLI until you’re ready to start using the current WDCLI. You can also access documentation for these commands by entering `wcpcli help` at the command line.

## <a id="section_builds_VERSION"></a>wcpcli apps:builds

Lists all builds for an app version.

-   <b>USAGE</b>

    `$ wcpcli apps:builds <version>`



-   <b>ARGUMENTS</b>

    `<version>` - The version ID to query by.



## <a id="section_logs_BUILD"></a>wcpcli apps:builds:logs

Retrieves build logs based on build ID.

-   <b>USAGE</b>

    `$ wcpcli apps:builds:logs <build>`



-   <b>ARGUMENTS</b>

    `<build>` - The build ID to query by.



## <a id="section_apps_list"></a>wcpcli apps:list

Lists all apps for a company.

-   <b>USAGE</b>

    `$ wcpcli apps:list`



-   <b>OPTIONS</b>

<table><thead></thead><tbody><tr><td><code>-c</code></td><td><code>--company=company</code></td><td>Company short ID. Overrides default configured company, if any.</td></tr><tr><td><code>-f</code></td><td><code>--format=json|tabular</code></td><td>Override the configured results output format</td></tr><tr><td><code>-l</code></td><td><code>--limit=limit</code></td><td>[default: 100] Sets the maximum number of items in the response. Default is 100.</td></tr></tbody></table><br/>



## <a id="section_sources_VERSION"></a>wcpcli apps:sources

Displays what sources are associated with an app by version ID.

The command doesn't retrieve or download the source code for an app.

-   <b>USAGE</b>

    `$ wcpcli apps:sources <version>`



-   <b>ARGUMENTS</b>

    `<version>` - The version ID to query by.



## <a id="section_versions_APP"></a>wcpcli apps:versions

Lists all versions for an app ID.

-   <b>USAGE</b>

    `$ wcpcli apps:versions <app>`



-   <b>ARGUMENTS</b>

    `<app>` - The app ID to query by.



## <a id="section_auth_login"></a>wcpcli auth:login

Sets the local authentication token for access to Workday Extend services (see auth:tenanted for tenanted access).

-   <b>USAGE</b>

    `$ wcpcli auth:login`



-   <b>DESCRIPTION</b>

    Authenticates to Workday Extend services (see `auth:tenanted:login` for tenanted access). Saves token to local configuration file and copies value to clipboard.

    <b>Note:</b> When you sign in using this command, make sure to use the `auth:logout` command to sign out instead of `auth:tenanted:logout`.



## <a id="section_auth_logout"></a>wcpcli auth:logout

Removes the locally stored Workday Extend services access token.

-   <b>USAGE</b>

    `$ wcpcli auth:logout`



## <a id="section_tenanted_login"></a>wcpcli auth:tenanted:login

Authenticates to Workday Extend for tenanted access. Access is limited to only 1 tenant at a time and overwrites an existing tenanted token if present.

-   <b>USAGE</b>

    `$ wcpcli auth:tenanted:login`



-   <b>OPTIONS</b>

<table><thead></thead><tbody><tr><td><code>-b</code></td><td><code>--bypass-redirect</code></td><td>Bypass any configured tenant SAML redirects.</td></tr><tr><td><code>-t</code></td><td><code>--tenant-alias=tenant-alias</code></td><td>Tenant lookup alias. Overrides default configured tenant, if any.</td></tr></tbody></table><br/>



-   <b>DESCRIPTION</b>

    Authenticate to Workday Extend for tenanted access. Access is limited to only 1 tenant at a time and overwrites existing tenanted token if present. Saves token to local configuration file and copies value to the clipboard.

    <b>Note:</b> When you sign in using this command, make sure you use the `auth:tenanted:logout` command to sign out instead of `auth:logout`.



## <a id="section_tenanted_logout"></a>wcpcli auth:tenanted:logout

Removes the locally stored Workday Extend services access token.

-   <b>USAGE</b>

    `$ wcpcli auth:tenanted:logout`



## <a id="section_companies_list"></a>wcpcli companies:list

Lists all companies that you belong to.

-   <b>USAGE</b>

    `$ wcpcli companies:list`



-   <b>OPTIONS</b>

    `-f`, `--format=json|tabular` override the configured results output format



## <a id="section_config_set"></a>wcpcli config:set

Sets a value for a given parameter. If you omit the value, the CLI resets the parameter to its default (if available).

-   <b>USAGE</b>

    `$ wcpcli config:set <paramName> <paramValue>`



-   <b>ARGUMENTS</b>

<table><thead></thead><tbody><tr><td><code>paramName</code></td><td>Name of parameter. Example: defaultCompanyShortId, defaultTenantAlias.</td></tr><tr><td><code>paramValue</code></td><td>Optional parameter value. Leave empty to reset a parameter.</td></tr></tbody></table><br/>



-   <b>DESCRIPTION</b>

    Sets a value for a given parameter to eliminate the need for you to enter a parameter repeatedly during the CLI session, such as company, when running other commands. If the value is omitted, the parameter is reset to its default (if available).



## <a id="section_config_show"></a>wcpcli config:show

Displays current values for configured parameters during the CLI. You can use this command to retrieve the access token for Workday Extend services. To display all the parameters, don't specify any arguments.

<b>Note:</b> If you receive no results, run the `wcpcli auth:login` command to authenticate to Workday Extend services, and then execute the `wcpcli config:show` command again.

-   <b>USAGE</b>

    `$ wcpcli config:show <paramName>`



-   <b>ARGUMENTS</b>

    `paramName` - The name of the parameter. Example: defaultCompanyShortId, defaultTenantAlias



## <a id="section_tenants_list"></a>wcpcli tenants:list

Lists all your registered tenants.

-   <b>USAGE</b>

    `$ wcpcli tenants:list`



-   <b>OPTIONS</b>

<table><thead></thead><tbody><tr><td><code>-c</code></td><td><code>--company=company</code></td><td>Company short ID. Overrides default configured company, if any.</td></tr><tr><td><code>-f</code></td><td><code>--format=json|tabular</code></td><td>Override the configured results output format</td></tr></tbody></table><br/>



## <a id="section_tenants_open"></a>wcpcli tenants:open

Opens a tenant in your default browser. Uses the default configured tenant, if any, or the given tenant.

-   <b>USAGE</b>

    `$ wcpcli tenants:open`



-   <b>OPTIONS</b>

    `-t`, `--tenant-alias=tenant-alias` tenant lookup alias (overrides default configured tenant, if any)



## <a id="section_version"></a>wcpcli version

Displays the version of the current WCP CLI installation.

-   <b>USAGE</b>

    `$ wcpcli version`



-   <b>OPTIONS</b>

    `-c`, `--check` compare this version with the latest published version



## <a id="section_datasources_fields"></a>wcpcli wql:datasources:fields

Gets the fields you have access to in the given data source.

-   <b>USAGE</b>

    `$ wcpcli wql:datasources:fields <datasourceId>`



-   <b>ARGUMENTS</b>

    `<datasourceId>` - The ID of your data source.



-   <b>OPTIONS</b>

<table><thead></thead><tbody><tr><td><code>-a</code></td><td><code>--alias=alias</code></td><td>Filters by alias match</td></tr><tr><td><code>-f</code></td><td><code>--format=json|tabular</code></td><td>Override the configured results output format</td></tr><tr><td><code>-l</code></td><td><code>--limit=limit</code></td><td>[default: 100] Sets the maximum number of items in the response. Default is 100.</td></tr><tr><td><code>-s</code></td><td><code>--search-string=search-string</code></td><td>Filters by search string</td></tr></tbody></table><br/>



-   <b>DESCRIPTION</b>

    Before you can run `wql:datasources:fields`, you must run `wql:datasources:list` to get the data source ID.



## <a id="section_datasources_list"></a>wcpcli wql:datasources:list

Gets the data sources you have access to.

-   <b>USAGE</b>

    `$ wcpcli wql:datasources:list`



-   <b>OPTIONS</b>

<table><thead></thead><tbody><tr><td><code>-a</code></td><td><code>--alias=alias</code></td><td>Filters by alias match.</td></tr><tr><td><code>-f</code></td><td><code>--format=json|tabular</code></td><td>Override the configured results output format</td></tr><tr><td><code>-l</code></td><td><code>--limit=limit</code></td><td>[default: 100] Sets the maximum number of items in the response. Default is 100.</td></tr><tr><td><code>-s</code></td><td><code>--search-string=search-string</code></td><td>Filters by search string</td></tr></tbody></table><br/>



## <a id="section_query"></a>wcpcli wql:query

Executes a WQL query and returns the data.

-   <b>USAGE</b>

    `$ wcpcli wql:query <query>`



-   <b>ARGUMENTS</b>

    `<query>` - The WQL statement.

    You must include the `query` and use a query clause. Example:

    ```
    wcpcli wql:query -l 5 "SELECT fullName FROM allWorkers"
    ```

    <b>Query Clause:</b>

    -   <b>SELECT</b>

        Use the field aliases from the `wcpcli wql:datasources:fields` command.

    -   <b>FROM</b>

        Use the data source alias from the `wcpcli wql:dataSources:list` command.

    -   <b>WHERE</b>

        Specify filter conditions using the field aliases from the `wcpcli wql:datasources:fields` command.

    -   <b>ORDER BY</b>

        Specify a sort order using the field aliases from the `wcpcli wql:datasources:fields` command.




-   <b>OPTIONS</b>

    `-l`, `--limit=limit` [default: 100] Sets the maximum number of items in the response. Default is 100.



