3.3.0 • Published 2 years ago

@tibco-tcstk/cloud-cli v3.3.0

Weekly downloads
3
License
BSD-3-Clause
Repository
github
Last release
2 years ago

TIBCO Cloud™ Composer - Command Line Interface

Powered by TIBCO Labs™

Command Line Interface for creating TIBCO Cloud™ Application Projects (For more information see the Full Documentation)

TIBCO Cloud™ CLI) Installation:

npm install -g @tibco-tcstk/cloud-cli

TIBCO Cloud™ CLI) Usage:

tcli [new / <task>][--debug(-d)] [--help(-h)] [--createCP(-c)] [--createGlobalConfig(-g)] [--version(-v)] [--update(-u)] [--browse(-b)] [--propfile(-p)] [--multiple(-m) --multipleFile(-f) <multiple-file-name> --job(-j) <job-name> --environment(-e) <environment name>] [--multipleInteraction(-i)] [--surpressStart(-s)] [--answers(a) <answers>] [--record(-r) <file-name>]

Note: When you just run "tcli" it will bring you in an interactive menu based on the context.

Create new Tibco Cloud™ Application:

tcli new

And answer the questions, or provide the answers inline:

tcli new <name> [--template(-t)] <template-to-use>
  • debug: Display debug information.
  • createCP: Create a new tibco-cloud.properties file.

  • createGlobalConfig: Mange your global connection configuration.

  • help: display help

  • version: display the version number

  • update: update the tcli

  • browse: browse tcli tasks (Note; a tibco-cloud.properties file need to exist otherwise one can be created automatically)

  • propfile: when specified tcli will use a different property file then the default tibco-cloud.properties

  • multiple: run the task specified in the configured multiple property file. This allows you to execute tasks on many cloud applications and many different configured environments at the same time.

  • multipleFile: when specified tcli will use a different property file then the default manage-multiple-cloud-organizations.properties you can optionally specify a job to run and an environment to run this in; this is handy in integrating with CI/CD Buildpipelines.

  • multipleInteraction: when specified, the multiple file will also be used, but in an interactive way. This is extremely handy if you want to run specific tcli jobs on multiple environments quickly.

  • surpressStart: When using this option after creating a new cloud application the interactive tcli will not start.

  • answers: A comma(,) or column(:) separated list of answers to interactive questions. This is useful to run the tcli completely verbose; useful in a build-pipeline.

  • record: A filename in which a replay for the executed command will be recorded.

Available Tutorials

These are the available TIBCO Cloud™ CLI Tutorials:

TUTORIALDescription
1. TCLI OverviewProvides an overview of the Archtiecture and Concepts of the TCLI
2. Global ConfigurationThis guide explains the concept of properties and global properties
3. Get started with the TIBCO Cloud ComposerThis guide provides step by step instructions on how to create, adjust and deploy a cloud application to the TIBCO Cloud
4. Managing multiple TIBCO Cloud OrganizationsThis guide explains how to manage multiple organizations in the TIBCO Cloud with the TCLI
5. Setting Up A BuildpipelineThis guide explains how to setup a build pipeline with for example Jenkins or TeamCity
6. Passing In AnswersThis guide explains the concept of passing in answers to a TCLI task
7. Github ActionsThis guide explains how to run TCLI task on commits to github with github actions
8. TCLI RecorderThis guide explains the concept of recording tasks for replay in scripts

Available TCLI Tasks

These are the available TIBCO Cloud™ CLI Tasks:

tcli

TASKDescription
show-propertiesShows the properties in your properties file (and possibly the global values)
add-or-update-propertyAdds or Updates a property in a file.
obfuscate-passwordObfuscate a password and put it in the cloud-properties file
view-global-configView the global cloud connection configuration
update-global-configUpdate the global cloud connection configuration
create-multiple-property-fileCreating an initial property file to manage multiple cloud applications and environments.
generate-cloud-property-filesGenerates a list of cloud property files.
replace-string-in-fileReplace string in file following the Replace_FROM, Replace_TO and Replace_PATTERN properties
replace-values-in-filesReplace string in file following based on answers provided
validateValidations on the setting and/or the value of a property, the existence of a Cloud Application, LiveApp or TCI App.
quitQuit the console
update-tcliUpdate the Cloud CLI
helpDisplay's help message
browse-tasksBrowses the TCLI tasks by category
repeat-last-taskRepeats the last executed task (easy accessible using the up button)

tibco-cloud

TASKDescription
show-cloudShow Cloud Details
show-cloud-rolesDisplays which tenants you have access to, and what roles you have
change-tibco-cloud-regionChange the Region in the cloud-properties file
show-tibco-cloud-organizationsShows the Cloud Organization and potentially more details
change-tibco-cloud-organizationChanges the Organization in the cloud-properties file

cloud-apps

TASKDescription
show-cloud-appsShow a Table of all the deployed Cloud Applications
show-cloud-app-linksShow Links to your Cloud Applications
start-cloud-appStart your local cloud application project
build-cloud-appBuild your local cloud application project
test-cloud-appRun Test cases for your cloud application
test-cloud-app-headlessRun Test cases for your cloud application, headless (without opening the browser)
deploy-cloud-appDeploy your local cloud application project
build-deploy-cloud-appBuilds and Deploys your local project to the cloud
delete-cloud-appDelete a LiveApps WebApp
generate-descriptorGenerates the configured Public Cloud Descriptor
update-packagesUpdates the NPM packages in the @tibco-tcstk scope in your project.
inject-lib-sourcesEnables your project for Cloud Library Debugging
undo-lib-sourcesUndoes the enabling for Cloud Library Debugging
schematic-addAdd a schematic into your project

live-apps

TASKDescription
show-live-apps-casesShow Live Apps Cases
show-live-apps-design-time-appsShow Live Apps Applications in Development (can be copied)
show-live-apps-usersShows the users in LiveApps (which can be added to groups).
show-live-apps-groupsDisplays the LiveApps groups and their users.
show-live-apps-sandboxDisplays the LiveApps Sandbox ID's for Production and Development
show-live-apps-actionsDisplays the LiveApps actions (Creators & Actions) for a CaseType
create-live-apps-groupCreates a new LiveApps group.
add-user-to-groupAdds a user to a LiveApps group.
export-live-apps-case-typeExport the details of a Live Apps Case Type
export-live-apps-casesExport Data from Live Apps
generate-live-apps-import-configurationGenerate the Live Apps Import configuration file
import-live-apps-casesImport Cases to Live Apps
copy-live-apps-between-organizationsCopies a LiveApps application between organizations.

shared-state

TASKDescription
show-shared-stateShow the shared state contents
show-shared-state-detailsShows the details of one Shared State entry.
create-shared-state-entryCreate a new shared state entry
clear-shared-state-entryRemoves one Shared State entry.
clear-shared-state-filterRemoves all shared state entries in the configured filter.
export-shared-stateDownloads all shared state entries from the configured filter to the local file system.
import-shared-stateUploads one entry or the configured filter from the local file system to the shared state.
watch-shared-stateMonitors the local shared state and when changes are detected it is uploaded to the cloud.

cloud-files

TASKDescription
show-cloud-foldersDisplays the content of the LiveApps Organization Folders.
create-cloud-folderCreates a new LiveApps Organization Folder.
upload-file-to-cloud-folderUploads a file to a LiveApps Organization Folder
download-cloud-files-from-cloud-folderDownloads file(s) from a LiveApps Organization Folder to disk
delete-file-from-cloud-folderDeletes file(s) from a LiveApps Organization Folder

tci

TASKDescription
show-tci-appsList all TIBCO Cloud Integration Applications(Flogo, Scribe, Node.JS & Business Works).
monitor-tci-appMonitor the logs of a TIBCO Cloud Integration Flogo Application
export-tci-appExports a TCI-Flogo Application

messaging

TASKDescription
show-messaging-summaryShow summary of cloud messaging
show-messaging-clientsShow clients of cloud messaging

spotfire

TASKDescription
browse-spotfire-libraryList Spotfire Analytical Reports and browse through folders on the Spotfire Library.
list-spotfire-libraryLists all components(DXP's, Mods, Information links, Data files or Data connections) in your SF Library.
copy-spotfire-library-itemCopies a Spotfire Library Item (a DXP for example) from one place to another (possibly between organizations).
rename-spotfire-library-itemRenames a Spotfire Library Item (a DXP for example).
share-spotfire-library-folderShares a Spotfire Library Folder with a Specific User.
delete-spotfire-library-itemDeletes a Spotfire Library Item (a DXP for example).
create-spotfire-library-folderCreates a new Library Folder.
upload-spotfire-dxpUploads a Spotfire DXP into a specific library folder.
download-spotfire-dxpDownloads a Spotfire DXP from a library folder.

nimbus

TASKDescription
show-nimbus-mapsShows a list of available Nimbus maps

discover

TASKDescription
show-discover-process-analysisShow's the process analysis of Project Discover
show-discover-datasetsShow's the datasets of Project Discover
show-discover-templatesShow's the templates of Project Discover
show-discover-dataset-filesShow's a list of dataset files for Project Discover
export-discover-datasetsExports the datasets of Project Discover into JSON files
upload-discover-dataset-fileUploads a CSV file for analysis in Project Discover
remove-discover-dataset-fileRemoves a Dataset file in Project Discover
create-discover-datasetCreate a Dataset for Project Discover
remove-discover-datasetRemoves a Dataset for Project Discover
run-discover-process-analysisRuns a Process Analysis for Project Discover
action-discover-process-analysisRun an action(Archive, Remove, Rerun) on a Process Analysis from Project Discover
export-discover-configExports the configuration for Project Discover into a JSON file

oauth

TASKDescription
show-oauth-tokensDisplays OAUTH tokens to authenticate to the TIBCO Cloud.
generate-oauth-tokenGenerate a new OAUTH token to authenticate to the TIBCO Cloud.
revoke-oauth-tokenRevokes an existing OAUTH token.
rotate-oauth-tokenRevokes your existing OAUTH token and then generates a new one.
validate-and-rotate-oauth-tokenChecks if OAUTH token is valid for more than a configured time (1 week for example) and if not, it will rotate it.

For more information see the TCSTK Documentation

License

Copyright © 2022. TIBCO Software Inc. This file is subject to the license terms contained in the license file that is distributed with this file.

For more license details and dependent third party components referenced by this library, see here:

3.3.0

2 years ago

3.2.1

3 years ago

3.2.0

3 years ago

3.1.0

3 years ago

3.0.1

3 years ago

2.3.3

3 years ago

2.3.2

3 years ago

2.3.1

3 years ago

2.3.0

3 years ago

2.2.6

3 years ago

2.2.5

3 years ago

2.2.4

3 years ago

2.2.2

3 years ago

2.2.1

3 years ago

2.1.0

3 years ago

1.2.6

4 years ago

1.2.5

4 years ago

1.2.4

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.0.15

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

2.0.0

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago