Project map
The commands in this section allow you to manage project assets that involve Uniform's project map features. This includes:
Project asset | Command | More information |
---|---|---|
Project map commands | project-map | Capabilities |
Node commands | project-map node | Capabilities |
Project map commands#
These commands should be added as a script command in your project, rather than run directly in the terminal. For example, in the package.json file of a next.js project:
Get project map#
command
Fetch a project map definition from the Uniform project.
Command | Output details |
---|---|
-f, --format | Format for the output (YAML or JSON) |
-o, --filename | File name for the output. If not specified the output is written to stdout. |
-p, --project | Uniform project id. If not specified, the environment variable |
-f, --format | Uniform API key. If not specified, the environment variable |
--apiHost | Uniform host. If not specified, the environment variable |
--proxy | Proxy server. If not specified, the following environment variables are used (with the first match being used): |
List project maps#
command
List project-map definitions from the Uniform project.
Command | Output details |
---|---|
--offset | Number of rows to skip before fetching. |
limit | Number of rows to fetch. |
-f, --format | Format for the output (YAML or JSON) |
-o, --filename | File name for the output. If not specified the output is written to stdout. |
-p, --project | Uniform project id. If not specified, the environment variable |
-f, --format | Uniform API key. If not specified, the environment variable |
--apiHost | Uniform host. If not specified, the environment variable |
--proxy | Proxy server. If not specified, the following environment variables are used (with the first match being used): |
Pull project map#
command
Fetch all project map definitions from the Uniform project and save them locally.
- If a directory path is specified, a separate file is created for each project map.
- If a file path is specified, all project map definitions are saved in a single file.
Command | Output details |
---|---|
-w, --what-if | If true, reports what would be done but changes no files. |
-m, --mode | Specifies what kind of changes can be made. |
-d, --diff | Specifies which changes are written to stdout. If not specified, the environment variable UNIFORM_CLI_DIFF_MODE is used. If the environment variable isn't set, the default value is used. |
-f, --format | Format for the output (YAML or JSON) |
-p, --project | Uniform project id. If not specified, the environment variable |
-f, --format | Uniform API key. If not specified, the environment variable |
--apiHost | Uniform host. If not specified, the environment variable |
--proxy | Proxy server. If not specified, the following environment variables are used (with the first match being used): |
tip
If file name is specified, CLI will override only corresponding part of it (for example, pulling Project Map will only override project map section, but leave Canvas section in the same file intact). It allows you to create single file containing whole project export (Canvas + Context + Project Map). This isn't recommended for big projects. Learn about backing up to a single file.
Push project map#
command
Insert or update all project map definitions from local disk to the Uniform project.
- If a directory path is specified, the project map defined in the files in the directory used.
- If a file path is specified, the project map in the file are used.
Command | Output details |
---|---|
-w, --what-if | If true, reports what would be done but changes no files. |
-m, --mode | Specifies what kind of changes can be made. |
-d, --diff | Specifies which changes are written to stdout. If not specified, the environment variable UNIFORM_CLI_DIFF_MODE is used. If the environment variable isn't set, the default value is used. |
-p, --project | Uniform project id. If not specified, the environment variable |
-f, --format | Uniform API key. If not specified, the environment variable |
--apiHost | Uniform host. If not specified, the environment variable |
--proxy | Proxy server. If not specified, the following environment variables are used (with the first match being used): |
Remove project map#
command
Delete a project map definition from the Uniform project.
Command | Output details |
---|---|
-p, --project | Uniform project id. If not specified, the environment variable |
-f, --format | Uniform API key. If not specified, the environment variable |
--apiHost | Uniform host. If not specified, the environment variable |
--proxy | Proxy server. If not specified, the following environment variables are used (with the first match being used): |
Update project map#
command
Insert or update a project map definition from a local file to the Uniform project.
Command | Output details |
---|---|
-p, --project | Uniform project id. If not specified, the environment variable |
-f, --format | Uniform API key. If not specified, the environment variable |
--apiHost | Uniform host. If not specified, the environment variable |
--proxy | Proxy server. If not specified, the following environment variables are used (with the first match being used): |
Project map node commands#
Requirement for supporting localized project map nodes
To serialize and deserialize localized project map nodes, it's essential to use the Uniform CLI and @uniformdev/project-map
package version 19.151.0
or later.
If you're using localized project map nodes in your project with an older version of the Uniform CLI or @uniformdev/project-map
package, these nodes may not be correctly serialized or deserialized. This can result in data loss or inaccurate data when pulling or pushing project map nodes.
Get project map node#
command
Fetch a project map node from the Uniform project.
Command | Output details |
---|---|
-f, --format | Format for the output (YAML or JSON) |
-o, --filename | File name for the output. If not specified the output is written to stdout. |
-p, --project | Uniform project id. If not specified, the environment variable |
-f, --format | Uniform API key. If not specified, the environment variable |
--apiHost | Uniform host. If not specified, the environment variable |
--proxy | Proxy server. If not specified, the following environment variables are used (with the first match being used): |
List project map nodes#
command
List project map nodes from the Uniform project.
Command | Output details |
---|---|
--offset | Number of rows to skip before fetching. |
limit | Number of rows to fetch. |
-f, --format | Format for the output (YAML or JSON) |
-o, --filename | File name for the output. If not specified the output is written to stdout. |
-p, --project | Uniform project id. If not specified, the environment variable |
-f, --format | Uniform API key. If not specified, the environment variable |
--apiHost | Uniform host. If not specified, the environment variable |
--proxy | Proxy server. If not specified, the following environment variables are used (with the first match being used): |
Pull project map node#
command
Fetch all project map node from the Uniform project and save them locally.
- If a directory path is specified, a separate file is created for each node.
- If a file path is specified, all project map nodes are saved in a single file.
Command | Output details |
---|---|
-w, --what-if | If true, reports what would be done but changes no files. |
-m, --mode | Specifies what kind of changes can be made. |
-d, --diff | Specifies which changes are written to stdout. If not specified, the environment variable UNIFORM_CLI_DIFF_MODE is used. If the environment variable isn't set, the default value is used. |
-f, --format | Format for the output (YAML or JSON) |
-p, --project | Uniform project id. If not specified, the environment variable |
-f, --format | Uniform API key. If not specified, the environment variable |
--apiHost | Uniform host. If not specified, the environment variable |
--proxy | Proxy server. If not specified, the following environment variables are used (with the first match being used): |
tip
If file name is specified, CLI will override only corresponding part of it (for example, pulling Project Map will only override project map section, but leave Canvas section in the same file intact). It allows you to create single file containing whole project export (Canvas + Context + Project Map). This isn't recommended for big projects. Learn about backing up to a single file.
Push project map node#
command
Insert or update all project map nodes from local disk to the Uniform project.
- If a directory path is specified, the node defined in the files in the directory used.
- If a file path is specified, the project map nodes in the file are used.
Command | Output details |
---|---|
-w, --what-if | If true, reports what would be done but changes no files. |
-m, --mode | Specifies what kind of changes can be made. |
-d, --diff | Specifies which changes are written to stdout. If not specified, the environment variable UNIFORM_CLI_DIFF_MODE is used. If the environment variable isn't set, the default value is used. |
-p, --project | Uniform project id. If not specified, the environment variable |
-f, --format | Uniform API key. If not specified, the environment variable |
--apiHost | Uniform host. If not specified, the environment variable |
--proxy | Proxy server. If not specified, the following environment variables are used (with the first match being used): |
Remove project map node#
command
Delete a project map node from the Uniform project.
Command | Output details |
---|---|
-p, --project | Uniform project id. If not specified, the environment variable |
-f, --format | Uniform API key. If not specified, the environment variable |
--apiHost | Uniform host. If not specified, the environment variable |
--proxy | Proxy server. If not specified, the following environment variables are used (with the first match being used): |
Update project map node#
command
Insert or update a project map node from a local file to the Uniform project.
Command | Output details |
---|---|
-p, --project | Uniform project id. If not specified, the environment variable |
-f, --format | Uniform API key. If not specified, the environment variable |
--apiHost | Uniform host. If not specified, the environment variable |
--proxy | Proxy server. If not specified, the following environment variables are used (with the first match being used): |