CLI tools used in Codemagic builds
Project description
Various utilities to simplify your builds at codemagic.io
Installing
Install and update using pip:
pip3 install codemagic-cli-tools
CLI Usage
Package installs the following executables to your path:
Online documentation for all installed executables can be found under
docs
.
Alternatively, you could see the documentation by using --help
option from command line:
<command> --help
to see general description and subcommands for the tool, or
<command> <subcommand> --help
to get detailed information of the subcommand.
For example:
$ keychain create --help
usage: keychain create [-h] [-s] [-v] [--no-color] [--log-stream {stderr,stdout}] [-pw PASSWORD] [-p PATH]
Create a macOS keychain, add it to the search list.
optional arguments:
-h, --help show this help message and exit
Options:
-s, --silent Disable log output for commands
-v, --verbose Enable verbose logging for commands
--no-color Do not use ANSI colors to format terminal output
--log-stream {stderr,stdout}
Log output stream. [Default: stderr]
Optional arguments for command create:
-pw PASSWORD, --password PASSWORD
Keychain password. Alternatively to entering PASSWORD in plaintext, it may also be specified using a "@env:" prefix followed by a environment variable name, or "@file:" prefix followed by a path to the file containing the value.
Example: "@env:<variable>" uses the value in the environment variable named "<variable>", and "@file:<file_path>" uses the value from file at "<file_path>". [Default: '']
Optional arguments for keychain:
-p PATH, --path PATH Keychain path. If not provided, the system default keychain will be used instead
Python API
In addition to the command line interface, the package provides a mirroring Python API too:
>>> from pathlib import Path
>>> from codemagic.tools import AppStoreConnect
>>> from codemagic.tools import GitChangelog
>>> from codemagic.tools import Keychain
>>> from codemagic.tools import UniversalApkGenerator
>>> from codemagic.tools import XcodeProject
>>> Keychain().get_default()
PosixPath('/Users/priit/Library/Keychains/login.keychain-db')
>>> keychain = Keychain(Path('/tmp/new.keychain'))
>>> keychain.create()
PosixPath('/tmp/new.keychain')
>>> keychain.make_default()
>>> Keychain().get_default()
PosixPath('/private/tmp/new.keychain')
...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
codemagic-cli-tools-0.2.2.tar.gz
(22.1 MB
view hashes)
Built Distribution
Close
Hashes for codemagic-cli-tools-0.2.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8d60e06f893124a62896d61f8d686b61c4cfb9c42fe22958c93c8f09fafa16a |
|
MD5 | 8841aecbd99b4d471f7f616c88763bb9 |
|
BLAKE2b-256 | e68a68431af87de69cdbb8d8e0eb914a55282a31ed71c18dddbcdb60672489ce |
Close
Hashes for codemagic_cli_tools-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ce5e99e1ff0bd1759d533d74f8f7ab67fe5913a5f1804e2c9271ff3fdf23f61 |
|
MD5 | 135694532283bfca5b5331eee6119c2c |
|
BLAKE2b-256 | f2d6202d3d4f0c285f4eb46f76bb1d62f7139eb57b2a3812c2374e24855a9dae |