语义
振幅 CLI
所需资源
高度 CLI 需要节点 12+
使用量
$ npm install -g @amplitude/ampli
$ ampli COMMAND
running command...
$ ampli (-v|--version|version)
@amplitude/ampli/1.36.6 linux-x64 node-v24.18.0
$ ampli --help [COMMAND]
USAGE
$ ampli COMMAND
...
图标
ampli autocomplete [SHELL]ampli branchampli checkout [<branch>]ampli configure [--deprecated-runtimes]ampli help [COMMAND]ampli initampli loginampli logoutampli pull [<source>] [-p <path>] [-b <branch>]ampli refreshampli setupampli sourceampli statusampli whoami
ampli autocomplete [SHELL]
显示自动完成安装指令
USAGE
$ ampli autocomplete [SHELL]
ARGUMENTS
SHELL shell type
OPTIONS
-r, --refresh-cache Refresh cache (ignores displaying instructions)
EXAMPLES
$ ampli autocomplete
$ ampli autocomplete bash
$ ampli autocomplete zsh
$ ampli autocomplete --refresh-cache
参见代码 : @oclif/ plugin- auto 完成
ampli branch
列出所有分支
USAGE
$ ampli branch
OPTIONS
-t, --token=token personal API token to authenticate with
ampli checkout [<branch>]
检查当前源的分支
USAGE
$ ampli checkout [<branch>]
OPTIONS
-t, --token=token personal API token to authenticate with
-v, --version=version the version to checkout
EXAMPLES
$ ampli checkout develop
$ ampli checkout
ampli configure [--deprecated-runtimes]
配置并更新源运行时间
USAGE
$ ampli configure [--deprecated-runtimes]
OPTIONS
-t, --token=token personal API token to authenticate with
--deprecated-runtimes show deprecated SDK options for source configuration (for Itly users).
EXAMPLES
$ ampli configure
$ ampli configure --deprecated-runtimes
ampli help [COMMAND]
显示 anpli 的帮助
USAGE
$ ampli help [COMMAND]
ARGUMENTS
COMMAND command to show help for
OPTIONS
--all see all commands in CLI
参见代码 : @oclif/plugin-帮助
ampli init
初始化您的工作空间
USAGE
$ ampli init
OPTIONS
-o, --org=org organization
-w, --workspace=workspace workspace
-z, --zone=us|eu regional zone
--user=user user email
EXAMPLES
$ ampli init [--org ORGANIZATION] [--workspace WORKSPACE]
$ ampli init [--user [email protected]]
ampli login
登录到高度
USAGE
$ ampli login
OPTIONS
-z, --zone=us|eu regional zone
EXAMPLE
$ ampli login
ampli logout
从宽度记录
USAGE
$ ampli logout
OPTIONS
-z, --zone=us|eu regional zone
--user=user user email
EXAMPLES
$ ampli logout
$ ampli logout --user [email protected]
ampli pull [<source>] [-p <path>] [-b <branch>]
降低最新的跟踪计划并创建跟踪库
USAGE
$ ampli pull [<source>] [-p <path>] [-b <branch>]
OPTIONS
-b, --branch=branch the branch to pull
-p, --path=path where the tracking library will be created
-t, --token=token personal API token to authenticate with
-v, --version=version the version to pull
--deprecated-runtimes show deprecated SDK options for source configuration (for Itly users).
--include-api-keys include api keys to the tracking library
--omit-api-keys omit api keys from the tracking library
EXAMPLES
$ ampli pull web
$ ampli pull web -p ./ampli -b develop
$ ampli pull web -p ./ampli -b develop -v 2.1.1
$ ampli pull --omit-api-keys web
$ ampli pull --include-api-keys web
$ ampli pull --deprecated-runtimes
ampli refresh
刷新当前分支, 并更改主分支
USAGE
$ ampli refresh
OPTIONS
-t, --token=token personal API token to authenticate with
EXAMPLE
$ ampli refresh
ampli setup
显示当前源代码的设置指令
USAGE
$ ampli setup
OPTIONS
-t, --token=token personal API token to authenticate with
EXAMPLE
$ ampli setup
ampli source
列出所有来源
USAGE
$ ampli source
OPTIONS
-t, --token=token personal API token to authenticate with
ampli status
校验(lint)您的分析源代码
USAGE
$ ampli status
OPTIONS
-b, --branch=branch enforces source is on provided the branch
-t, --token=token personal API token to authenticate with
-u, --update update tracking plan with latest implementation status
--instanceNames=instanceNames Ampli instance name(s) to check
--is-latest check if current version is the latest
--is-latest-if-not-default-branch check if current version is the latest (do not check if on default branch)
--is-merged check if current branch/version has been merged into default branch
--skip-update-on-default-branch prevents updating implementation status on default branch
--sourceDirs=sourceDirs source code location
EXAMPLES
$ ampli status
$ ampli status -u
$ ampli status -b main
$ ampli status -u --skip-update-on-default-branch
$ ampli status --sourceDirs ./src ./util
$ ampli status --is-merged
$ ampli status --is-latest
$ ampli status --is-latest-if-not-default-branch
$ ampli status --instanceNames myAmpliInstanceName ampli itly foo
ampli whoami
显示用户信息
USAGE
$ ampli whoami
OPTIONS
-z, --zone=us|eu regional zone