TEN Manager
In the TEN ecosystem, almost everything is a component. A TEN app, a TEN extension, and a TEN protocol are all components. To help developers manage operations related to these components, the TEN Framework provides a tool called TEN Manager.
Understand the tech
TEN Manager is the command-line package manager for the TEN Framework ecosystem. It provides essential tools for creating, installing, and managing TEN packages throughout your development workflow.
TEN Manager provides the following key functionalities:
- Package creation: Generate new apps, extensions, and protocol packages from templates
- Dependency management: Automatically resolve, fetch, and install required packages
- Cloud Store integration: Browse and install packages from the TEN Cloud Store
- Development tools: Launch the visual designer and run custom build scripts
- Validation: Check application graphs and package configurations for errors
TEN Manager handles the complexity of package dependencies and installations, allowing you to focus on building your applications rather than managing infrastructure.
tman
is the command-line abbreviation for TEN Manager.
Set up TEN Manager
Follow these steps to install and run TEN Manager
-
Open the TEN Framework releases page on GitHub.
-
Find the TEN Manager package for your OS and architecture. The package uses the naming structure
tman-[OS]-release-[ARCH].zip
. -
Download the package. For example, you can download the Linux package for x64 using:
-
Extract the downloaded package:
-
Install TEN Manager by copying the binary to your system PATH so that you can run
tman
commands from any directory (Optional): -
Verify the installation:
Package management
TEN Manager provides the following package management commands.
Create packages
Use tman create
to generate new apps, extensions, protocols, and other package types using predefined templates. The command sets up proper directory structure, creates manifest.json
and property.json
configuration files, and provides template code to get you started quickly.
Usage
See supported Package types.
Examples
Fetch packages
Use tman fetch
to download packages from the TEN Cloud Store registry. The command allows you to specify target directories and control extraction behavior.
Usage
See supported Package types.
Examples
Uninstall packages
Use tman uninstall
to remove packages from your TEN application. This removes the package files and cleans up the local package directory structure.
Usage
See supported Package types.addon_loader`: Specialized loaders for different programming languages
Examples
Package TEN components
Use tman package
to create distributable package files from your TEN packages. Run this command from the base directory of the package you want to distribute.
Usage
Examples
Publish packages
Use tman publish
to publish your TEN packages to the TEN Cloud Store. Run this command from the base directory of the package you want to publish.
Usage
Examples
Development tools
TEN Manager provides the following development tools.
TEN designer
Use tman designer
to start the TEN Designer visual development environment. This opens a browser-based interface for creating, editing, and managing TEN applications and extensions. See Ten Designer for details.
Usage
Examples
Check consistency
Use tman check
to validate various aspects of your TEN packages and configurations. This helps ensure your packages are properly configured before deployment.
Usage
The following commands are available:
manifest-json
: Validate manifest.json files against JSON schemaproperty-json
: Validate property.json files against JSON schema
Examples
Modify framework components
Use tman modify
to modify various components and configurations within the TEN framework. This allows you to update existing configurations without manually editing files.
Usage
The following modify commands are available:
graph
: Modify predefined graphs in property.json files
Run custom scripts
Use tman run
to execute custom scripts defined in your package's manifest.json file. This allows you to run predefined build, start, test, or other custom commands for your TEN packages.
Usage
Examples
Reference
Package types
The following package types are supported:
app
: Main application containersextension
: Functional components that implement specific featuresprotocol
: Communication protocol handlerssystem
: Core framework componentsaddon_loader
: Specialized loaders for different programming languages
Common options
TEN Manager supports the following global options:
--verbose
- Enable detailed output for debugging-y, --yes
- Automatically confirm all prompts-c, --config-file <CONFIG_FILE>
- Specify custom configuration file--user-token <USER_TOKEN>
- Provide authentication token-h, --help
- Display help information
Get help
Use the following options with tman
to get help:
help
- Display help information for each command--version
- Show version information and check for updates