@36node/fastman 中文文档教程

发布于 4年前 浏览 25 项目主页 更新于 3年前

@36node/fastman

versiondownloads

Install

yarn global add @36node/fastman

Usage

1. config api key

$ fastman -h
Usage: cli [options] [command]

Options:
  -V, --version         output the version number
  -h, --help            output usage information

Commands:
  config [options]      config fastman, like postman api key eg..
  ls                    list collections exist in postman
  delete [id]           delete collection by id
  import [file]         import a collection file to postman
  export [name] [dist]  export collection file with name, saved in dist

1. Config postman apiKey

您可以从 集成仪表板

fastman config -a <your-api-key>

2. ls collections of postman

# list collections in postman, display id and name
$ fastman ls
190e1e16-7e25-4be8-97e1-2f012f941ce4 collection1
1f768e27-5f39-4a5f-8ce8-7a028e504fcf collection2
2923edc5-f23c-47f9-b5d4-4657676681d2 collection3

3. export collection of postman to collection file

# specify dist
$ fastman export collection1 ./try_collection.json

# empty dist, auto saved in <name>.postman_collection.json
$ fastman export collection1

4. import collection by collection file

# if collection name existed in postman, update it, or else create new collection.
$ fastman import ./.try_collection.json

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

fastman © 36node,根据麻省理工学院许可证。

在贡献者 (list) 的帮助下,由 36node 创作和维护。

github.com/zzswang · GitHub @36node

@36node/fastman

versiondownloads

Install

yarn global add @36node/fastman

Usage

1. config api key

$ fastman -h
Usage: cli [options] [command]

Options:
  -V, --version         output the version number
  -h, --help            output usage information

Commands:
  config [options]      config fastman, like postman api key eg..
  ls                    list collections exist in postman
  delete [id]           delete collection by id
  import [file]         import a collection file to postman
  export [name] [dist]  export collection file with name, saved in dist

1. Config postman apiKey

You can get your key from the integrations dashboard

fastman config -a <your-api-key>

2. ls collections of postman

# list collections in postman, display id and name
$ fastman ls
190e1e16-7e25-4be8-97e1-2f012f941ce4 collection1
1f768e27-5f39-4a5f-8ce8-7a028e504fcf collection2
2923edc5-f23c-47f9-b5d4-4657676681d2 collection3

3. export collection of postman to collection file

# specify dist
$ fastman export collection1 ./try_collection.json

# empty dist, auto saved in <name>.postman_collection.json
$ fastman export collection1

4. import collection by collection file

# if collection name existed in postman, update it, or else create new collection.
$ fastman import ./.try_collection.json

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

fastman © 36node, Released under the MIT License.

Authored and maintained by 36node with help from contributors (list).

github.com/zzswang · GitHub @36node

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文